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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x489bd5
sub esp, 0x6c
call fcn.00432960
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [esp]
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0xc]
xor ebp, ebp
xor esi, esi
mov edi, ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x24], edi
cmp ebp, eax
jge 0x489bbe
mov eax, dword [ebx + 4]
mov dword [esp + 0x34], eax
mov ebx, dword [ebx]
mov dword [esp + 0x5c], ebx
cmp ebp, ecx
jae 0x489bb7
mov edx, dword [edx + ebp*4]
mov dword [esp + 0x54], edx
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jge 0x489a4e
sub eax, ecx
mov dword [esp + 0x44], eax
sar eax, 0x1f
mov ebp, dword [esp + 0x44]
sub ebp, eax
sar ebp, 1
mov dword [esp + 0x44], ebp
lea eax, [ecx + ebp]
mov dword [esp + 0x40], eax
mov esi, dword [esp + 0x34]
cmp eax, esi
jae 0x489bb0
mov edi, dword [ebx + eax*4]
add edx, edi
mov dword [esp], edx
call fcn.004851b0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xc], ecx
call fcn.00449de0
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x489b9b
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jl 0x4899b5
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
cmp ecx, eax
jge 0x489b6d
jae 0x489b94
mov ebx, dword [ebx + ecx*4]
add edx, ebx
mov dword [esp + 0x60], edx
mov dword [esp], edx
call fcn.004851b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x74]
cmp eax, edx
jne 0x489b6d
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.00449cb0
movzx eax, byte [esp + 0x10]
test al, al
je 0x489b6d
mov eax, dword [esp + 0x24]
lea ecx, [eax + 1]
mov edx, dword [esp + 0x28]
cmp ecx, edx
jg 0x489b33
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
lea ebp, [ebx + eax*4]
mov esi, dword [0x77c810]
test esi, esi
jne 0x489b15
mov ebp, dword [esp + 0x60]
mov dword [ebx + eax*4], ebp
mov eax, dword [esp + 0x3c]
inc eax
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x30]
mov ecx, eax
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
jmp 0x489a52
mov dword [esp], ebp
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.0040d580
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x58]
jmp 0x489af1
lea ebx, [0x646f00]
mov dword [esp], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.00437350
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x24]
jmp 0x489ad1
mov eax, dword [esp + 0x68]
lea ebx, [eax + 0xc]
mov eax, dword [esp + 0x30]
lea ebp, [eax + 1]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x24]
jmp 0x489963
call fcn.00424660
ud2
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
lea ecx, [ebx + edx + 1]
mov eax, dword [esp + 0x38]
jmp 0x489a22
call fcn.00424660
ud2
call fcn.00424660
ud2
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x80], eax
add esp, 0x6c
ret
call fcn.00448420
jmp fcn.00489920