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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x89cb09
add esp, 0xffffff80
lea eax, [0x995d00]
mov dword [esp], eax
call fcn.0040b920
mov eax, dword [esp + 4]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x89c861
mov edx, dword [edx]
jmp 0x89c863
xor edx, edx
mov dword [esp + 0x38], edx
lea eax, [0x95cee0]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], edx
call fcn.004480d0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea eax, [0x89cb20]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x84]
mov dword [esp], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.0089a780
mov eax, dword [esp + 0x50]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x38], ecx
xor edx, edx
jmp 0x89ca09
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
add eax, 2
mov dword [esp], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
sub ebx, edx
lea ecx, [ebx - 1]
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and ecx, ebp
mov ebp, dword [esp + 0x40]
add ecx, ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
call fcn.0089c3b0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
lea edi, [esp + 0x68]
xor eax, eax
call fcn.0045fc4a
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x95cee0]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x95cee0]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.00409170
mov eax, dword [esp + 8]
lea ecx, [0x95cee0]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
lea eax, [0xc9af84]
mov dword [esp], eax
mov edx, dword [esp + 0x44]
mov dword [esp + 4], edx
lea ebx, [esp + 0x68]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004dafb0
mov eax, dword [esp + 0x34]
lea edx, [eax + 1]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jge 0x89ca8c
mov dword [esp + 0x34], edx
lea ecx, [eax + edx*8]
mov ebx, dword [ecx + 4]
mov dword [esp + 0x2c], ebx
mov ecx, dword [ecx]
mov dword [esp + 0x40], ecx
mov dword [esp], ecx
mov dword [esp + 4], ebx
lea ebp, [0xc94f2c]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
call fcn.005138f0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
lea edx, [0xc94704]
mov dword [esp], edx
mov dword [esp + 4], 1
sub ecx, eax
mov dword [esp + 8], ecx
call fcn.00512070
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
cmp edx, ebx
ja 0x89caff
lea ebp, [edx + 1]
cmp ebx, ebp
jae 0x89c901
jmp 0x89caf6
mov edx, dword [esp + 0x44]
test edx, edx
je 0x89cad4
mov ecx, dword [edx + 4]
mov ebx, dword [edx]
mov ebp, dword [edx + 8]
mov eax, dword [edx + 0xc]
cmp eax, ecx
ja 0x89caf1
mov dword [esp], 0
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
lea edx, [ebp + ebx]
mov dword [esp + 4], edx
sub ecx, eax
mov dword [esp + 8], ecx
call fcn.0044b840
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
jmp 0x89cadf
mov ecx, 5
lea eax, [0x9e4e4c]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
sub esp, 0xffffff80
ret
call fcn.0045fa80
mov eax, ebp
mov ecx, ebx
call fcn.0045fa80
mov ecx, edx
mov edx, ebx
call fcn.0045fa40
nop
call fcn.0045e560
jmp fcn.0089c820