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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x5c
fld dword [ecx + 0xb0]
fnstcw word [esp + 0x2e]
fld qword [esp + 0x70]
movzx eax, word [esp + 0x2e]
or ah, 0xc
mov word [esp + 0x2c], ax
fldcw word [esp + 0x2c]
fistp dword [esp + 0x1c]
fldcw word [esp + 0x2e]
fild dword [esp + 0x1c]
fdiv st(1)
fldcw word [esp + 0x2c]
fistp dword [esp + 0x30]
fldcw word [esp + 0x2e]
fld qword [esp + 0x78]
fldcw word [esp + 0x2c]
fistp dword [esp + 0x1c]
fldcw word [esp + 0x2e]
fild dword [esp + 0x1c]
fdivrp st(1)
fldcw word [esp + 0x2c]
fistp dword [esp + 0x34]
fldcw word [esp + 0x2e]
call fcn.00486b40
mov eax, dword [esp + 0x30]
fstp qword [ebx + 0xd0]
lea edx, [eax - 1]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], edx
sub eax, 2
cmp byte [ebx + 0xc4], 0
mov dword [esp + 0x34], eax
jne 0x40cf68
lea edi, [esp + 0x30]
mov ecx, ebx
mov dword [esp], edi
call fcn.00413500
sub esp, 4
lea esi, [esp + 0x48]
test eax, eax
je 0x40ceea
mov eax, dword [eax + 0x74]
cmp dword [ebx + 0x98], eax
jne 0x40d060
mov eax, dword [ebx]
mov ecx, dword [ebx + 0xb4]
mov ebp, dword [ebx + 0xb8]
mov edx, dword [eax + 0x14]
mov eax, dword [esp + 0x30]
mov dword [esp + 8], ecx
mov ecx, ebx
sub eax, dword [ebx + 0xbc]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
sub eax, dword [ebx + 0xc0]
mov dword [esp + 4], esi
mov dword [esp + 0x4c], eax
mov dword [esp], edi
call edx
sub esp, 0x10
cmp byte [ebx + 0xc4], 0
je 0x40cf46
mov edx, dword [ebx + 0xc8]
cmp byte [edx + 0x6c], 0
jne 0x40d088
mov edx, dword [esp + 0x30]
mov dword [ebx + 0xbc], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 0xc0], edx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov edi, dword [ebx + 0xc8]
mov ecx, dword [edi]
mov dword [esp + 0x1c], edi
mov esi, dword [ecx + 0x18]
mov ecx, edx
sub ecx, dword [ebx + 0xbc]
mov dword [esp + 0x40], ecx
mov ecx, eax
sub ecx, dword [ebx + 0xc0]
mov dword [esp + 0x20], esi
mov esi, dword [ebx + 0xb8]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x24], esi
mov esi, dword [ebx + 0xb4]
mov dword [esp + 0x28], esi
mov esi, dword [edi + 8]
mov edi, dword [esi + 8]
mov ebp, esi
mov esi, edi
test edi, edi
je 0x40cff8
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x40d0e8
mov dword [esp], ecx
lea esi, [esp + 0x48]
mov ecx, esi
call fcn.004cd510
mov eax, dword [edi + 0x28]
sub esp, 4
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [edi + 0x2c]
add eax, dword [esp + 0x4c]
mov edi, eax
mov eax, dword [esp + 0x34]
add ecx, dword [ebp + 0x28]
add edi, dword [ebp + 0x2c]
jmp 0x40d012
mov edi, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x28]
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x38]
lea esi, [esp + 0x48]
sub eax, edi
sub edx, ecx
mov dword [esp], esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
call eax
sub esp, 0x10
test al, al
jne 0x40cf2d
lea edi, [esp + 0x30]
jmp 0x40ceea
mov dword [ebx + 0x98], eax
mov eax, dword [ebx + eax*4 + 0x80]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x78]
mov dword [esp], eax
call fcn.004851a0
jmp 0x40ceea
lea edx, [esp + 0x40]
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x78]
mov byte [esp + 0x1c], al
mov dword [esp], edx
call fcn.0048a720
mov edx, dword [esp + 0x34]
sub edx, dword [ebx + 0xc0]
add edx, dword [esp + 0x48]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x30]
sub edx, dword [ebx + 0xbc]
add edx, dword [esp + 0x40]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x78]
mov dword [esp], edx
call fcn.0048a780
movzx eax, byte [esp + 0x1c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov edi, dword [edi + 0x2c]
mov esi, dword [esi + 0x28]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x48], esi
lea esi, [esp + 0x48]
mov ecx, dword [esp + 0x48]
jmp 0x40cfeb