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

Disassembly:
sub esp, 0x74
mov eax, dword [edi + 0xc]
push ebx
mov ebx, dword [edi + 8]
push ebp
mov ebp, dword [edi + 4]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, ecx
cdq
sub eax, edx
push esi
mov esi, dword [edi + 0x10]
mov edx, dword [esi + 0xc]
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x48], edx
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x88]
push ecx
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 1
call fcn.00661ab0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x5c]
push ecx
push edx
push eax
call fcn.00661ab0
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
push edx
push eax
mov dword [ebp + 4], ecx
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x38]
mov eax, dword [edi + 0x34]
push ecx
mov ecx, dword [edi + 0x3c]
push edx
mov edx, dword [esp + 0xb4]
push eax
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0xb4]
mov edx, dword [ecx]
push ebp
push esi
push eax
push edx
call fcn.00662e50
mov esi, eax
add esp, 0x40
test esi, esi
jne 0x65b4ee
mov eax, dword [esp + 0xc]
push 1
push eax
push ebx
call fcn.00661470
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x18]
push ecx
push edx
push ebp
call fcn.00660360
mov ecx, dword [ebp + 0x14]
xor eax, eax
add esp, 0x18
cmp ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
jle 0x65b4b2
lea ebx, [ebx]
push ebx
call fcn.006615c0
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
mov dword [esp + 0x18], 0
jle 0x65b3fd
lea esp, [esp]
mov eax, dword [edi + 0x38]
mov esi, dword [esp + 0x10]
movsx ecx, word [eax + esi*2]
lea edx, [esp + 0x20]
push edx
push ebx
mov dword [esp + 0x28], ecx
call fcn.006615d0
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 4
ja 0x65b4f7
jmp dword [eax*4 + 0x30154458]
push ebx
call fcn.00661670
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
add ecx, eax
add edx, eax
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x74]
add edx, eax
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x78]
add ecx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x80]
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x58]
add ecx, eax
add edx, eax
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x60]
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x68]
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 0x14]
add eax, 0x10
add esp, 4
cmp eax, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], eax
jl 0x65b1e0
mov edx, dword [esp + 0xc]
push edx
call fcn.0065ee40
push ebx
call fcn.00661720
fild dword [esp + 0x3c]
mov ebp, dword [ebp + 0x20]
mov dword [esp + 0x54], ebp
fidiv dword [esp + 0x54]
add esp, 8
fcomp qword [0x30259f98]
fnstsw ax
test ah, 0x41
jne 0x65b4ee
mov eax, dword [edi + 0x30]
push eax
push ebp
call fcn.00661890
add esp, 8
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
mov esi, 0x2c
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret