For Flying you might wanna look on IsFlying
Code:
.text:006A7420 isFlying proc near ; DATA XREF: .data:00A3CB0Co
.text:006A7420
.text:006A7420 var_8 = qword ptr -8
.text:006A7420 arg_0 = dword ptr 8
.text:006A7420
.text:006A7420 push ebp
.text:006A7421 mov ebp, esp
.text:006A7423 call sub_7BC8D0
.text:006A7428 push 0A1h
.text:006A742D push offset aCBuildserve_14 ; "c:\\BuildServer\\bs1\\work\\WoW-code\\branch"...
.text:006A7432 push 10h
.text:006A7434 push edx
.text:006A7435 push eax
.text:006A7436 call sub_7BE110
.text:006A743B add esp, 14h
.text:006A743E test eax, eax
.text:006A7440 jz short loc_6A749F
.text:006A7442 mov ecx, [eax+0F40h]
.text:006A7448 test ecx, ecx
.text:006A744A jz short loc_6A7475
.text:006A744C cmp dword ptr [ecx+14h], 3
.text:006A7450 jnz short loc_6A7475
.text:006A7452 mov edx, [eax]
.text:006A7454 push 0E96h
.text:006A7459 push offset a_Scriptevents_ ; ".\\ScriptEvents.cpp"
.text:006A745E mov ecx, eax
.text:006A7460 mov eax, [edx+30h]
.text:006A7463 push 8
.text:006A7465 call eax
.text:006A7467 push edx
.text:006A7468 push eax
.text:006A7469 call sub_7BE110
.text:006A746E add esp, 14h
.text:006A7471 test eax, eax
.text:006A7473 jz short loc_6A749F
.text:006A7475
.text:006A7475 loc_6A7475: ; CODE XREF: isFlying+2Aj
.text:006A7475 ; isFlying+30j
.text:006A7475 mov ecx, [eax+0D8h]
.text:006A747B test dword ptr [ecx+44h], 2000000h
.text:006A7482 jz short loc_6A749F
.text:006A7484 fld1
.text:006A7486 mov edx, [ebp+arg_0]
.text:006A7489 sub esp, 8
.text:006A748C fstp [esp+8+var_8]
.text:006A748F push edx ; int
.text:006A7490 call lua_pushnumber
.text:006A7495 add esp, 0Ch
.text:006A7498 mov eax, 1
.text:006A749D pop ebp
.text:006A749E retn
.text:006A749F ; ---------------------------------------------------------------------------
.text:006A749F
.text:006A749F loc_6A749F: ; CODE XREF: isFlying+20j
.text:006A749F ; isFlying+53j ...
.text:006A749F mov eax, [ebp+arg_0]
.text:006A74A2 push eax
.text:006A74A3 call lua_pushnil
.text:006A74A8 add esp, 4
.text:006A74AB mov eax, 1
.text:006A74B0 pop ebp
.text:006A74B1 retn
.text:006A74B1 isFlying endp