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

Disassembly:
sub esp, 0x138
mov eax, dword [esp + 0x148]
movsx ecx, word [eax]
movsx edx, word [eax + 2]
mov dword [esp + 8], ecx
movsx ecx, word [eax + 4]
fild dword [esp + 8]
mov dword [esp + 8], edx
movsx edx, word [eax + 6]
fmul dword [0x858bfc]
push ebx
fstp dword [esp + 0x6c]
push ebp
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [esp + 0x148]
fmul dword [0x858bfc]
push edi
fstp dword [esp + 0x7c]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
fmul dword [0x858bfc]
fstp dword [esp + 0x80]
fld dword [esp + 0x80]
fmul dword [esi + 8]
fld dword [esp + 0x7c]
fmul dword [esi + 4]
faddp st(1)
fld dword [esp + 0x78]
fmul dword [esi]
faddp st(1)
fild dword [esp + 0x18]
fmul dword [0x858b88]
fsubp st(1)
fst dword [esp + 0x58]
fabs
fst dword [esp + 0xb0]
fcomp dword [esi + 0xc]
fnstsw ax
test ah, 0x41
je 0x417462
fld dword [esp + 0x58]
mov eax, dword [esp + 0x160]
fmul dword [esp + 0x58]
fst dword [esp + 0x64]
fcomp dword [eax]
fnstsw ax
test ah, 0x41
je 0x417462
mov ebp, dword [esp + 0x154]
movzx eax, word [ebp]
mov edi, dword [esp + 0x150]
lea ecx, [eax + eax*2]
lea edx, [edi + ecx*2]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.00411590
movzx eax, word [ebp + 2]
lea ecx, [eax + eax*2]
lea edx, [edi + ecx*2]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.00411590
movzx eax, word [ebp + 4]
lea ecx, [eax + eax*2]
lea edx, [edi + ecx*2]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00411590
lea ecx, [esp + 0x90]
fld dword [esp + 0x60]
push ecx
fsub dword [esp + 0x58]
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0xbc]
fst dword [esp + 0xd4]
push eax
fld dword [esp + 0x70]
fsub dword [esp + 0x64]
fst dword [esp + 0xcc]
fld dword [esp + 0x74]
fsub dword [esp + 0x68]
fst dword [esp + 0xd0]
fstp dword [esp + 0x94]
fld st(1)
fmul st(2)
fld dword [esp + 0x94]
fmul dword [esp + 0x94]
faddp st(1)
fld st(1)
fmul st(2)
faddp st(1)
fsqrt
fstp dword [esp + 0x34]
fld dword [0x858624]
fdiv dword [esp + 0x34]
fstp dword [esp + 0x38]
fxch st(1)
fmul dword [esp + 0x38]
fstp dword [esp + 0x8c]
fmul dword [esp + 0x38]
fstp dword [esp + 0x90]
fld dword [esp + 0x94]
fmul dword [esp + 0x38]
fstp dword [esp + 0x94]
call fcn.0059c730
fld dword [esp + 0x4c]
add esp, 0x24
fsub dword [esp + 0x3c]
fst dword [esp + 0x98]
fld dword [esp + 0x2c]
fsub dword [esp + 0x40]
fst dword [esp + 0x90]
fld dword [esp + 0x30]
fsub dword [esp + 0x44]
fst dword [esp + 0x88]
fld st(2)
fmul dword [esp + 0x68]
fld st(1)
fmul dword [esp + 0x70]
faddp st(1)
fld st(2)
fmul dword [esp + 0x6c]
faddp st(1)
xor ecx, ecx
xor dl, dl
xor bl, bl
fstp dword [esp + 0x14]
fxch st(2)
fmul dword [esp + 0x9c]
fld dword [esp + 0xa4]
fmul st(3)
faddp st(1)
fld dword [esp + 0xa0]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x38]
fstp st(1)
fstp st(0)
fld dword [esi]
fsub dword [esp + 0x3c]
fld dword [esi + 4]
fsub dword [esp + 0x40]
fld dword [esi + 8]
fsub dword [esp + 0x44]
fld st(2)
fmul dword [esp + 0x68]
fld st(1)
fmul dword [esp + 0x70]
faddp st(1)
fld st(2)
fmul dword [esp + 0x6c]
faddp st(1)
fstp dword [esp + 0x34]
fxch st(2)
fmul dword [esp + 0x9c]
fxch st(2)
fmul dword [esp + 0xa4]
faddp st(2)
fmul dword [esp + 0xa0]
faddp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fmul dword [esp + 0x10]
fld dword [esp + 0x34]
fmul dword [0x858b50]
fsubp st(1)
fst dword [esp + 0x5c]
fcomp dword [0x858b50]
fnstsw ax
test ah, 1
jne 0x416e4e
mov ecx, 1
mov dl, cl
fld dword [esp + 0x34]
fmul dword [esp + 0x38]
fstp dword [esp + 0x84]
fld dword [esp + 0x60]
fmul dword [esp + 0x14]
fstp dword [esp + 0x94]
fld dword [esp + 0x84]
fsub dword [esp + 0x94]
fcomp dword [0x858b50]
fnstsw ax
test ah, 1
jne 0x416e8a
inc ecx
mov bl, 1
fld dword [esp + 0x14]
mov eax, dword [esp + 0x60]
fsub dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
fstp dword [esp + 0x8c]
fld dword [esp + 0x34]
fsub dword [esp + 0x10]
fstp dword [esp + 0x54]
fld dword [esp + 0x8c]
fmul dword [esp + 0x74]
fld dword [esp + 0x54]
fmul dword [esp + 0x18]
fsubp st(1)
fcomp dword [0x858b50]
fnstsw ax
test ah, 1
jne 0x416ed8
inc ecx
dec ecx
je 0x4172e7
dec ecx
je 0x416f50
dec ecx
jne 0x417396
fld dword [esp + 0x78]
mov ecx, dword [esp + 0xb0]
fmul dword [esp + 0x58]
mov dword [esp + 0x10], ecx
fld dword [esp + 0x7c]
fmul dword [esp + 0x58]
fld dword [esp + 0x80]
fmul dword [esp + 0x58]
fstp dword [esp + 0x50]
fld dword [esi]
fsub st(2)
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
fld dword [esi + 4]
mov dword [esp + 0x1c], edx
fsub st(1)
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
fstp st(0)
mov dword [esp + 0x20], eax
fstp st(0)
fld dword [esi + 8]
fsub dword [esp + 0x50]
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], ecx
jmp 0x417396
test dl, dl
jne 0x41705d
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
fstp dword [esp + 0x54]
fld dword [esp + 0x34]
fmul dword [esp + 0x10]
fld dword [esp + 0x60]
fmul dword [0x858b50]
faddp st(1)
fdiv dword [esp + 0x54]
fst dword [esp + 0x14]
fcomp dword [0x858b50]
fnstsw ax
test ah, 0x41
jp 0x416f96
lea eax, [esp + 0x48]
jmp 0x417364
fld dword [esp + 0x14]
fcomp dword [0x858624]
fnstsw ax
test ah, 1
jne 0x416fde
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x20]
push esi
push edx
call fcn.0040fe60
add esp, 0xc
mov ecx, eax
call fcn.004082c0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
jmp 0x417392
fld dword [esp + 0x54]
mov eax, dword [esp + 0xb4]
fsqrt
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], edx
push ecx
lea edx, [esp + 0x120]
push edx
fdivr dword [esp + 0x68]
fld st(0)
fmulp st(1)
fadd dword [esp + 0x70]
fsqrt
fstp dword [esp + 0x1c]
call fcn.0040fec0
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xe4]
push ecx
call fcn.0040fe30
mov edx, dword [eax]
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 8]
add esp, 0x18
mov dword [esp + 0x24], edx
jmp 0x417396
test bl, bl
jne 0x4171aa
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fstp dword [esp + 0x5c]
fld dword [esp + 0x60]
fmul dword [esp + 0x38]
fld dword [esp + 0x34]
fmul dword [esp + 0x14]
faddp st(1)
fdiv dword [esp + 0x5c]
fst dword [esp + 0x14]
fcomp dword [0x858b50]
fnstsw ax
test ah, 0x41
jp 0x4170dc
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x134]
push esi
push ecx
call fcn.0040fe60
add esp, 0xc
mov ecx, eax
call fcn.004082c0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x417392
fld dword [esp + 0x14]
fcomp dword [0x858624]
fnstsw ax
test ah, 1
jne 0x41711b
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xec]
push esi
push eax
call fcn.0040fe60
add esp, 0xc
mov ecx, eax
call fcn.004082c0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
jmp 0x417386
fld dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
fsub dword [esp + 0x84]
mov edx, dword [esp + 0x90]
fld dword [esp + 0x5c]
mov eax, dword [esp + 0x88]
fsqrt
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
push ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0xc0]
push eax
fxch st(1)
fxch st(1)
fdivp st(1)
fld st(0)
fmulp st(1)
fadd dword [esp + 0x70]
fsqrt
fstp dword [esp + 0x1c]
call fcn.0040fec0
lea ecx, [esp + 0x48]
lea edx, [esp + 0x10c]
push eax
push ecx
push edx
call fcn.0040fe30
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 8]
add esp, 0x18
mov dword [esp + 0x24], eax
jmp 0x417396
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x34], edx
fld dword [esp + 0x34]
mov dword [esp + 0x14], ecx
fmul dword [esp + 0x34]
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x54]
fmul dword [esp + 0x14]
fld dword [esp + 0x74]
fmul dword [esp + 0x34]
faddp st(1)
fdiv dword [esp + 0x18]
fst dword [esp + 0x38]
fcomp dword [0x858b50]
fnstsw ax
test ah, 0x41
jp 0x417234
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0xc8]
push esi
push ecx
call fcn.0040fe60
add esp, 0xc
mov ecx, eax
call fcn.004082c0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x417392
fld dword [esp + 0x38]
fcomp dword [0x858624]
fnstsw ax
test ah, 1
jne 0x417273
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xe0]
push esi
push eax
call fcn.0040fe60
add esp, 0xc
mov ecx, eax
call fcn.004082c0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
jmp 0x417386
fld dword [esp + 0x74]
mov ecx, dword [esp + 0x38]
fmul dword [esp + 0x14]
push ecx
fld dword [esp + 0x58]
lea edx, [esp + 0x40]
fmul dword [esp + 0x38]
push edx
lea eax, [esp + 0xfc]
push eax
fsubp st(1)
fld dword [esp + 0x24]
fsqrt
fxch st(1)
fxch st(1)
fdivp st(1)
fld st(0)
fmulp st(1)
fadd dword [esp + 0x70]
fsqrt
fstp dword [esp + 0x1c]
fld dword [esp + 0x34]
fsub dword [esp + 0x54]
fstp dword [esp + 0x48]
fld dword [esp + 0x38]
fsub dword [esp + 0x58]
fstp dword [esp + 0x4c]
fld dword [esp + 0x3c]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x50]
call fcn.0040fec0
lea ecx, [esp + 0x54]
lea edx, [esp + 0x48]
jmp 0x417186
test dl, dl
je 0x417322
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x110]
push esi
push edx
call fcn.0040fe60
add esp, 0xc
mov ecx, eax
call fcn.004082c0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
jmp 0x417392
test bl, bl
je 0x41735d
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x128]
push esi
push ecx
call fcn.0040fe60
add esp, 0xc
mov ecx, eax
call fcn.004082c0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x417392
lea eax, [esp + 0x13c]
lea edx, [esp + 0x3c]
push edx
push esi
push eax
call fcn.0040fe60
mov ecx, eax
add esp, 0xc
call fcn.004082c0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fcomp dword [esi + 0xc]
fnstsw ax
test ah, 5
jp 0x417462
fld dword [esp + 0x18]
mov edi, dword [esp + 0x160]
fcomp dword [edi]
fnstsw ax
test ah, 5
jp 0x417462
fld dword [esi]
lea ecx, [esp + 0x28]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x28]
fld dword [esi + 4]
fsub dword [esp + 0x20]
fstp dword [esp + 0x2c]
fld dword [esi + 8]
fsub dword [esp + 0x24]
fstp dword [esp + 0x30]
call fcn.0059c910
mov eax, dword [esp + 0x15c]
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov dword [ecx], edx
mov edx, dword [esp + 0x20]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x28]
lea ecx, [eax + 0x10]
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 8], edx
lea ecx, [esi + 0x10]
mov bx, word [ecx]
lea edx, [eax + 0x20]
mov word [edx], bx
mov cl, byte [ecx + 2]
mov byte [edx + 2], cl
mov dl, byte [ebp + 6]
mov byte [eax + 0x23], dl
mov byte [eax + 0x24], 0
fld dword [esi + 0xc]
fsub dword [esp + 0x10]
fstp dword [eax + 0x28]
mov eax, dword [esp + 0x18]
mov dword [edi], eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x138
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x138
ret