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

Disassembly:
mov ecx, dword [0x85d3cc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x489fab
sub esp, 0x74
call fcn.004649b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 4]
mov dword [esp + 0x20], edx
mov ebx, dword [esp]
mov dword [esp + 0x5c], ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x64], ebp
xor ebp, ebp
jmp 0x489d7d
add eax, 0xc
mov ecx, dword [esp + 0x30]
lea ebp, [ecx + 1]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x5c]
cmp ebp, ecx
jge 0x489dd8
cmp ebp, edx
jae 0x489fa1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x70], eax
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov ecx, dword [eax]
mov dword [esp + 0x68], ecx
mov ebx, dword [ebx + ebp*4]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
jmp 0x489e1d
mov edx, dword [esp + 0x34]
jmp 0x489ec5
mov eax, dword [esp + 0x7c]
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
jmp 0x489d67
mov eax, dword [esp + 0x64]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], esi
add esp, 0x74
ret
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ecx, edx
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x40], ebx
mov edx, eax
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x40]
cmp edx, ebp
jle 0x489dbd
mov dword [esp + 0x3c], edx
sub edx, ebp
sar edx, 1
lea eax, [edx + ebp]
mov esi, dword [esp + 0x34]
cmp esi, eax
jbe 0x489f9a
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], eax
mov edx, dword [ecx + eax*4]
add edx, ebx
nop
mov dword [esp], edx
call fcn.00487cd0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0xc], ecx
call fcn.004033c0
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x489e8b
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x40]
jmp 0x489df5
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x50]
lea ebx, [ebp + ebx + 1]
mov eax, dword [esp + 0x3c]
jmp 0x489df5
mov dword [eax + edx*4 - 4], ebx
mov ecx, dword [esp + 0x38]
lea ebp, [ecx + 1]
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x64], eax
mov edi, edx
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x34]
cmp ebp, edx
jge 0x489d67
jae 0x489f91
mov dword [esp + 0x38], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], esi
mov eax, dword [ecx + ebp*4]
add eax, ebx
mov dword [esp + 0x6c], eax
nop
mov dword [esp], eax
call fcn.00487cd0
mov eax, dword [esp + 0x7c]
cmp dword [esp + 8], eax
jne 0x489dca
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
call fcn.004034b0
movzx eax, byte [esp + 0xc]
test al, al
je 0x489dc6
mov edx, dword [esp + 0x48]
inc edx
mov ebx, dword [esp + 0x44]
cmp ebx, edx
jb 0x489f35
mov eax, dword [esp + 0x64]
mov esi, ebx
jmp 0x489f67
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x689800]
mov dword [esp + 0x10], eax
call fcn.0044d800
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, dword [0x85d680]
test ebx, ebx
jne 0x489f7a
mov ebx, dword [esp + 0x6c]
jmp 0x489ea0
call fcn.00468040
mov ebx, dword [esp + 0x6c]
mov dword [edi], ebx
mov ebp, dword [eax + edx*4 - 4]
mov dword [edi + 4], ebp
jmp 0x489ea0
mov eax, ebp
mov ecx, edx
call fcn.00468090
mov ecx, esi
call fcn.00468090
mov eax, ebp
mov ecx, edx
call fcn.00468090
nop
call fcn.00466c30
jmp fcn.00489d20