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

Disassembly:
sub esp, 0x38
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1c]
call fcn.00529710
mov eax, dword [esi + 0x994]
xor ebp, ebp
cmp eax, ebp
je 0x4abedb
push ebp
push str.FSCommand:quit
mov ecx, esi
call fcn.004d5d20
mov ecx, esi
call fcn.004a7bf0
cmp dword [esi + 0x994], ebp
jne 0x4ac730
mov al, byte [esi + 0x540]
test al, al
jne 0x4ac730
cmp dword [esi + 0x658], ebp
je 0x4abf01
mov eax, dword [esi]
push ebp
push ebp
push ebp
mov ecx, esi
mov dword [esi + 0x658], ebp
call dword [eax + 0x5c]
lea ecx, [esp + 0xc]
call fcn.0046a840
cmp dword [esi + 0x538], ebp
je 0x4abf26
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], ecx
fldcw word [esp + 0x44]
pop esi
pop ebp
add esp, 0x38
ret 4
cmp dword [esi + 0x5a8], ebp
jne 0x4abf42
mov edx, dword [esp + 0xc]
mov dword [esp + 0x44], edx
fldcw word [esp + 0x44]
pop esi
pop ebp
add esp, 0x38
ret 4
cmp dword [esi + 0x59c], ebp
je 0x4abf5e
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
fldcw word [esp + 0x44]
pop esi
pop ebp
add esp, 0x38
ret 4
push ebx
push edi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
and ebx, 0x7fffffff
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 1
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
call fcn.004cb0c0
mov ecx, dword [esi + 0x954]
call fcn.004de7d0
mov ecx, dword [esi + 0x958]
mov dword [esp + 0x1c], eax
call fcn.004e5120
mov ecx, dword [esi + 0x950]
call fcn.004e8cc0
lea ecx, [esi + 0x964]
push ebp
push ecx
call fcn.004e31a0
mov eax, dword [esi + 0x960]
lea edi, [esi + 0x960]
add esp, 8
cmp eax, ebp
je 0x4ac102
mov ecx, dword [edi]
cmp ecx, ebp
je 0x4abfe7
call fcn.004f1320
mov edi, dword [edi]
mov ecx, dword [edi + 0xc]
add edi, 0xc
cmp ecx, ebp
jne 0x4abfd6
mov eax, dword [esi + 0x960]
cmp eax, ebp
lea edi, [esi + 0x960]
je 0x4ac0e1
jmp 0x4ac000
mov eax, dword [edi]
cmp dword [eax + 0x78], ebp
je 0x4ac00f
lea edi, [eax + 0xc]
jmp 0x4ac0d5
mov edx, dword [eax + 4]
push edx
push esi
lea ecx, [esp + 0x3c]
call fcn.00471da0
mov ecx, dword [edi]
call fcn.004f0690
mov ecx, dword [edi]
call fcn.004ef860
mov ecx, dword [edi]
call fcn.004ef7d0
mov eax, dword [edi]
mov ecx, dword [eax + 0x20]
call fcn.004e1510
test eax, eax
jne 0x4ac08b
mov ebx, dword [edi]
cmp dword [ebx + 0x7c], ebp
jne 0x4ac08b
mov ecx, dword [ebx + 0xc]
mov dword [edi], ecx
cmp dword [ebx + 4], ebp
je 0x4ac07a
mov ecx, ebx
call fcn.004f0040
test eax, eax
mov ecx, ebx
je 0x4ac074
call fcn.004ef980
mov ecx, ebx
call fcn.004f1390
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
jmp 0x4ac0cc
push ebp
call fcn.004ef8f0
mov ecx, ebx
call fcn.004f1390
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
jmp 0x4ac0cc
mov eax, dword [edi]
cmp dword [eax + 0x7c], ebp
je 0x4ac0b6
mov eax, dword [eax + 0x58]
cmp eax, ebp
je 0x4ac0b6
mov ebx, eax
jmp 0x4ac0a0
mov ecx, dword [ebx + 0xb4]
cmp ecx, ebp
je 0x4ac0af
call fcn.004f4a60
mov ebx, dword [ebx + 0x10]
cmp ebx, ebp
jne 0x4ac0a0
mov ecx, dword [edi]
call fcn.004ef8a0
mov ecx, dword [esp + 0x1c]
mov edi, dword [edi]
or ecx, eax
mov dword [esp + 0x1c], ecx
add edi, 0xc
lea ecx, [esp + 0x34]
call fcn.00471350
cmp dword [edi], ebp
jne 0x4ac000
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x960]
cmp ecx, ebp
lea edi, [esi + 0x960]
je 0x4ac102
call fcn.004f1390
mov edi, dword [edi]
mov ecx, dword [edi + 0xc]
add edi, 0xc
cmp ecx, ebp
jne 0x4ac0f1
cmp dword [esp + 0x1c], ebp
je 0x4ac120
cmp dword [esp + 0x4c], ebp
je 0x4ac120
cmp ebx, dword [esi + 0x5a4]
jge 0x4ac120
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
mov ecx, dword [esi + 0x96c]
cmp ecx, ebp
je 0x4ac12f
call fcn.0043d4d0
mov ecx, dword [esi + 0x968]
cmp ecx, ebp
je 0x4ac13f
push esi
call fcn.004335a0
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 8], ebp
je 0x4ac1ba
lea edx, [esi + 0x144]
push edx
lea ecx, [esp + 0x20]
call fcn.00464010
lea ecx, [esp + 0x1c]
call fcn.00464020
mov ebp, eax
test ebp, ebp
je 0x4ac1ba
mov edi, 0x800
jmp 0x4ac170
mov eax, dword [ebp + 0x88]
test eax, eax
je 0x4ac1ab
mov ecx, ebp
call fcn.00487180
mov ebx, dword [eax + 0x24]
test ebx, ebx
je 0x4ac1ab
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4ac1ab
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x4ac1ab
mov al, byte [ebx + 0x12f]
test al, al
jne 0x4ac1ab
mov eax, dword [ebp + 0x2c]
test dword [eax + 0x468], edi
je 0x4ac207
lea ecx, [esp + 0x1c]
call fcn.00464020
mov ebp, eax
test ebp, ebp
jne 0x4ac170
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4ac351
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 0x5a4]
jge 0x4ac351
mov ecx, dword [esi + 0x430]
call fcn.0043a580
mov ecx, esi
call fcn.004a64c0
lea ecx, [esp + 0x20]
call fcn.0049a940
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
fldcw word [esp + 0x4c]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x38
ret 4
mov edi, dword [ebp + 0x40]
mov ecx, ebx
call fcn.00473780
sub eax, edi
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.00497d20
cmp eax, 5
jle 0x4ac326
mov eax, dword [esi + 0x5a4]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x494]
sub ecx, eax
mov dword [esi + edx*4 + 0x480], ecx
mov eax, dword [esi + 0x494]
inc eax
cdq
mov ecx, 5
idiv ecx
xor ecx, ecx
mov dword [esi + 0x494], edx
mov eax, dword [esi + 0x480]
test eax, eax
jl 0x4ac263
mov ecx, eax
mov edx, dword [esi + 0x484]
cmp ecx, edx
jg 0x4ac26f
mov ecx, edx
add eax, edx
mov edx, dword [esi + 0x488]
cmp ecx, edx
jg 0x4ac27d
mov ecx, edx
add eax, edx
mov edx, dword [esi + 0x48c]
cmp ecx, edx
jg 0x4ac28b
mov ecx, edx
add eax, edx
mov edx, dword [esi + 0x490]
cmp ecx, edx
jg 0x4ac299
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 0x4ac302
cmp edi, 0x3e8
jge 0x4ac302
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x420]
mov ebx, dword [edx + 0x1a8]
sar ecx, 2
and ecx, 3
mov ecx, dword [ecx*4 + 0x541598]
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 0x4ac326
test ecx, ecx
jle 0x4ac326
xor edx, edx
mov dword [esi + 0x480], edx
mov dword [esi + 0x484], edx
mov dword [esi + 0x488], edx
mov dword [esi + 0x48c], edx
mov dword [esi + 0x490], edx
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x20]
jg 0x4ac355
call fcn.0049a940
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x38
ret 4
lea ecx, [esp + 0x20]
call fcn.0049a940
mov eax, dword [esi + 0x420]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add ecx, edx
test eax, eax
mov dword [esi + 0x5a4], ecx
je 0x4ac5ba
mov edx, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], 0
lea esp, [esp]
lea eax, [esi + 0x140]
push eax
lea ecx, [esp + 0x50]
call fcn.00464010
lea ecx, [esp + 0x4c]
call fcn.00464020
mov edi, eax
test edi, edi
je 0x4ac440
mov ebp, dword [esp + 0x24]
jmp 0x4ac3c0
mov eax, dword [edi + 0x88]
test eax, eax
je 0x4ac426
mov ecx, edi
call fcn.00487180
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4ac426
cmp edi, ebp
je 0x4ac426
mov ecx, edi
call fcn.00487180
mov eax, dword [eax + 0x24]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4ac426
mov ecx, dword [eax + 0x28]
test ecx, ecx
jne 0x4ac426
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + 0x468]
test ch, 8
jne 0x4ac426
mov ebx, dword [edi + 0x40]
mov ecx, edi
call fcn.00487180
mov ecx, dword [eax + 0x24]
call fcn.00473780
cmp eax, ebx
jge 0x4ac426
mov ecx, edi
call fcn.00487180
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ac431
push 0
mov ecx, edi
push 1
call fcn.00491c80
lea ecx, [esp + 0x4c]
call fcn.00464020
mov edi, eax
test edi, edi
jne 0x4ac3c0
mov al, byte [esi + 0x97d]
test al, al
je 0x4ac488
lea eax, [esi + 0x140]
push eax
lea ecx, [esp + 0x24]
mov byte [esi + 0x97d], 0
call fcn.00464010
lea ecx, [esp + 0x20]
call fcn.00464020
test eax, eax
je 0x4ac488
mov edi, edi
mov ecx, dword [eax + 0x98]
call fcn.0048c3c0
lea ecx, [esp + 0x20]
call fcn.00464020
test eax, eax
jne 0x4ac470
mov ecx, dword [esi + 0x430]
call fcn.0043a560
mov ecx, esi
call fcn.004a64c0
mov ecx, dword [esi + 0x3f4]
push ecx
mov ecx, dword [esi + 0x3f0]
call fcn.00466bb0
push 0
mov ecx, esi
call fcn.0046d440
lea eax, [esi + 0x148]
push eax
lea ecx, [esp + 0x2c]
call fcn.00464010
lea ecx, [esp + 0x28]
call fcn.00464020
mov edi, eax
test edi, edi
je 0x4ac5b0
mov ecx, dword [edi + 0x2c]
call fcn.00485100
test eax, eax
je 0x4ac59d
mov ecx, dword [edi + 0x2c]
call fcn.00485130
test al, al
jne 0x4ac59d
mov ecx, dword [edi + 0x2c]
call fcn.00485100
push edi
lea ecx, [esi + 0x148]
mov ebx, eax
call fcn.00463fc0
mov edx, dword [edi + 0x2c]
mov ebp, dword [edx + 0x54]
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.0040d760
push eax
push ebp
mov ecx, esi
call fcn.004a28a0
mov ecx, dword [esp + 0x34]
push ecx
mov ebp, eax
call fcn.00439d00
add esp, 4
test ebp, ebp
jne 0x4ac53f
mov ebp, dword [edi + 0x2c]
mov ebx, dword [ebx + 0x28]
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 2
call fcn.00462f90
mov ecx, dword [edi + 0x2c]
call fcn.00485120
test ebx, ebx
je 0x4ac59d
mov ecx, dword [esi + 0x998]
mov eax, dword [ecx + 0x1ac]
test eax, eax
jne 0x4ac575
call fcn.00486cc0
push eax
push str.onLoadInit
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.0049eb30
mov ecx, dword [esp + 0x30]
push 0
push 1
lea eax, [esp + 0x24]
push eax
push ecx
push ebx
mov ecx, esi
call fcn.004a65d0
lea ecx, [esp + 0x28]
call fcn.00464020
mov edi, eax
test edi, edi
jne 0x4ac4d8
dec dword [esp + 0x2c]
jne 0x4ac390
mov ebp, dword [esp + 0x10]
mov ecx, dword [esi + 0x95c]
xor ebx, ebx
push ebx
push 2
dec ebp
call fcn.004ed9b0
mov edi, dword [esi + 0x960]
cmp edi, ebx
je 0x4ac5f6
lea esp, [esp]
mov ecx, dword [edi + 0x80]
cmp ecx, ebx
je 0x4ac5ef
call fcn.004309b0
mov edi, dword [edi + 0xc]
cmp edi, ebx
jne 0x4ac5e0
push ebx
mov ecx, esi
call fcn.004aa020
lea ecx, [esi + 0x458]
call fcn.004a9d50
mov ecx, esi
call fcn.0049a8c0
push ebx
push esi
call fcn.0041b330
mov eax, dword [esi + 0x580]
add esp, 8
cmp eax, ebx
je 0x4ac638
lea edx, [esi + 0x5b4]
push edx
mov ecx, esi
call fcn.0049ec30
mov dword [esi + 0x580], ebx
cmp dword [esi + 0x3d4], ebx
jne 0x4ac662
cmp dword [esi + 0x4c8], ebx
jne 0x4ac662
mov eax, dword [esi + 0x5b0]
cmp eax, ebx
jl 0x4ac662
push ebx
push eax
lea eax, [esi + 0x5b4]
push eax
mov ecx, esi
call fcn.004aaf00
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x80]
cmp dword [esi + 0x46c], ebx
je 0x4ac722
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [esi + 0x420]
mov eax, dword [eax + 0x1a8]
and ecx, 0x7fffffff
sub ecx, edi
cmp ecx, eax
jg 0x4ac6b6
cmp ebp, 1
jg 0x4ac6b6
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp ecx, eax
jge 0x4ac6bc
inc dword [esi + 0x49c]
jmp 0x4ac6bc
inc dword [esi + 0x498]
mov ecx, dword [esi + 0x4a0]
inc ecx
cmp ecx, 4
mov dword [esi + 0x4a0], ecx
jle 0x4ac71c
cmp dword [esi + 0x470], 0xa
jle 0x4ac71c
mov eax, dword [esi + 0x468]
mov edx, 2
cmp eax, edx
jne 0x4ac6fb
mov eax, dword [esi + 0x498]
lea eax, [eax + eax*2]
cmp eax, ecx
jle 0x4ac71c
mov dword [esi + 0x468], ebx
jmp 0x4ac70e
mov eax, dword [esi + 0x49c]
lea eax, [eax + eax*2]
cmp eax, ecx
jle 0x4ac71c
mov dword [esi + 0x468], edx
mov ecx, esi
push edx
mov dword [esi + 0x470], ebx
call fcn.004a7ac0
inc dword [esi + 0x470]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], ecx
fldcw word [esp + 0x4c]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x38
ret 4