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

Disassembly:
sub esp, 0x88
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
je 0x489f11
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
test eax, eax
je 0x489f11
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
test eax, eax
je 0x489f11
mov eax, dword [esp + 0xb0]
cmp eax, dword [esp + 0xa8]
jle 0x489f11
mov ecx, dword [esp + 0xb4]
cmp ecx, dword [esp + 0xac]
jle 0x489f11
mov ebx, dword [esp + 0xc0]
mov ecx, dword [esp + 0xb8]
cmp ebx, ecx
jle 0x489f11
mov edi, dword [esp + 0xc4]
mov eax, dword [esp + 0xbc]
cmp edi, eax
jle 0x489f11
cmp ecx, esi
jl 0x489f11
cmp eax, esi
jl 0x489f11
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp ebx, eax
jg 0x489f11
mov ebx, dword [esp + 0xa0]
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
cmp edi, eax
jg 0x489f11
mov edx, dword [ebx]
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [edx + 4]
mov ecx, ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x3c], esi
call eax
mov edx, dword [ebx]
mov dword [esp + 0x84], eax
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov edx, dword [ebp]
mov dword [esp + 0x88], eax
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov dword [esp + 0x8c], eax
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x90]
mov dword [esp + 0x94], eax
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xc4]
lea edx, [esp + 0xb4]
lea ebx, [esp + 0x70]
call fcn.0048cad0
mov edi, dword [esp + 0x48]
add esp, 0xc
test edi, edi
jl 0x489f11
mov ebx, dword [esp + 0x40]
test ebx, ebx
jl 0x489f11
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
mov esi, dword [esp + 0x44]
cmp esi, eax
jg 0x489f11
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x48]
cmp ecx, eax
jg 0x489f11
cmp esi, edi
jle 0x489f11
cmp ecx, ebx
jle 0x489f11
cmp dword [esp + 0x64], 0
jl 0x489f11
mov ebp, dword [esp + 0x68]
test ebp, ebp
jl 0x489f11
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x6c], eax
jg 0x489f11
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
cmp dword [esp + 0x70], eax
jg 0x489f11
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x6c], ecx
jle 0x489f11
cmp dword [esp + 0x70], ebp
jle 0x489f11
mov ecx, dword [esp + 0x9c]
xor edx, edx
test edi, edi
setl dl
xor eax, eax
sub edx, 1
and edx, edi
test ebx, ebx
setl al
mov dword [esp + 0x2c], edx
mov edx, dword [ecx]
sub eax, 1
and eax, ebx
mov dword [esp + 0x30], eax
mov eax, dword [edx + 4]
call eax
cmp eax, esi
mov edi, dword [esp + 0x9c]
jge 0x4899cc
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
jmp 0x4899ce
mov eax, esi
xor ebx, ebx
cmp eax, ebx
jge 0x4899da
mov dword [esp + 0x34], ebx
jmp 0x4899fa
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
cmp eax, esi
jge 0x4899f6
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov dword [esp + 0x34], eax
jmp 0x4899fa
mov dword [esp + 0x34], esi
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov esi, dword [esp + 0x48]
cmp eax, esi
jge 0x489a16
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
jmp 0x489a18
mov eax, esi
cmp eax, ebx
jge 0x489a22
mov dword [esp + 0x38], ebx
jmp 0x489a42
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
cmp eax, esi
jge 0x489a3e
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov dword [esp + 0x38], eax
jmp 0x489a42
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x64]
xor ecx, ecx
cmp eax, ebx
setl cl
xor edx, edx
sub ecx, 1
and ecx, eax
cmp ebp, ebx
setl dl
mov dword [esp + 0x3c], ecx
sub edx, 1
and edx, ebp
mov ebp, dword [esp + 0xa0]
mov eax, dword [ebp]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
mov esi, dword [esp + 0x6c]
cmp eax, esi
jge 0x489a8b
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
jmp 0x489a8d
mov eax, esi
cmp eax, ebx
jge 0x489a95
xor esi, esi
jmp 0x489aaf
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
cmp eax, esi
jge 0x489aaf
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
mov esi, eax
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
mov ebx, dword [esp + 0x70]
cmp eax, ebx
jge 0x489acd
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
jmp 0x489acf
mov eax, ebx
test eax, eax
jge 0x489ad7
xor eax, eax
jmp 0x489af3
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
cmp eax, ebx
jge 0x489af1
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
jmp 0x489af3
mov eax, ebx
mov ebx, dword [esp + 0x2c]
cmp dword [esp + 0x34], ebx
jle 0x489f11
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x38], edx
jle 0x489f11
cmp esi, dword [esp + 0x3c]
jle 0x489f11
cmp eax, dword [esp + 0x40]
jle 0x489f11
cmp dword [edi + 0xc], 0
je 0x489f11
cmp dword [ebp + 0x50], 0
je 0x489f11
sub esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], esi
fild dword [esp + 0x14]
sub ecx, ebx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x38]
fidiv dword [esp + 0x74]
mov esi, eax
sub esi, dword [esp + 0x40]
sub ecx, edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x7c], 1
fstp dword [esp + 0x28]
fild dword [esp + 0x78]
fidiv dword [esp + 0x14]
fstp dword [esp + 0x24]
fld qword [0x553f68]
fabs
fld dword [esp + 0x28]
fld st(0)
fld qword [0x550630]
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fabs
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcomp st(3)
fnstsw ax
test ah, 5
jnp 0x489bb8
mov dword [esp + 0x7c], 0
fld dword [esp + 0x24]
mov dword [esp + 0x80], 1
fld st(0)
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fabs
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcomp st(3)
fnstsw ax
fstp st(2)
test ah, 5
jnp 0x489bf5
mov dword [esp + 0x80], 0
cmp edx, dword [esp + 0x38]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
jge 0x489f0d
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], esi
jmp 0x489c2b
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x9c]
mov ebp, dword [esp + 0xa0]
cmp dword [esp + 0x1c], 0
jl 0x489f0d
cmp dword [esp + 0x20], 0
jl 0x489f0d
cmp dword [esp + 0x80], 0
je 0x489c55
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
jmp 0x489c6a
fild dword [esp + 0x50]
fmul st(2)
call fcn.005225b0
mov ecx, dword [esp + 0x78]
sub ecx, eax
mov dword [esp + 0x20], ecx
mov edx, dword [ebp + 0x44]
sub edx, dword [esp + 0x20]
mov ecx, dword [edi + 0x44]
sub ecx, dword [esp + 0x1c]
sub edx, dword [esp + 0x40]
sub ecx, dword [esp + 0x30]
imul edx, dword [ebp + 0x48]
imul ecx, dword [edi + 0x48]
add edx, dword [ebp + 0x50]
add ecx, dword [edi + 0x50]
cmp ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
lea esi, [edx + eax*4]
lea edi, [ecx + ebx*4]
mov dword [esp + 0x84], esi
jge 0x489ee8
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], esi
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x7c], 0
je 0x489cca
mov eax, dword [esp + 0x5c]
jmp 0x489cd8
fild dword [esp + 0x60]
fmul st(1)
call fcn.005225b0
lea eax, [esi + eax*4]
mov cl, byte [eax + 2]
mov ebp, dword [esp + 0xa4]
cmp ebp, 2
mov dl, byte [eax]
mov bl, byte [eax + 1]
mov al, byte [eax + 3]
mov byte [esp + 0x96], cl
jne 0x489d06
mov byte [edi], dl
mov byte [edi + 1], bl
mov byte [edi + 2], cl
mov byte [edi + 3], al
jmp 0x489ecd
test al, al
je 0x489ecd
cmp al, 0xff
jne 0x489d22
mov byte [edi], dl
mov byte [edi + 1], bl
mov byte [edi + 2], cl
mov byte [edi + 3], al
jmp 0x489ecd
movzx esi, byte [edi + 1]
xor ecx, ecx
mov ch, byte [edi + 3]
movzx edx, dl
mov cl, byte [edi + 2]
shl ecx, 8
or ecx, esi
movzx esi, byte [edi]
shl ecx, 8
or esi, ecx
movzx ecx, al
movzx eax, byte [esp + 0x96]
shl ecx, 8
or ecx, eax
shl ecx, 8
movzx eax, bl
or ecx, eax
shl ecx, 8
or ecx, edx
mov dword [esp + 0x58], ecx
mov bl, byte [esp + 0x5b]
test bl, bl
mov dword [esp + 0x10], esi
je 0x489ec4
cmp bl, 0xff
jne 0x489d7b
mov esi, ecx
jmp 0x489ec4
mov eax, ebp
sub eax, 0
je 0x489e61
sub eax, 1
je 0x489d9b
sub eax, 1
jne 0x489ec4
mov esi, ecx
jmp 0x489ec4
movzx esi, byte [esp + 0x13]
movzx ebp, bl
mov dword [esp + 0x24], esi
imul esi, ebp
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov al, byte [esp + 0x13]
sub al, dl
add al, bl
mov dword [esp + 0x8c], ebp
mov byte [esp + 0x1b], al
je 0x489e5b
movzx edx, byte [esp + 0x10]
movzx eax, al
shl eax, 8
mov dword [esp + 0x54], eax
mov ebx, edx
imul edx, esi
imul ebx, dword [esp + 0x24]
movzx eax, cl
imul eax, ebp
add eax, ebx
mov ebx, dword [esp + 0x54]
shl eax, 8
sub eax, edx
cdq
idiv ebx
movzx edx, byte [esp + 0x11]
mov dword [esp + 0x54], edx
mov byte [esp + 0x10], al
movzx eax, ch
mov ecx, ebp
mov ebp, dword [esp + 0x24]
imul eax, ecx
imul edx, ebp
add eax, edx
mov edx, dword [esp + 0x54]
imul edx, esi
shl eax, 8
sub eax, edx
cdq
idiv ebx
movzx edx, byte [esp + 0x12]
mov byte [esp + 0x11], al
movzx eax, byte [esp + 0x5a]
imul eax, ecx
mov ecx, edx
imul edx, esi
imul ecx, ebp
add eax, ecx
shl eax, 8
sub eax, edx
cdq
idiv ebx
mov byte [esp + 0x12], al
mov al, byte [esp + 0x1b]
mov byte [esp + 0x13], al
jmp 0x489ec0
movzx edx, byte [esp + 0x10]
mov al, bl
not al
movzx ebp, al
imul edx, ebp
movzx eax, cl
movzx esi, bl
imul eax, esi
add edx, eax
sar edx, 8
mov byte [esp + 0x10], dl
movzx edx, byte [esp + 0x11]
movzx eax, ch
imul edx, ebp
movzx ecx, byte [esp + 0x12]
imul eax, esi
add edx, eax
imul ecx, ebp
mov al, byte [esp + 0x13]
sar edx, 8
mov byte [esp + 0x11], dl
movzx edx, byte [esp + 0x5a]
imul edx, esi
add ecx, edx
sar ecx, 8
cmp bl, al
mov byte [esp + 0x12], cl
ja 0x489ebc
mov bl, al
mov byte [esp + 0x13], bl
mov esi, dword [esp + 0x10]
mov dword [edi], esi
mov esi, dword [esp + 0x84]
add dword [esp + 0x5c], 4
mov eax, 1
add dword [esp + 0x60], eax
add edi, 4
sub dword [esp + 0x28], eax
jne 0x489cbd
mov eax, dword [esp + 0x14]
mov ecx, 1
sub dword [esp + 0x4c], ecx
add dword [esp + 0x50], ecx
sub dword [esp + 0x1c], ecx
add eax, ecx
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
jl 0x489c19
fstp st(0)
fstp st(0)
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret 0x2c