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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push esi
push edi
push ebx
sub esp, 0xa4
mov edx, dword [ebp + 0x10]
mov ecx, dword [0x5ed05c]
mov edx, dword [edx]
test edx, edx
lea eax, [ecx*4]
mov dword [esp + 0x7c], eax
mov eax, dword [0x5ed044]
jle 0x489c1c
add edx, eax
shl edx, 4
mov ebx, dword [ebp + 0xc]
mov edx, dword [edx + ebx - 0x10]
jmp 0x489c1e
xor edx, edx
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx]
add esi, eax
shl esi, 4
mov ebx, dword [esi + edi - 0x10]
mov esi, dword [0x5ed050]
test esi, esi
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], esi
jle 0x48a012
mov esi, dword [ebp + 8]
xor edi, edi
sub esi, dword [esp + 0x7c]
mov ebx, 1
mov dword [esp + 0x78], esi
lea esi, [ecx*4 - 8]
mov dword [esp + 0x74], esi
mov dword [esp + 0x84], edx
mov dword [esp + 0x8c], ecx
mov ecx, dword [0x5ed048]
mov esi, edi
mov edi, dword [0x5ed04c]
lea edx, [ebx + eax]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x9c], edi
add ecx, edi
mov edi, dword [ebp + 0xc]
add edx, ecx
mov ecx, edx
shl ecx, 4
cmp esi, dword [esp + 0x98]
mov edi, dword [edi + ecx - 0x10]
jge 0x489ffe
cmp edi, dword [esp + 0x84]
jle 0x489ffe
add eax, dword [esp + 0xa0]
add eax, dword [esp + 0x9c]
add eax, ebx
shl eax, 4
mov dword [esp + 0x90], esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x68], ebx
mov ecx, dword [esi + eax - 0xc]
mov ebx, dword [esi + eax - 8]
mov eax, dword [esi + eax - 4]
mov dword [esp + 0x6c], ebx
mov esi, dword [esp + 0x90]
mov ebx, dword [esp + 0x68]
lea eax, [eax + ecx + 1]
mov dword [esp + 0x70], eax
mov eax, dword [0x5ed040]
imul eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
cmp edx, dword [ecx + eax]
je 0x489d9c
mov dword [esp], 0
mov dword [ecx + eax], edx
xor edx, edx
add eax, dword [ebp + 8]
mov ecx, dword [0x5ed064]
test ecx, ecx
mov dword [0x5e1b88], ecx
cmovle ecx, edx
sub eax, dword [esp + 0x7c]
mov dword [esp + 0x24], eax
mov eax, ebx
cdq
shl ecx, 2
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x20], ecx
mov ecx, edx
cdq
add eax, ebx
push 0x20
adc ecx, edx
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
push 0x5c24d4
push 0x8384ff01
push 0x3b
lea eax, [esp + 0x1c]
push eax
call fcn.00553020
add esp, 0x20
test eax, eax
jle 0x48a021
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xffffff97
add esp, 0xa4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x84]
mov eax, dword [eax]
sub eax, dword [ecx]
test eax, eax
jle 0x489ffe
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x64], 1
mov dword [esp + 0x60], ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x68], ebx
mov ebx, edx
mov edi, ecx
mov esi, dword [esp + 0x64]
mov ecx, dword [ebp + 0x10]
mov eax, ebx
mov edx, dword [0x5ed044]
mov ebx, dword [ebp + 0xc]
add edx, dword [ecx]
mov ecx, esi
shl edx, 4
shl ecx, 4
add ebx, edx
mov ebx, dword [ebx + ecx - 0x10]
cmp ebx, dword [esp + 0x90]
jle 0x489fdb
cmp eax, dword [esp + 0x80]
jge 0x489fdb
add edx, dword [ebp + 0xc]
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov esi, dword [ecx + edx - 0xc]
mov dword [esp + 0x30], esi
mov esi, dword [ecx + edx - 8]
mov ecx, dword [ecx + edx - 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x5ed040]
imul ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
add ecx, dword [ebp + 8]
mov dword [esp + 0x3c], ecx
sub ecx, dword [esp + 0x74]
mov dword [esp + 0x48], ecx
lea ecx, [edx + edi]
mov dword [esp + 0x34], ecx
lea edi, [edx + edi + 8]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x90]
mov ecx, dword [esp + 0x6c]
cmp edi, eax
mov dword [0x5e1b94], ecx
mov ecx, edi
mov edx, dword [esp + 0x80]
jge 0x489e8a
mov ecx, eax
cmp edx, ebx
mov dword [0x5e1b90], edx
jl 0x489e96
mov edx, ebx
mov dword [esp + 0x44], edx
mov dword [0x5e1ba8], edx
sub edx, ecx
mov dword [0x5e1ba0], esi
mov dword [0x5e1b8c], edi
mov dword [esp + 0x4c], ecx
mov dword [0x5e1ba4], ecx
lea esi, [edx + edx + 2]
mov dword [esp + 0x28], esi
lea esi, [edi*8]
neg esi
shl ecx, 3
add esi, ecx
lea edi, [eax*8]
sub ecx, edi
lea edi, [esp + 0x28]
add esi, dword [esp + 0x48]
add ecx, dword [esp + 0x40]
push edi
push ecx
push esi
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x6c]
mov dword [0x5e1b98], eax
mov dword [0x5e1b9c], ebx
mov dword [esp + 0x5c], eax
call fcn.004616f0
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x90]
mov edx, esi
mov dword [esp + 0x54], ebx
mov ebx, dword [0x5e1b8c]
shl ebx, 3
lea edi, [esi + edi*8]
sub edx, ebx
sub edi, ebx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x58], edi
mov ebx, dword [0x5e1b98]
mov esi, dword [edx + ecx*8]
sub esi, dword [edi]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x5c], esi
mov dword [0x5e1ba8], esi
mov esi, edi
shl ebx, 3
sub esi, ebx
mov eax, dword [esp + 0x50]
lea eax, [edi + eax*8]
mov edi, dword [esp + 0x58]
sub eax, ebx
mov ebx, dword [esi + ecx*8]
mov ecx, dword [esp + 0x44]
mov dword [0x5e1ba4], ecx
sub ebx, dword [eax]
mov edx, dword [edx + ecx*8]
sub edx, dword [edi]
mov edi, dword [esp + 0x5c]
mov ecx, dword [esi + ecx*8]
sub edx, edi
sub ecx, dword [eax]
mov eax, dword [esp + 0x3c]
sub ecx, ebx
mov dword [0x5e1bb0], edx
add edx, edx
mov dword [esp + 0x2c], edx
sub eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x70]
mov dword [0x5e1bb4], ecx
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
lea eax, [eax + edx*8 + 8]
mov dword [0x5e1bac], ebx
lea edi, [eax + edi*8]
mov eax, dword [esp + 0x34]
lea edx, [ecx + esi + 1]
lea ecx, [eax + edx*8 + 8]
lea eax, [ecx + ebx*8]
lea ebx, [esp + 0x2c]
push ebx
push eax
push edi
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x60]
call fcn.004616f0
mov eax, dword [esp + 0x8c]
inc esi
cmp esi, dword [esp + 0x88]
lea edi, [edi + eax*4]
jle 0x489de6
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x80]
inc ebx
cmp ebx, dword [esp + 0x94]
jg 0x48a012
mov eax, dword [0x5ed044]
jmp 0x489c76
add esp, 0xa4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
jl 0x48a012
jmp 0x489d9c