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

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0xb8
mov ebx, dword [esp + 0xd8]
cmp byte [ebx + 0x24], 0
mov edi, dword [esp + 0xcc]
fldz
fldz
mov ebp, dword [esp + 0xd4]
jne 0x4105d8
fcompp
xor al, al
add esp, 0xb8
pop ebp
pop edi
pop esi
pop ebx
ret
fld dword [edi]
fstp dword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], eax
fld dword [edi + 4]
fstp dword [esp + 0x54]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x48], eax
fld dword [edi + 8]
fstp dword [esp + 0x4c]
fld dword [ebx + 0x14]
fsub dword [ebx + 8]
fstp st(1)
fld dword [ebx + 0x10]
fsub dword [ebx + 4]
fstp st(2)
fld dword [ebx + 0xc]
fsub dword [ebx]
fstp dword [esp + 0x94]
fld st(1)
fstp dword [esp + 0x98]
fst dword [esp + 0x9c]
fld dword [ebx + 0x20]
fsub dword [ebx + 8]
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x80]
fstp st(1)
fld dword [ebx + 0x1c]
fsub dword [ebx + 4]
fstp st(2)
fld dword [ebx + 0x18]
fsub dword [ebx]
fstp dword [esp + 0x8c]
fld st(1)
lea esi, [esp + 0x8c]
fstp dword [esp + 0x90]
fst dword [esp + 0x94]
fcompp
push esi
push eax
call fcn.004ba350
mov eax, dword [esp + 0x88]
add esp, 0xc
mov edx, dword [esp + 0x80]
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x58]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], edx
call fcn.004ba560
fldz
fldz
fldz
fld dword [ebx + 4]
fstp dword [esp + 0x14]
fld dword [esp + 0x5c]
fstp st(3)
fld st(2)
fmul dword [esp + 0x14]
fld dword [ebx]
fstp dword [esp + 0x1c]
fld dword [esp + 0x58]
fmul dword [esp + 0x1c]
faddp st(1)
fld dword [ebx + 8]
fstp dword [esp + 0x18]
fld dword [esp + 0x60]
fstp st(3)
fld st(2)
fmul dword [esp + 0x18]
faddp st(1)
fstp dword [esp + 0x20]
fld st(2)
fcomp dword [0x5ec574]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x410700
fld st(2)
fchs
jmp 0x410702
fld st(2)
fstp st(1)
fld dword [esp + 0x58]
fcomp dword [0x5ec574]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x410724
fld dword [esp + 0x58]
fchs
fstp dword [esp + 4]
jmp 0x41072c
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
fld dword [esp + 4]
fcomp st(1)
fnstsw ax
test ah, 0x45
jne 0x4107a6
fld st(1)
fcomp dword [0x5ec574]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x410751
fld st(1)
fchs
jmp 0x410753
fld st(1)
fstp st(1)
fld dword [esp + 0x58]
fcomp dword [0x5ec574]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x410775
fld dword [esp + 0x58]
fchs
fstp dword [esp + 8]
jmp 0x41077d
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
fld dword [esp + 8]
fcomp st(1)
fnstsw ax
test ah, 0x45
jne 0x4107a6
fld dword [esp + 0x58]
fcomp dword [0x5ec574]
fnstsw ax
test ah, 0x45
jne 0x4107a2
xor dl, dl
jmp 0x410825
mov dl, 1
jmp 0x410825
fld st(1)
fcomp dword [0x5ec574]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x4107c0
fld st(1)
fchs
jmp 0x4107c2
fld st(1)
fstp st(1)
fld st(2)
fcomp dword [0x5ec574]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x4107e0
fld st(2)
fchs
jmp 0x4107e2
fld st(2)
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fcomp st(1)
fnstsw ax
test ah, 0x45
jne 0x410810
fld st(2)
fcomp dword [0x5ec574]
fnstsw ax
test ah, 0x45
jne 0x410806
mov dl, 2
jmp 0x410825
mov dl, 3
jmp 0x410825
fld st(1)
fcomp dword [0x5ec574]
fnstsw ax
test ah, 0x45
jne 0x410823
mov dl, 4
jmp 0x410825
mov dl, 5
fld dword [esp + 0x54]
fmul st(3)
fld dword [esp + 0x50]
fmul dword [esp + 0x58]
faddp st(1)
fld dword [esp + 0xd0]
fmul st(3)
faddp st(1)
fsub dword [esp + 0x20]
fld dword [esp + 0x48]
fmul st(4)
fld dword [esp + 0x44]
fmul dword [esp + 0x58]
faddp st(1)
fld dword [esp + 0x4c]
fmul st(4)
faddp st(1)
fsub dword [esp + 0x20]
fmulp st(1)
fcomp dword [0x5ec574]
fnstsw ax
test ah, 4
jne 0x410bc6
and ah, 0x45
test ah, 0x41
je 0x410bc6
fld dword [esp + 0x50]
fsub dword [esp + 0x44]
lea edi, [esp + 0x64]
fstp dword [esp + 0xa0]
fld dword [esp + 0x54]
fsub dword [esp + 0x48]
lea esi, [esp + 0xa0]
fstp dword [esp + 0xa4]
fld dword [esp + 0xd0]
fsub dword [esp + 0x4c]
fstp dword [esp + 0xa8]
movsd dword es:[edi], dword [esi]
fld st(2)
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x68]
lea edi, [esp + 0x70]
mov dword [esp + 0x10], eax
fmul dword [esp + 0x10]
fld dword [esp + 0x58]
fmul dword [esp + 0x64]
movzx eax, dl
faddp st(1)
fld dword [esp + 0x6c]
fstp st(2)
fld st(2)
fmul st(2)
faddp st(1)
fld st(3)
fmul dword [esp + 0x48]
fld dword [esp + 0x58]
fmul dword [esp + 0x44]
cmp eax, 5
fsubr dword [esp + 0x20]
fsubrp st(1)
fld st(3)
fmul dword [esp + 0x4c]
fsubp st(1)
fdivrp st(1)
fstp st(3)
fld st(2)
fmul dword [esp + 0x64]
fadd dword [esp + 0x44]
fstp dword [esp + 0xac]
fld st(2)
fmul dword [esp + 0x10]
lea esi, [esp + 0xac]
fadd dword [esp + 0x48]
fstp dword [esp + 0xb0]
fld st(2)
fmul st(1)
fadd dword [esp + 0x4c]
fstp dword [esp + 0xb4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
ja case.default.0x41094c
jmp dword [eax*4 + 0x5ec5f0]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x74]
fld dword [ebx + 0x10]
fstp dword [esp + 0x3c]
fld dword [ebx + 0x14]
fstp dword [esp + 0x40]
fld dword [ebx + 0x1c]
fstp dword [esp + 0x34]
fld dword [ebx + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
fstp dword [esp + 0x38]
mov dword [esp + 0x28], eax
jmp case.default.0x41094c
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x74]
fld dword [ebx + 0x10]
fstp dword [esp + 0x34]
fld dword [ebx + 0x14]
fstp dword [esp + 0x38]
fld dword [ebx + 0x1c]
fstp dword [esp + 0x3c]
fld dword [ebx + 0x20]
fstp dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
jmp 0x410abe
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x78]
fld dword [ebx + 0x14]
fstp dword [esp + 0x3c]
fld dword [ebx + 0xc]
fstp dword [esp + 0x40]
fld dword [ebx + 0x20]
fstp dword [esp + 0x34]
fld dword [ebx + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x70]
fstp dword [esp + 0x38]
mov dword [esp + 0x28], eax
jmp case.default.0x41094c
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x78]
fld dword [ebx + 0x14]
fstp dword [esp + 0x34]
fld dword [ebx + 0xc]
fstp dword [esp + 0x38]
fld dword [ebx + 0x20]
fstp dword [esp + 0x3c]
fld dword [ebx + 0x18]
fstp dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x70]
jmp 0x410abe
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x70]
fld dword [ebx + 0xc]
fstp dword [esp + 0x3c]
fld dword [ebx + 0x10]
fstp dword [esp + 0x40]
fld dword [ebx + 0x18]
fstp dword [esp + 0x34]
fld dword [ebx + 0x1c]
fstp dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x74]
jmp 0x410abe
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x70]
fld dword [ebx + 0xc]
fstp dword [esp + 0x34]
fld dword [ebx + 0x10]
fstp dword [esp + 0x38]
fld dword [ebx + 0x18]
fstp dword [esp + 0x3c]
fld dword [ebx + 0x1c]
fstp dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x28], eax
fld dword [esp + 0x24]
fsub dword [esp + 0x2c]
fstp st(3)
fld dword [esp + 0x38]
fsub dword [esp + 0x30]
fmul st(3)
fld dword [esp + 0x28]
fsub dword [esp + 0x30]
fstp st(3)
fld dword [esp + 0x34]
fsub dword [esp + 0x2c]
fmul st(3)
fsubrp st(1)
fcomp dword [0x5ec574]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x410b11
fcompp
xor al, al
mov byte [ebx + 0x24], 0
add esp, 0xb8
fstp st(0)
pop ebp
pop edi
pop esi
pop ebx
ret
fld dword [esp + 0x40]
fsub dword [esp + 0x30]
fmul st(3)
fld dword [esp + 0x3c]
fsub dword [esp + 0x2c]
fmul st(3)
fsubrp st(1)
fcomp dword [0x5ec574]
fnstsw ax
test ah, 0x45
jne 0x410b50
fcompp
xor al, al
mov byte [ebx + 0x24], 0
add esp, 0xb8
fstp st(0)
pop ebp
pop edi
pop esi
pop ebx
ret
fld dword [esp + 0x24]
fsub dword [esp + 0x34]
fld dword [esp + 0x40]
fsub dword [esp + 0x38]
fmulp st(1)
fld dword [esp + 0x28]
fsub dword [esp + 0x38]
fld dword [esp + 0x3c]
fsub dword [esp + 0x34]
fmulp st(1)
fsubrp st(1)
fcomp dword [0x5ec574]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x410ba0
fcompp
xor al, al
mov byte [ebx + 0x24], 0
add esp, 0xb8
fstp st(0)
pop ebp
pop edi
pop esi
pop ebx
ret
fld dword [esp + 0x70]
fstp dword [ebp]
fld dword [esp + 0x74]
fstp dword [ebp + 4]
fld dword [esp + 0x78]
fstp dword [ebp + 8]
fcompp
add esp, 0xb8
mov al, 1
fstp st(0)
pop ebp
pop edi
pop esi
pop ebx
ret
fcompp
xor al, al
mov byte [ebx + 0x24], 0
fstp st(0)
add esp, 0xb8
pop ebp
pop edi
pop esi
pop ebx
ret