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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6c]
push edi
mov dword [esp + 0x4c], 1
mov ebp, dword [esi + 4]
mov dword [esp + 0x50], ebp
cmp dword [ebp + 0xf8], 0
mov eax, dword [ebp + 0x17e8]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x17ec]
mov dword [esp + 0x30], eax
je 0x4899ed
mov eax, dword [ebp + 0x130]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x134]
mov dword [esp + 0x2c], eax
jmp 0x489a06
xorps xmm0, xmm0
movlpd qword [esp + 0x5c], xmm0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
cmp dword [ebp + 0xfc], 0
mov eax, dword [esi]
mov edx, dword [ebp + 0x110]
mov ebx, dword [ebp + 0x11c]
mov ecx, dword [eax + 8]
mov edi, dword [eax + 0x10]
je 0x489a2b
lea eax, [ebp + 0x1c0]
jmp 0x489a2d
xor eax, eax
mov dword [esp + 0x28], eax
test ecx, ecx
jne 0x489a3b
mov ecx, dword [ebp + 0x124]
test edi, edi
jne 0x489a45
mov edi, dword [ebp + 0x128]
test ebx, ebx
je 0x489a57
mov edi, dword [ebp + 0x118]
lea edi, [edi + ebx]
shr edi, 1
inc edi
jmp 0x489a77
cmp edx, dword [ebp + 0x114]
jne 0x489a6b
test edx, edx
je 0x489a6b
imul edi, ecx
imul edi, edx
jmp 0x489a71
imul edi, ecx
shl edi, 0xc
shr edi, 3
add edi, 0x40
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x54], edx
movlpd qword [esp + 0x64], xmm0
test ecx, ecx
jne 0x489abb
test eax, eax
jne 0x489abb
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x489c88
mov dword [esp + 0x44], eax
mov eax, dword [ebx]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x40], edx
lea edx, [eax - 1]
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x3c], eax
test edx, edx
js 0x489b5c
mov ecx, dword [ebx + 4]
lea eax, [edx + edx*2]
lea eax, [ecx + eax*8]
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
cmp ebx, dword [0x4e2a88]
jne 0x489b15
cmp ecx, dword [0x4e2a8c]
je 0x489b50
cmp dword [eax + 0x10], 0
jbe 0x489b50
cmp dword [esp + 0x2c], 0
ja 0x489b29
cmp dword [esp + 0x24], 0
jbe 0x489b37
cmp ecx, dword [esp + 0x2c]
ja 0x489b50
jb 0x489b37
cmp ebx, dword [esp + 0x24]
jae 0x489b50
cmp ecx, dword [esp + 0x80]
jb 0x489c06
ja 0x489b50
cmp ebx, dword [esp + 0x7c]
jbe 0x489c06
sub eax, 0x18
sub edx, 1
jns 0x489b00
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
xor edx, edx
test eax, eax
jle 0x489bdb
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x7c]
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
cmp ebx, dword [0x4e2a88]
jne 0x489b96
cmp ecx, dword [0x4e2a8c]
je 0x489bc7
cmp dword [eax + 0x10], 0
jbe 0x489bc7
cmp dword [esp + 0x2c], 0
ja 0x489baa
cmp dword [esp + 0x24], 0
jbe 0x489bb8
cmp ecx, dword [esp + 0x2c]
ja 0x489bc7
jb 0x489bb8
cmp ebx, dword [esp + 0x24]
jae 0x489bc7
cmp ecx, dword [esp + 0x80]
ja 0x489bcf
jb 0x489bc7
cmp ebx, ebp
ja 0x489bcf
inc edx
add eax, 0x18
cmp edx, dword [esi]
jl 0x489b81
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
cmp edx, eax
jge 0x489c44
mov eax, dword [ebx + 4]
lea ecx, [edx + edx*2]
mov edx, dword [eax + ecx*8 + 8]
add edx, dword [esp + 0x34]
mov ebx, dword [eax + ecx*8 + 0xc]
mov esi, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
adc ebx, dword [esp + 0x30]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], eax
jmp 0x489c4c
mov ebx, dword [esp + 0x28]
test edx, edx
js 0x489b5c
lea eax, [edx + edx*2]
mov edx, dword [ebx + 4]
mov ecx, dword [edx + eax*8 + 8]
add ecx, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + eax*8 + 0xc]
adc ecx, dword [esp + 0x30]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
jmp 0x489b6c
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
mov ecx, dword [esp + 0x40]
cmp ebx, ecx
jb 0x489c88
mov eax, dword [esp + 0x38]
ja 0x489c5e
cmp edx, eax
jb 0x489c88
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ebx
jmp 0x489ca0
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
cmp edx, eax
jne 0x489cb6
cmp ebx, ecx
jne 0x489cb6
add edx, 1
mov dword [esp + 0x18], edx
adc ebx, 0
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x7c]
mov dword [ebp + 0x17f0], esi
mov esi, dword [esp + 0x80]
mov dword [ebp + 0x17f4], esi
mov esi, dword [esp + 0x70]
cmp ecx, ebx
ja 0x48a03b
jb 0x489ce3
cmp eax, edx
jae 0x48a03b
mov ebp, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
nop dword [eax + eax]
cmp ebp, dword [esp + 0x60]
ja 0x48a03b
jb 0x489d06
cmp dword [esp + 0x54], ebx
ja 0x48a03b
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
sub ecx, eax
sbb edx, dword [esp + 0x10]
call fcn.004c14b0
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sbb edx, dword [esp + 0x10]
movsd qword [esp + 0x74], xmm0
call fcn.004c14b0
movsd xmm1, qword [esp + 0x74]
mov ecx, ebx
divsd xmm1, xmm0
sub ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x60]
sbb edx, ebp
movsd qword [esp + 0x74], xmm1
call fcn.004c14b0
mulsd xmm0, qword [esp + 0x74]
call fcn.004c1400
mov ecx, eax
mov eax, dword [esp + 0x54]
sub ecx, edi
sbb edx, 0
add ecx, eax
mov dword [esp + 0x74], ecx
adc edx, ebp
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x60]
cmp dword [esp + 0x70], edx
jl 0x489d9e
jg 0x489d8a
cmp ecx, ebx
jb 0x489d9e
mov ecx, ebx
mov ebx, edx
sub ecx, 1
mov dword [esp + 0x74], ecx
sbb ebx, 0
mov dword [esp + 0x70], ebx
jmp 0x489da2
mov ebx, dword [esp + 0x70]
cmp ebx, ebp
jg 0x489db8
jl 0x489dac
cmp ecx, eax
jae 0x489db8
mov ecx, eax
mov ebx, ebp
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], ebx
mov eax, dword [esi + 4]
push dword [eax + 0x30]
mov eax, dword [eax + 8]
push ebx
push ecx
push esi
call eax
add esp, 0x10
test eax, eax
jne 0x48a03b
mov eax, dword [esi + 4]
mov dword [eax + 0xf0], 0
mov dword [eax + 0xf4], 0
mov eax, dword [esi + 4]
mov dword [eax + 0xe1c], 0
mov eax, dword [esi + 4]
cmp dword [eax], 0
je 0x489e0b
mov eax, dword [esi]
add eax, 0x20
push eax
call fcn.0048ff10
add esp, 4
mov eax, dword [esi + 4]
push dword [eax + 0x38]
call fcn.004904f0
add esp, 4
test eax, eax
mov eax, dword [esi]
je 0x48a05a
mov dword [eax], 2
mov eax, dword [esi + 4]
push esi
mov dword [eax + 0x17f8], 0
call fcn.00486860
add esp, 4
test eax, eax
je 0x48a03b
mov eax, dword [esi + 4]
cmp dword [eax + 0xe24], 0
je 0x48a04d
cmp dword [eax + 0xf0], 0
mov ebp, dword [eax + 0xeb4]
jne 0x489e6f
cmp dword [eax + 0xf4], 0
je 0x489e97
mov ecx, dword [eax + 0xe98]
mov edx, 0
add ecx, dword [eax + 0xeb0]
adc edx, ebp
cmp edx, dword [esp + 0x14]
jb 0x489ec6
ja 0x489e90
cmp ecx, dword [esp + 0x18]
jb 0x489ec6
cmp dword [esp + 0x4c], 0
jne 0x489ec6
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0x58]
cmp eax, dword [esp + 0x54]
jne 0x489ead
cmp ebx, ebp
je 0x48a03b
mov ebx, dword [esp + 0x5c]
test edi, edi
je 0x489ebc
add edi, edi
jmp 0x48a01d
mov edi, 0x10
jmp 0x48a01d
mov dword [esp + 0x4c], 0
cmp ebp, dword [esp + 0x10]
jb 0x48a03b
mov edi, dword [eax + 0xeb0]
ja 0x489eea
cmp edi, dword [esp + 0x1c]
jb 0x48a03b
cmp dword [esp + 0x80], ebp
ja 0x489f97
jb 0x489f03
cmp dword [esp + 0x7c], edi
jae 0x489f97
cmp dword [eax], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jne 0x48a03b
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x48a03b
push dword [eax + 0x30]
lea eax, [esp + 0x60]
push eax
push esi
call ecx
add esp, 0xc
test eax, eax
jne 0x48a03b
mov eax, dword [esi + 4]
push dword [eax + 0x38]
call fcn.004906c0
add esp, 4
test eax, eax
je 0x48a03b
mov eax, dword [esi + 4]
push dword [eax + 0x38]
call fcn.004905d0
mov ebx, dword [esp + 0x60]
add esp, 4
mov edx, dword [esp + 0x60]
shr eax, 3
sub ebx, eax
mov ecx, ebx
mov dword [esp + 0x5c], ebx
sbb edx, 0
sub ecx, dword [esp + 0x74]
mov eax, edx
mov dword [esp + 0x60], edx
sbb eax, dword [esp + 0x70]
push 0
shld eax, ecx, 1
push 3
add ecx, ecx
push eax
push ecx
call fcn.004c1550
mov ebp, dword [esp + 0x58]
jmp 0x48a01a
cmp dword [eax], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
jne 0x48a03b
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x48a03b
push dword [eax + 0x30]
lea eax, [esp + 0x58]
push eax
push esi
call ecx
add esp, 0xc
test eax, eax
jne 0x48a03b
mov eax, dword [esi + 4]
push dword [eax + 0x38]
call fcn.004906c0
add esp, 4
test eax, eax
je 0x48a03b
mov eax, dword [esi + 4]
push dword [eax + 0x38]
call fcn.004905d0
mov ecx, dword [esp + 0x58]
add esp, 4
mov ebp, dword [esp + 0x58]
shr eax, 3
sub ecx, eax
mov dword [esp + 0x54], ecx
sbb ebp, 0
sub ecx, dword [esp + 0x74]
mov eax, ebp
mov dword [esp + 0x58], ebp
sbb eax, ebx
push 0
shld eax, ecx, 1
push 3
add ecx, ecx
push eax
push ecx
call fcn.004c1550
mov ebx, dword [esp + 0x5c]
lea edi, [eax + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x14]
ja 0x48a03b
mov eax, dword [esp + 0x1c]
jb 0x489cf0
cmp eax, dword [esp + 0x18]
jb 0x489cf0
mov eax, dword [esi]
pop edi
pop esi
pop ebp
mov dword [eax], 6
xor eax, eax
pop ebx
add esp, 0x5c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret
pop edi
pop esi
pop ebp
mov dword [eax], 8
xor eax, eax
pop ebx
add esp, 0x5c
ret