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

Disassembly:
sub esp, 0x54
mov edx, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x68]
mov ecx, dword [ebx + 4]
push ebp
mov ebp, dword [esp + 0x70]
push esi
mov esi, eax
push edi
push esi
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + edx*4]
push eax
call fcn.00463b00
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov edx, dword [ecx + esi*4]
push 1
push edx
call fcn.00466ad0
mov al, byte [ebp + 0x5f]
add esp, 0x14
cmp al, 0xff
jne 0x80fffc
cmp dword [ebp], 0
jne 0x80ff60
mov eax, dword [esp + 0x68]
push 0
push eax
call fcn.004654b0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov ecx, dword [ebp + 8]
movzx edi, byte [ecx + 0x8dc584]
lea ebx, [ebp + 0x62]
lea esi, [esp + 0x54]
call fcn.0080d740
mov eax, dword [ebp + 0x24]
test eax, eax
fild dword [ebp + 0x14]
fsubr dword [esp + 0x2c]
fmul dword [0x870774]
fstp dword [esp + 0x34]
fild dword [ebp + 0x18]
fsubr dword [esp + 0x30]
fmul dword [0x870774]
fstp dword [esp + 0x38]
je 0x80ffad
fld dword [esp + 0x28]
fmul dword [0x870e28]
fstp dword [esp + 0x28]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x80ffc2
fld dword [esp + 0x24]
fmul dword [0x870e28]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov ecx, dword [ebp]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov edx, dword [ecx + 0xc]
push edx
push esi
call fcn.00465f10
mov eax, dword [ebp]
add eax, 0x1c
push eax
push esi
call fcn.00465a20
mov ebx, dword [esp + 0x84]
jmp 0x810082
movsx ecx, al
movsx eax, byte [ebp + 0x60]
test eax, eax
jge 0x810009
xor eax, eax
lea edx, [eax + eax*2]
lea eax, [ecx + edx*8]
cdq
mov ecx, 0x1e
idiv ecx
mov esi, 6
mov word [esp + 0x14], 0x29
mov word [esp + 0x16], 0x30
mov ecx, eax
mov eax, edx
cdq
idiv esi
mov esi, dword [esp + 0x68]
add ecx, 0x4e2e
push ecx
push esi
imul edx, edx, 0x29
mov word [esp + 0x18], dx
lea edx, [eax + eax*2]
shl edx, 4
mov word [esp + 0x1a], dx
call fcn.0081bf90
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00465b50
fild dword [ebp + 0x14]
fsubr dword [esp + 0x3c]
fmul dword [0x870774]
fstp dword [esp + 0x44]
fild dword [ebp + 0x18]
fsubr dword [esp + 0x40]
fmul dword [0x870774]
fstp dword [esp + 0x48]
fild dword [ebp + 0x14]
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
fstp dword [esp + 0x30]
push esi
fild dword [ebp + 0x18]
fstp dword [esp + 0x38]
call fcn.004655b0
push 1
push esi
call fcn.004654a0
lea edx, [ebp + 0x58]
push edx
push esi
call fcn.00465950
fild dword [ebp + 0x2c]
add esp, 0x18
fmul dword [0x8caf2c]
fst dword [esp + 0x20]
fcomp dword [0x8caf24]
fnstsw ax
test ah, 0x41
jne 0x8100db
fld dword [esp + 0x20]
fsub dword [0x87380c]
fstp dword [esp + 0x20]
fild dword [ebp + 0x24]
fmul dword [0x8caf2c]
fst dword [esp + 0x18]
fcomp dword [0x8caf24]
fnstsw ax
test ah, 0x41
jne 0x810103
fld dword [esp + 0x18]
fsub dword [0x87380c]
fstp dword [esp + 0x18]
fild dword [ebp + 0x28]
fmul dword [0x8caf2c]
fst dword [esp + 0x1c]
fcomp dword [0x8caf24]
fnstsw ax
test ah, 0x41
jne 0x81012b
fld dword [esp + 0x1c]
fsub dword [0x87380c]
fstp dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00465720
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [edx + eax*4]
push ecx
call fcn.00462d90
mov edi, dword [esp + 0x80]
fld dword [edi + 8]
add esp, 0x10
fcomp dword [0x879dc4]
fnstsw ax
test ah, 5
jp 0x810184
mov dword [edi + 8], 0
fild dword [ebp + 0xc]
fadd dword [esp + 0x34]
fstp dword [esp + 0x44]
fild dword [ebp + 0x10]
fadd dword [esp + 0x38]
fstp dword [esp + 0x48]
jmp 0x8101f4
movsx edx, byte [0xdb924c]
movzx eax, byte [edx + 0x8dc580]
mov edx, dword [0xdb9234]
mov ecx, dword [ebp + 0xc]
add ecx, edx
mov edx, dword [ebp + 0x10]
imul ecx, eax
mov dword [esp + 0x74], ecx
add edx, dword [0xdb9238]
fild dword [esp + 0x74]
imul edx, eax
fadd dword [esp + 0x34]
fstp dword [esp + 0x44]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
fild dword [esp + 0x74]
fadd dword [esp + 0x38]
fstp dword [esp + 0x48]
fild dword [esp + 0x78]
fmul dword [edi]
fstp dword [edi]
movsx eax, byte [0xdb924c]
movzx ecx, byte [eax + 0x8dc580]
mov dword [esp + 0x74], ecx
fild dword [esp + 0x74]
fmul dword [edi + 4]
fstp dword [edi + 4]
mov eax, dword [ebx + 4]
mov ebp, dword [esp + 0x6c]
mov ecx, dword [eax + ebp*4]
lea edx, [esp + 0x44]
push edx
push ecx
call fcn.00463a10
push edi
push esi
call fcn.00465690
push 1
push esi
call fcn.004654b0
mov edx, dword [ebx + 4]
mov eax, dword [edx + ebp*4]
push 1
push eax
call fcn.00463a00
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret