Function at 0x40d750
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 + 0x18]
fldcw word [esp + 0x2e]
fild dword [esp + 0x18]
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 + 0x18]
fldcw word [esp + 0x2e]
fild dword [esp + 0x18]
fdivrp st(1)
fldcw word [esp + 0x2c]
fistp dword [esp + 0x34]
fldcw word [esp + 0x2e]
call fcn.00482670
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 0x40d888
lea edi, [esp + 0x30]
mov ecx, ebx
mov dword [esp], edi
call fcn.00413b90
sub esp, 4
lea esi, [esp + 0x48]
test eax, eax
je 0x40d80a
mov eax, dword [eax + 0x74]
cmp dword [ebx + 0x98], eax
jne 0x40d980
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 0x40d866
mov edx, dword [ebx + 0xc8]
cmp byte [edx + 0x6c], 0
jne 0x40d9a8
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 + 0x18], edi
mov edi, dword [edi + 8]
mov esi, dword [ecx + 0x18]
mov ecx, edx
sub ecx, dword [ebx + 0xbc]
mov ebp, dword [edi + 8]
mov dword [esp + 0x40], ecx
mov ecx, eax
mov dword [esp + 0x1c], esi
mov esi, dword [ebx + 0xb8]
sub ecx, dword [ebx + 0xc0]
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], esi
mov esi, dword [ebx + 0xb4]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x24], esi
test ebp, ebp
je 0x40d918
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40da08
mov dword [esp], ecx
lea esi, [esp + 0x48]
mov ecx, esi
call fcn.004cb020
mov ecx, dword [ebp + 0x28]
mov ebp, dword [ebp + 0x2c]
sub esp, 4
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add ecx, dword [esp + 0x48]
add ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x28]
add ecx, dword [edi + 0x28]
add ebp, dword [edi + 0x2c]
jmp 0x40d936
mov esi, dword [esp + 0x28]
mov edi, dword [esi + 0x2c]
mov esi, dword [esi + 0x28]
mov dword [esp + 0x3c], edi
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x38], esi
mov ecx, dword [esp + 0x38]
lea esi, [esp + 0x48]
sub eax, ebp
sub edx, ecx
mov dword [esp], esi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
call eax
sub esp, 0x10
test al, al
jne 0x40d84d
lea edi, [esp + 0x30]
jmp 0x40d80a
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.00480cd0
jmp 0x40d80a
lea edx, [esp + 0x40]
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x78]
mov byte [esp + 0x18], al
mov dword [esp], edx
call fcn.00486250
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.004862b0
movzx eax, byte [esp + 0x18]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov edi, dword [ebp + 0x28]
mov ebp, dword [ebp + 0x2c]
lea esi, [esp + 0x48]
mov dword [esp + 0x48], edi
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x4c]
jmp 0x40d907