Function at 0x4a96f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
push esi
mov esi, ecx
mov eax, dword [esi + 0x988]
test eax, eax
je 0x4a9721
push 0
push str.FSCommand:quit
call fcn.004d30c0
mov ecx, esi
call fcn.004a5680
mov eax, dword [esi + 0x988]
test eax, eax
jne 0x4a9ef1
mov al, byte [esi + 0x53c]
test al, al
jne 0x4a9ef1
lea ecx, [esp + 8]
call fcn.00469400
mov eax, dword [esi + 0x534]
test eax, eax
je 0x4a9755
mov eax, dword [esp + 8]
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
pop esi
add esp, 0x34
ret 4
mov eax, dword [esi + 0x5a4]
test eax, eax
jne 0x4a9772
mov ecx, dword [esp + 8]
mov dword [esp + 0x3c], ecx
fldcw word [esp + 0x3c]
pop esi
add esp, 0x34
ret 4
mov eax, dword [esi + 0x598]
test eax, eax
je 0x4a978f
mov edx, dword [esp + 8]
mov dword [esp + 0x3c], edx
fldcw word [esp + 0x3c]
pop esi
add esp, 0x34
ret 4
push ebx
push ebp
push edi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebp, eax
and ebp, 0x7fffffff
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], esi
call fcn.004f5a70
mov ecx, dword [esi + 0x944]
call fcn.004db460
mov ecx, dword [esi + 0x948]
mov dword [esp + 0x18], eax
call fcn.004e1d80
mov ecx, dword [esi + 0x940]
call fcn.004e5910
lea eax, [esi + 0x954]
push 0
push eax
call fcn.004dfe00
mov eax, dword [esi + 0x950]
lea edi, [esi + 0x950]
add esp, 8
test eax, eax
je 0x4a98e4
cmp dword [edi], 0
je 0x4a98e4
mov eax, dword [edi]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x4a9821
lea edi, [eax + 0xc]
jmp 0x4a98db
mov ecx, dword [eax + 4]
push ecx
push esi
lea ecx, [esp + 0x38]
call fcn.00470980
mov ecx, dword [edi]
call fcn.004ed190
mov ecx, dword [edi]
call fcn.004ec410
mov ecx, dword [edi]
call fcn.004eca80
mov edx, dword [edi]
mov ecx, dword [edx + 0x20]
call fcn.004de170
test eax, eax
jne 0x4a9894
mov ebx, dword [edi]
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x4a9894
mov eax, dword [ebx + 0xc]
mov dword [edi], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x4a988a
mov ecx, ebx
call fcn.004ecb40
test eax, eax
mov ecx, ebx
je 0x4a9883
call fcn.004ec530
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
jmp 0x4a98d2
push 0
call fcn.004ec4a0
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
jmp 0x4a98d2
mov eax, dword [edi]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x4a98bc
mov eax, dword [eax + 0x58]
test eax, eax
je 0x4a98bc
mov ebx, eax
mov ecx, dword [ebx + 0xb4]
test ecx, ecx
je 0x4a98b5
call fcn.004f1280
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x4a98a6
mov ecx, dword [edi]
call fcn.004ec450
mov ecx, dword [esp + 0x18]
mov edi, dword [edi]
or ecx, eax
mov dword [esp + 0x18], ecx
add edi, 0xc
lea ecx, [esp + 0x30]
call fcn.0046fb30
cmp dword [edi], 0
jne 0x4a9810
mov eax, dword [esi + 0x958]
test eax, eax
je 0x4a98f5
mov ecx, esi
call fcn.00496740
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a9917
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4a9917
cmp ebp, dword [esi + 0x5a0]
jge 0x4a9917
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
mov ecx, dword [esi + 0x960]
test ecx, ecx
je 0x4a9926
call fcn.0043c9c0
mov ecx, dword [esi + 0x95c]
test ecx, ecx
je 0x4a9936
push esi
call fcn.00432cd0
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 8]
test eax, eax
je 0x4a99ae
lea edx, [esi + 0x140]
push edx
lea ecx, [esp + 0x1c]
call fcn.00462f70
lea ecx, [esp + 0x18]
call fcn.00462f80
mov ebp, eax
test ebp, ebp
je 0x4a99ae
mov edi, 0x800
mov eax, dword [ebp + 0x88]
test eax, eax
je 0x4a999f
mov ecx, ebp
call fcn.004857d0
mov ebx, dword [eax + 0x24]
test ebx, ebx
je 0x4a999f
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4a999f
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x4a999f
mov al, byte [ebx + 0x12f]
test al, al
jne 0x4a999f
mov eax, dword [ebp + 0x2c]
test dword [eax + 0x468], edi
je 0x4a99fb
lea ecx, [esp + 0x18]
call fcn.00462f80
mov ebp, eax
test ebp, ebp
jne 0x4a9964
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4a9b45
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esi + 0x5a0]
jge 0x4a9b45
mov ecx, dword [esi + 0x42c]
call fcn.00439a10
mov ecx, esi
call fcn.004a3f30
lea ecx, [esp + 0x1c]
call fcn.00498910
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], edx
fldcw word [esp + 0x48]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x34
ret 4
mov edi, dword [ebp + 0x40]
mov ecx, ebx
call fcn.00471d90
sub eax, edi
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.00495de0
cmp eax, 5
jle 0x4a9b1a
mov eax, dword [esi + 0x5a0]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x490]
sub ecx, eax
mov dword [esi + edx*4 + 0x47c], ecx
mov eax, dword [esi + 0x490]
inc eax
cdq
mov ecx, 5
idiv ecx
xor ecx, ecx
mov dword [esi + 0x490], edx
mov eax, dword [esi + 0x47c]
test eax, eax
jl 0x4a9a57
mov ecx, eax
mov edx, dword [esi + 0x480]
cmp ecx, edx
jg 0x4a9a63
mov ecx, edx
add eax, edx
mov edx, dword [esi + 0x484]
cmp ecx, edx
jg 0x4a9a71
mov ecx, edx
add eax, edx
mov edx, dword [esi + 0x488]
cmp ecx, edx
jg 0x4a9a7f
mov ecx, edx
add eax, edx
mov edx, dword [esi + 0x48c]
cmp ecx, edx
jg 0x4a9a8d
mov ecx, edx
add eax, edx
sub eax, ecx
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
cmp edi, 0xa
jle 0x4a9af6
cmp edi, 0x3e8
jge 0x4a9af6
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x41c]
mov ebx, dword [edx + 0x1a8]
sar ecx, 2
and ecx, 3
mov ecx, dword [ecx*4 + 0x53e2d8]
shl eax, cl
lea ecx, [eax + eax*4]
shl ecx, 1
mov eax, 0x4a4dc96f
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
add eax, edi
cdq
idiv ecx
add dword [esp + 0x10], eax
jmp 0x4a9b1a
test ecx, ecx
jle 0x4a9b1a
xor edx, edx
mov dword [esi + 0x47c], edx
mov dword [esi + 0x480], edx
mov dword [esi + 0x484], edx
mov dword [esi + 0x488], edx
mov dword [esi + 0x48c], edx
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x1c]
jg 0x4a9b49
call fcn.00498910
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], eax
fldcw word [esp + 0x48]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x34
ret 4
lea ecx, [esp + 0x1c]
call fcn.00498910
mov eax, dword [esi + 0x41c]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add ecx, edx
test eax, eax
mov dword [esi + 0x5a0], ecx
je 0x4a9d78
mov edx, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], 0
lea eax, [esi + 0x13c]
push eax
lea ecx, [esp + 0x4c]
call fcn.00462f70
lea ecx, [esp + 0x48]
call fcn.00462f80
mov edi, eax
test edi, edi
je 0x4a9c49
mov ebp, dword [esp + 0x24]
jmp 0x4a9bb0
mov al, byte [esi + 0x971]
test al, al
je 0x4a9bc5
mov ecx, dword [edi + 0x98]
call fcn.0048cb40
mov eax, dword [edi + 0x88]
test eax, eax
je 0x4a9c2b
mov ecx, edi
call fcn.004857d0
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4a9c2b
cmp edi, ebp
je 0x4a9c2b
mov ecx, edi
call fcn.004857d0
mov eax, dword [eax + 0x24]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4a9c2b
mov ecx, dword [eax + 0x28]
test ecx, ecx
jne 0x4a9c2b
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + 0x468]
test ch, 8
jne 0x4a9c2b
mov ebx, dword [edi + 0x40]
mov ecx, edi
call fcn.004857d0
mov ecx, dword [eax + 0x24]
call fcn.00471d90
cmp eax, ebx
jge 0x4a9c2b
mov ecx, edi
call fcn.004857d0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4a9c36
push 0
mov ecx, edi
push 1
call fcn.0048f930
lea ecx, [esp + 0x48]
call fcn.00462f80
mov edi, eax
test edi, edi
jne 0x4a9bb0
mov ecx, dword [esi + 0x42c]
mov byte [esi + 0x971], 0
call fcn.00439c80
mov ecx, esi
call fcn.004a3f30
mov ecx, dword [esi + 0x3f0]
push ecx
mov ecx, dword [esi + 0x3ec]
call fcn.004657b0
push 0
mov ecx, esi
call fcn.0046bc80
lea eax, [esi + 0x144]
push eax
lea ecx, [esp + 0x1c]
call fcn.00462f70
lea ecx, [esp + 0x18]
call fcn.00462f80
mov edi, eax
test edi, edi
je 0x4a9d6e
mov ecx, dword [edi + 0x2c]
call fcn.004832c0
test eax, eax
je 0x4a9d5b
mov ecx, dword [edi + 0x2c]
call fcn.004832f0
test al, al
jne 0x4a9d5b
mov ecx, dword [edi + 0x2c]
call fcn.004832c0
push edi
lea ecx, [esi + 0x144]
mov ebx, eax
call fcn.00462f20
mov edx, dword [edi + 0x2c]
mov ebp, dword [edx + 0x54]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.0040d250
push eax
push ebp
mov ecx, esi
call fcn.0049f210
mov ecx, dword [esp + 0x30]
push ecx
mov ebp, eax
call fcn.00527b30
add esp, 4
test ebp, ebp
jne 0x4a9d07
mov ebp, dword [edi + 0x2c]
mov ebx, dword [ebx + 0x28]
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 2
call fcn.00461f70
mov ecx, dword [edi + 0x2c]
call fcn.004832e0
test ebx, ebx
je 0x4a9d5b
mov ecx, dword [esi + 0x98c]
call fcn.00484e10
push eax
push str.onLoadInit
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call fcn.0049c280
mov ecx, dword [esp + 0x2c]
push 0
push 1
lea eax, [esp + 0x24]
push eax
push ecx
push ebx
mov ecx, esi
call fcn.004a4030
lea ecx, [esp + 0x18]
call fcn.00462f80
mov edi, eax
test edi, edi
jne 0x4a9ca0
dec dword [esp + 0x28]
jne 0x4a9b80
mov ebp, dword [esp + 0x10]
mov ecx, dword [esi + 0x94c]
xor ebx, ebx
push ebx
push 2
dec ebp
call fcn.004e9ba0
mov edi, dword [esi + 0x950]
cmp edi, ebx
je 0x4a9db6
jmp 0x4a9da0
mov ecx, dword [edi + 0x80]
cmp ecx, ebx
je 0x4a9daf
call fcn.00430160
mov edi, dword [edi + 0xc]
cmp edi, ebx
jne 0x4a9da0
push ebx
mov ecx, esi
call fcn.004a79d0
lea ecx, [esi + 0x454]
call fcn.004a7710
mov ecx, esi
call fcn.0049dab0
push ebx
push esi
call fcn.0040fd30
mov eax, dword [esi + 0x57c]
add esp, 8
cmp eax, ebx
je 0x4a9df8
lea edx, [esi + 0x5b0]
push edx
mov ecx, esi
call fcn.0049d510
mov dword [esi + 0x57c], ebx
cmp dword [esi + 0x3d0], ebx
jne 0x4a9e22
cmp dword [esi + 0x4c4], ebx
jne 0x4a9e22
mov eax, dword [esi + 0x5ac]
cmp eax, ebx
jl 0x4a9e22
push ebx
push eax
lea eax, [esi + 0x5b0]
push eax
mov ecx, esi
call fcn.004a87b0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x80]
cmp dword [esi + 0x468], ebx
je 0x4a9ee2
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [esi + 0x41c]
mov eax, dword [eax + 0x1a8]
and ecx, 0x7fffffff
sub ecx, edi
cmp ecx, eax
jg 0x4a9e76
cmp ebp, 1
jg 0x4a9e76
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp ecx, eax
jge 0x4a9e7c
inc dword [esi + 0x498]
jmp 0x4a9e7c
inc dword [esi + 0x494]
mov ecx, dword [esi + 0x49c]
inc ecx
cmp ecx, 4
mov dword [esi + 0x49c], ecx
jle 0x4a9edc
cmp dword [esi + 0x46c], 0xa
jle 0x4a9edc
mov eax, dword [esi + 0x464]
mov edx, 2
cmp eax, edx
jne 0x4a9ebb
mov eax, dword [esi + 0x494]
lea eax, [eax + eax*2]
cmp eax, ecx
jle 0x4a9edc
mov dword [esi + 0x464], ebx
jmp 0x4a9ece
mov eax, dword [esi + 0x498]
lea eax, [eax + eax*2]
cmp eax, ecx
jle 0x4a9edc
mov dword [esi + 0x464], edx
mov ecx, esi
push edx
mov dword [esi + 0x46c], ebx
call fcn.004a5560
inc dword [esi + 0x46c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], ecx
fldcw word [esp + 0x48]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x34
ret 4