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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd0
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
cmp eax, 2
je 0x413248
cmp eax, 1
je 0x413248
cmp eax, 3
jne 0x41349a
fldz
mov eax, dword [edi + 0x40]
fst dword [esp + 0x5c]
mov ecx, dword [eax + 0x13958]
fst dword [esp + 0x58]
add eax, 0x2014
fst dword [esp + 0x54]
mov dword [esp + 0x10], ecx
fst dword [esp + 0x50]
mov edx, dword [eax + 0x11948]
fst dword [esp + 0x4c]
sub esp, 0xc
fst dword [esp + 0x54]
lea eax, [esp + 0xac]
fst dword [esp + 0x50]
mov dword [esp + 0x20], edx
fst dword [esp + 0x4c]
fst dword [esp + 0x48]
fst dword [esp + 0x44]
fst dword [esp + 0x40]
fst dword [esp + 0x3c]
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fst dword [esp + 0x30]
fst dword [esp + 0x2c]
fst dword [esp + 0xa8]
fst dword [esp + 0xa4]
fst dword [esp + 0xa0]
fst dword [esp + 0x9c]
fst dword [esp + 0x98]
fst dword [esp + 0x94]
fst dword [esp + 0x90]
fst dword [esp + 0x8c]
fst dword [esp + 0x88]
fst dword [esp + 0x84]
fst dword [esp + 0x80]
fst dword [esp + 0x7c]
fst dword [esp + 0x78]
fst dword [esp + 0x74]
fst dword [esp + 0x70]
fstp dword [esp + 0x6c]
fild dword [esp + 0x1c]
fdiv qword [0x6a1590]
fstp dword [esp + 0x28]
fld1
fstp dword [esp + 8]
fld dword [esp + 0x28]
fst dword [esp + 4]
fstp dword [esp]
push eax
call fcn.00474095
add esp, 0x10
lea ecx, [esp + 0x60]
call fcn.00404580
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 4]
lea ecx, [edi + 0x10]
call eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fnstcw word [esp + 0x18]
fdiv qword [0x6a1600]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x10], eax
fmul qword [0x6a1828]
fldcw word [esp + 0x10]
fistp qword [esp + 0x10]
mov esi, dword [esp + 0x10]
shl esi, 0x18
or esi, 0xffffff
sub esp, 0xc
fldcw word [esp + 0x24]
fldz
fstp dword [esp + 8]
fld dword [esp + 0x28]
fld qword [0x6a18c0]
fmul st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fmul qword [0x6a18a0]
lea ecx, [esp + 0xac]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.00404580
fldz
mov ebp, dword [edi + 0x44]
push esi
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x2c]
fstp dword [esp]
push edx
lea ebx, [edi + 0x44]
lea eax, [esp + 0xb0]
lea edx, [esp + 0x70]
call fcn.004044d0
push eax
mov eax, dword [ebp + 0x5c]
mov ecx, ebx
call eax
fldz
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x28]
lea ecx, [esp + 0xac]
fld qword [0x6a18b8]
fmul st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fmul qword [0x6a18b0]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.00404580
fldz
mov ebp, dword [edi + 0x1058]
push esi
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x2c]
fstp dword [esp]
push edx
lea ebx, [edi + 0x1058]
lea eax, [esp + 0xb0]
lea edx, [esp + 0x70]
call fcn.004044d0
push eax
mov eax, dword [ebp + 0x5c]
mov ecx, ebx
call eax
push esi
lea ecx, [esp + 0x64]
push ecx
add edi, 0x784
push edi
call fcn.00443620
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret