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

Disassembly:
jmp 0x407180
mov eax, dword [0x5d5758]
sub esp, 0x1e4
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x407579
mov eax, dword [esp + 0x1f8]
push eax
call fcn.00410990
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x407579
mov eax, dword [esp + 0x200]
test eax, eax
je 0x407208
fld dword [eax + 8]
fld dword [eax + 4]
fld dword [eax]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fld dword [0x5a83f4]
fdiv st(1)
fstp dword [esp + 0x10]
fstp st(0)
fld dword [esp + 0x10]
fmul dword [eax]
fld dword [esp + 0x10]
fmul dword [eax + 4]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fmul dword [eax + 8]
fstp dword [esp + 0x1c]
jmp 0x40721e
fld dword [0x5a83e4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0xbf800000
mov ebx, dword [esp + 0x204]
test ebx, ebx
je 0x407267
fld dword [ebx + 8]
fld dword [ebx + 4]
fld dword [ebx]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fdivr dword [0x5a83f4]
fld st(0)
fmul dword [ebx]
fstp dword [esp + 0x28]
fld st(0)
fmul dword [ebx + 4]
fstp dword [esp + 0x2c]
fmul dword [ebx + 8]
fstp dword [esp + 0x30]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
fld st(1)
fmul st(2)
faddp st(1)
fsqrt
fcom dword [0x5a83e4]
fst dword [esp + 0x20]
fld st(0)
fnstsw ax
and eax, 0x4100
je 0x40728e
fchs
fcomp dword [0x5a8408]
fnstsw ax
and eax, 0x4100
jne 0x407341
fld dword [0x5a83f4]
fdiv st(1)
lea ecx, [esp + 0x134]
push ecx
fstp dword [esp + 0x14]
fstp st(0)
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x28]
fstp st(0)
call fcn.00430b60
fld dword [esp + 0x14]
fmul dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x14c], edx
fchs
fst dword [esp + 0x150]
fstp dword [esp + 0x13c]
fld dword [esp + 0x2c]
fchs
fstp dword [esp + 0x140]
call fcn.00430b60
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
fld dword [esp + 0x24]
mov edx, ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x50], edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], eax
lea edx, [esp + 0x13c]
push ecx
lea eax, [esp + 0xc0]
fchs
fstp dword [esp + 0x64]
push edx
push eax
call fcn.00431200
add esp, 0x14
jmp 0x4073a3
lea ecx, [esp + 0x34]
fstp st(0)
push ecx
fstp st(0)
call fcn.00430b60
fld dword [0x5a83e4]
fld dword [esp + 0x20]
fcomp st(1)
add esp, 4
fst dword [esp + 0x5c]
fstp dword [esp + 0x48]
fnstsw ax
and eax, 0x4100
jne 0x407381
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x58], 0xbf800000
jmp 0x407391
mov dword [esp + 0x4c], 0xbf800000
mov dword [esp + 0x58], 0x3f800000
mov ecx, 0x10
lea esi, [esp + 0x34]
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x407436
fld dword [esp + 0xd4]
fmul dword [esp + 0x30]
fld dword [esp + 0xc4]
fmul dword [esp + 0x2c]
lea edx, [esp + 0xf4]
push edx
faddp st(1)
fld dword [esp + 0xb8]
fmul dword [esp + 0x2c]
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0xe0]
fmul dword [esp + 0x34]
fld dword [esp + 0xd0]
fmul dword [esp + 0x30]
faddp st(1)
fld dword [esp + 0xc0]
fmul dword [esp + 0x2c]
faddp st(1)
fstp dword [esp + 0x20]
call fcn.00430b60
fld dword [esp + 0x20]
fst dword [esp + 0x120]
fstp dword [esp + 0xf8]
fld dword [esp + 0x18]
mov eax, dword [esp + 0x18]
fchs
fstp dword [esp + 0x118]
mov dword [esp + 0x100], eax
jmp 0x407443
lea ecx, [esp + 0xf4]
push ecx
call fcn.00430b60
add esp, 4
lea edx, [esp + 0xf4]
lea eax, [esp + 0xb4]
lea ecx, [esp + 0x174]
push edx
push eax
push ecx
call fcn.00431200
lea edx, [esp + 0x1c0]
lea eax, [esp + 0x180]
push edx
push eax
call fcn.00431500
mov ecx, dword [ebp + 0xb4]
mov edx, dword [ebp + 0xb8]
push 2
push 4
push ecx
lea eax, [esp + 0x94]
push edx
push eax
call fcn.00407590
lea ecx, [esp + 0x1dc]
lea edx, [esp + 0x9c]
push ecx
lea eax, [esp + 0xa0]
push edx
push eax
call fcn.00431200
mov ecx, dword [esp + 0xa8]
lea eax, [ebp + 8]
add esp, 0x34
mov dword [eax], ecx
mov edx, dword [esp + 0x78]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x84]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x88]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x8c]
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0x94]
mov dword [eax + 0x18], ecx
mov edx, dword [esp + 0x98]
mov dword [eax + 0x1c], edx
mov ecx, dword [esp + 0x9c]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x1fc]
fld dword [esp + 0xa4]
fadd dword [ecx]
fstp dword [eax + 0x24]
fld dword [esp + 0xa8]
fadd dword [ecx + 4]
fstp dword [eax + 0x28]
fld dword [esp + 0xac]
fadd dword [ecx + 8]
fstp dword [eax + 0x2c]
mov ecx, dword [ebp + 0x164]
test ecx, ecx
je 0x407579
mov edx, dword [ebp + 0x160]
test edx, edx
jne 0x407579
mov edx, dword [ecx + 0xc]
xor ebx, ebx
test edx, edx
jle 0x407579
mov edx, dword [ecx + 0x14]
mov edx, dword [edx + ebx*4]
test edx, edx
je 0x40756d
mov ecx, 0xc
mov esi, eax
lea edi, [edx + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x164]
inc ebx
cmp ebx, dword [ecx + 0xc]
jl 0x407557
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1e4
ret