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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 1
mov ebx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov dword [esp + 0x84], eax
mov ecx, dword [ebx + 0x10]
mov ebp, dword [edi + 8]
mov eax, ecx
mov dword [esp + 0x2c], esi
cdq
sub eax, edx
mov edx, dword [esi + 0xc]
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
push edx
push ecx
push eax
mov dword [esp + 0x2c], ecx
call fcn.0048fce0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
call fcn.0048fce0
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
mov dword [ebx + 4], ecx
mov ecx, dword [edi + 0x30]
push edx
mov edx, dword [edi + 0x38]
push eax
mov eax, dword [edi + 0x34]
push ecx
mov ecx, dword [edi + 0x3c]
push edx
mov edx, dword [esp + 0xa4]
push eax
push ecx
mov ecx, dword [esp + 0xa4]
mov eax, dword [edx]
push ebx
mov edx, dword [ecx]
push esi
push eax
push edx
call fcn.0048da00
mov esi, eax
add esp, 0x40
test esi, esi
jne 0x489525
mov eax, dword [esp + 0x84]
push 1
push eax
push ebp
call fcn.0048d370
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x90]
push ecx
push edx
push ebx
call fcn.0048f360
mov ecx, dword [ebx + 0x14]
xor eax, eax
add esp, 0x18
cmp ecx, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x74], eax
jle 0x4894e6
push ebp
call fcn.0045f060
mov eax, dword [ebx + 0x10]
add esp, 4
test eax, eax
mov dword [esp + 0x78], 0
jle 0x489421
mov eax, dword [edi + 0x38]
mov esi, dword [esp + 0x74]
lea edx, [esp + 0x14]
movsx ecx, word [eax + esi*2]
push edx
push ebp
mov dword [esp + 0x1c], ecx
call fcn.0048d4c0
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, 4
ja case.default.0x48920d
jmp dword [eax*4 + 0x489530]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x40]
push eax
mov eax, dword [edi + 0x38]
push ecx
mov ecx, dword [edi + 0x34]
push edx
mov edx, dword [esp + 0x38]
push esi
push eax
mov eax, dword [esp + 0x90]
push ecx
push edx
push eax
call fcn.0048e6d0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x489525
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x1c]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x30]
push ebp
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
lea ecx, [esp + 0x64]
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x80]
push ecx
push edx
push eax
call fcn.00489550
mov esi, eax
add esp, 0x34
test esi, esi
jne 0x489525
jmp 0x489378
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [edi + 0x38]
push edx
mov edx, dword [edi + 0x34]
push eax
mov eax, dword [esp + 0x38]
push esi
push ecx
mov ecx, dword [esp + 0x90]
push edx
push eax
push ecx
call fcn.0048edc0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x489525
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x1c]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [edi + 0x34]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
lea eax, [esp + 0x64]
push edx
lea ecx, [esp + 0x80]
push eax
push ecx
call fcn.00489740
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x489525
jmp 0x489378
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x84]
inc ecx
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x1c]
push 1
push ebp
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x74]
push ecx
push edx
push eax
call fcn.00488f20
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x489525
push ebp
call fcn.0048d540
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov ecx, 0x10
add esp, 4
add edx, ecx
add eax, ecx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
add edx, ecx
add eax, ecx
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x64], eax
mov eax, 8
add edx, eax
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x6c]
add edx, eax
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x40]
add edx, ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x44]
add edx, ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x48]
add edx, ecx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x4c]
add edx, ecx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x50]
add edx, eax
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x54]
add edx, eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x74]
add eax, ecx
mov ecx, dword [ebx + 0x10]
inc edx
cmp eax, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edx
jl 0x4891e3
push ebp
call fcn.0048d560
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add edx, eax
add ecx, eax
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x68]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x70]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x48]
add edx, eax
add ecx, eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x50]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x58]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 0x14]
add eax, 0x10
add esp, 4
cmp eax, ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x80], eax
jge 0x4894e6
jmp 0x4891c7
mov esi, 0x2c
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x84]
push eax
call fcn.00489a10
push ebp
call fcn.0048d610
mov ebx, dword [ebx + 0x20]
add esp, 8
fild dword [esp + 0x28]
mov dword [esp + 0x7c], ebx
fidiv dword [esp + 0x7c]
fcomp qword [str.333333]
fnstsw ax
test ah, 0x41
jne 0x489525
mov ecx, dword [edi + 0x30]
push ecx
push ebx
call fcn.0048faf0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret