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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [0x458b1c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
xor esi, esi
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], esi
call dword [ebp + 0xc]
mov ecx, dword [0x458b1c]
add esp, 8
cmp ecx, esi
mov dword [esp + 0x4c], esi
jle 0x409148
mov dword [esp + 0x34], esi
jmp 0x408c64
mov esi, dword [esp + 0x34]
mov ecx, dword [0x458b18]
mov eax, dword [esi + ecx]
mov edi, dword [0x458b24]
lea edx, [eax + eax*2]
fld qword [edi + edx*8 + 0x10]
lea edx, [edi + edx*8]
fld qword [0x4561b0]
mov edi, dword [esi + ecx + 4]
fdiv st(1), st(0)
sub edi, eax
inc edi
push edi
sub esp, 0x18
fxch st(1)
fadd qword [0x458a50]
fstp qword [esp + 0x10]
fdivr qword [edx + 8]
fadd qword [0x458a48]
fstp qword [esp + 8]
fld qword [esi + ecx + 8]
fstp qword [esp]
push ebx
call dword [ebp + 0x10]
mov eax, dword [0x458b18]
mov ecx, dword [esi + eax]
mov edi, dword [0x458b24]
add esp, 0x20
cmp ecx, dword [esi + eax + 4]
mov dword [esp + 0x48], ecx
jg 0x4090e7
lea esi, [ecx + ecx*2]
add esi, esi
add esi, esi
add esi, esi
inc ecx
mov dword [esp + 0x40], ecx
jmp 0x408ce7
mov ecx, dword [esp + 0x40]
fld qword [esi + edi + 8]
mov edx, dword [esp + 0x34]
cmp ecx, dword [edx + eax + 4]
fst qword [esp + 0x60]
fld qword [esi + edi + 0x10]
mov dword [esp + 0x3c], ecx
fst qword [esp + 0x68]
jle 0x408d0a
mov eax, dword [edx + eax]
jmp 0x408d0e
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + edi + 4]
lea eax, [eax + eax*2]
fld qword [edi + eax*8 + 8]
lea eax, [edi + eax*8 + 8]
lea ecx, [esi + edi + 4]
fst qword [esp + 0x50]
fld qword [eax + 8]
mov dword [esp + 0x3c], ecx
fst qword [esp + 0x58]
cmp edx, 2
jne 0x408ec2
mov ecx, dword [esi + edi]
fstp st(0)
mov edx, dword [0x458a44]
fstp st(0)
fstp st(1)
shl ecx, 5
mov ebx, dword [ecx + edx]
fstp st(0)
fld qword [ecx + edx]
add ecx, edx
fstp qword [esp + 0x70]
sub esp, 8
fld qword [ecx + 8]
fstp qword [esp + 0x80]
fld qword [0x4561e0]
fstp qword [esp]
push 0
sub esp, 0x10
mov edx, esp
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [esi + edi + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + edi + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + edi + 0x10]
mov dword [eax + 4], edx
mov edx, dword [esi + edi + 0x14]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.004087d0
add esp, 0x3c
test al, al
je 0x408e64
fld qword [esp + 0x78]
push 0
fld qword [0x4561b0]
sub esp, 0x30
fdiv st(1), st(0)
mov eax, dword [esi + edi]
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
mov ebx, dword [ebp + 8]
fld qword [0x458a50]
fadd st(2), st(0)
fxch st(2)
fstp qword [esp + 0x28]
fld qword [esp + 0xa4]
fdiv st(1)
fld qword [0x458a48]
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x20]
fld qword [esp + 0x8c]
fdiv st(2)
fadd st(3)
fstp qword [esp + 0x18]
fld qword [esp + 0x84]
fdiv st(2)
fadd st(1)
fstp qword [esp + 0x10]
fld qword [esp + 0x9c]
fdiv st(2)
faddp st(3)
fxch st(2)
fstp qword [esp + 8]
fdivr qword [esp + 0x94]
faddp st(1)
fstp qword [esp]
push eax
push edx
push ebx
call dword [ebp + 0x18]
add esp, 0x40
inc dword [esp + 0x38]
jmp 0x4090bb
fld qword [esp + 0x58]
sub esp, 0x20
fld qword [0x4561b0]
mov eax, dword [esi + edi]
fdiv st(1), st(0)
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
fld qword [0x458a50]
fadd st(2), st(0)
fxch st(2)
fstp qword [esp + 0x18]
fld qword [esp + 0x70]
fdiv st(1)
fld qword [0x458a48]
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x10]
fld qword [esp + 0x88]
fdiv st(2)
faddp st(3)
fxch st(2)
fstp qword [esp + 8]
fdivr qword [esp + 0x80]
faddp st(1)
fstp qword [esp]
push eax
push edx
jmp 0x4090ad
test edx, edx
jne 0x408f0e
fld qword [0x4561b0]
sub esp, 0x20
fdiv st(1), st(0)
mov eax, dword [esi + edi]
mov ecx, edx
fld qword [0x458a50]
fadd st(2), st(0)
fxch st(2)
fstp qword [esp + 0x18]
fdiv st(2), st(0)
fld qword [0x458a48]
fadd st(3), st(0)
fxch st(3)
fstp qword [esp + 0x10]
fdiv st(3), st(0)
fxch st(3)
faddp st(1)
fstp qword [esp + 8]
fxch st(2)
fdivrp st(1)
faddp st(1)
fstp qword [esp]
push eax
push ecx
jmp 0x4090b0
fstp st(0)
fstp st(0)
fstp st(1)
fstp st(0)
cmp edx, 6
je 0x408f24
cmp edx, 7
jne 0x4090c1
mov ecx, dword [esi + edi]
mov ebx, dword [0x458a80]
imul ecx, ecx, 0x68
fld qword [ecx + ebx + 8]
fstp qword [esp + 0x70]
fld qword [ecx + ebx + 0x10]
fstp qword [esp + 0x78]
fld qword [0x4561e0]
lea ecx, [ecx + ebx + 8]
mov ebx, dword [ecx]
cmp edx, 6
sete dl
mov byte [esp + 0x44], dl
mov edx, dword [esp + 0x44]
sub esp, 8
fstp qword [esp]
push edx
sub esp, 0x10
mov edx, esp
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [esi + edi + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + edi + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + edi + 0x10]
mov dword [eax + 4], edx
mov edx, dword [esi + edi + 0x14]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.004087d0
add esp, 0x3c
test al, al
je 0x409054
fld qword [esp + 0x78]
mov eax, dword [esp + 0x44]
fld qword [0x4561b0]
push eax
fdiv st(1), st(0)
sub esp, 0x30
mov ecx, dword [esi + edi]
mov edx, dword [esp + 0x70]
mov eax, dword [edx]
mov ebx, dword [ebp + 8]
fld qword [0x458a50]
fadd st(2), st(0)
fxch st(2)
fstp qword [esp + 0x28]
fld qword [esp + 0xa4]
fdiv st(1)
fld qword [0x458a48]
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x20]
fld qword [esp + 0x8c]
fdiv st(2)
fadd st(3)
fstp qword [esp + 0x18]
fld qword [esp + 0x84]
fdiv st(2)
fadd st(1)
fstp qword [esp + 0x10]
fld qword [esp + 0x9c]
fdiv st(2)
faddp st(3)
fxch st(2)
fstp qword [esp + 8]
fdivr qword [esp + 0x94]
faddp st(1)
fstp qword [esp]
push ecx
push eax
push ebx
call dword [ebp + 0x18]
add esp, 0x40
inc dword [esp + 0x38]
jmp 0x4090bb
fld qword [esp + 0x58]
sub esp, 0x20
fld qword [0x4561b0]
mov ecx, dword [esi + edi]
fdiv st(1), st(0)
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
fld qword [0x458a50]
fadd st(2), st(0)
fxch st(2)
fstp qword [esp + 0x18]
fld qword [esp + 0x70]
fdiv st(1)
fld qword [0x458a48]
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x10]
fld qword [esp + 0x88]
fdiv st(2)
faddp st(3)
fxch st(2)
fstp qword [esp + 8]
fdivr qword [esp + 0x80]
faddp st(1)
fstp qword [esp]
push ecx
push eax
mov ebx, dword [ebp + 8]
push ebx
call dword [ebp + 0x14]
add esp, 0x2c
inc dword [esp + 0x30]
mov edi, dword [0x458b24]
mov eax, dword [esp + 0x48]
mov ecx, dword [0x458b18]
mov edx, dword [esp + 0x34]
inc dword [esp + 0x40]
inc eax
add esi, 0x18
cmp eax, dword [edx + ecx + 4]
mov dword [esp + 0x48], eax
mov eax, ecx
jle 0x408ce3
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + eax]
lea edx, [eax + eax*2]
fld qword [edi + edx*8 + 0x10]
lea edi, [edi + edx*8]
fld qword [0x4561b0]
sub esp, 0x10
fdiv st(1), st(0)
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
fxch st(1)
fadd qword [0x458a50]
fstp qword [esp + 8]
fdivr qword [edi + 8]
fadd qword [0x458a48]
fstp qword [esp]
push eax
push ecx
push ebx
call dword [ebp + 0x1c]
mov eax, dword [esp + 0x68]
mov ecx, dword [0x458b1c]
add dword [esp + 0x50], 0x10
inc eax
add esp, 0x1c
cmp eax, ecx
mov dword [esp + 0x4c], eax
jl 0x408c60
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push edx
push eax
push ecx
push ebx
call dword [ebp + 0x20]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret