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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff80
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0xa0]
push eax
mov ebx, dword [esp + 0xa0]
mov esi, dword [esp + 0x98]
mov ebp, dword [esp + 0x9c]
call fcn.00412140
mov eax, dword [esp + 0xa0]
fldz
fldz
fldz
fld dword [eax + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x48]
fstp st(1)
fld dword [esi + 0x14]
fstp st(2)
mov eax, dword [esp + 0x4c]
fld st(1)
fmul st(1)
fld dword [esi + 0x10]
fstp st(4)
fld st(3)
fmul dword [esp + 0x44]
mov dword [esp], eax
faddp st(1)
fld dword [esi + 0x18]
fstp dword [esp + 4]
fld dword [esp + 4]
fmul dword [esp]
faddp st(1)
fsub dword [esp + 8]
fld dword [esi + 4]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul st(2)
fld dword [esi]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fmul dword [esp + 0x44]
faddp st(1)
fld dword [esi + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [esp]
faddp st(1)
fsub dword [esp + 8]
fmulp st(1)
fcomp dword [0x5ec574]
fnstsw ax
test ah, 4
jne 0x40f710
and ah, 0x45
test ah, 0x41
je 0x40f710
fld st(2)
fsub dword [esp + 0xc]
lea edi, [esp + 0x50]
fstp dword [esp + 0x20]
fld st(1)
fsub dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x68], eax
lea esi, [esp + 0x68]
fstp dword [esp + 0x1c]
fld dword [esp + 4]
fsub dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x6c], eax
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x70], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fld dword [esp + 0x54]
fstp st(2)
fld st(0)
fmul st(2)
fld dword [esp + 0x44]
fmul dword [esp + 0x50]
lea edi, [esp + 0x5c]
faddp st(1)
fld dword [esp + 0x58]
fstp st(4)
fld dword [esp]
fmul st(4)
faddp st(1)
fld st(1)
fmul dword [esp + 0x10]
fld dword [esp + 0x44]
fmul dword [esp + 0xc]
fsubr dword [esp + 8]
fsubrp st(1)
fld dword [esp]
fmul dword [esp + 0x14]
fsubp st(1)
fdivrp st(1)
fst st(1)
fmul dword [esp + 0x50]
fadd dword [esp + 0xc]
fstp dword [esp + 0x74]
fld st(0)
fmul st(2)
fadd dword [esp + 0x10]
lea esi, [esp + 0x74]
fstp dword [esp + 0x78]
fld st(0)
fmul st(3)
fadd dword [esp + 0x14]
fstp dword [esp + 0x7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xa0]
movzx eax, byte [eax + 0x10]
cmp eax, 5
ja case.default.0x40f2d0
jmp dword [eax*4 + 0x5ec5c0]
movzx eax, word [ebx]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax + 4]
fstp st(3)
fld st(2)
fstp dword [esp + 0x2c]
fld dword [ebp + eax + 8]
fstp dword [esp + 0x30]
movzx eax, word [ebx + 2]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax + 4]
fstp st(3)
fld st(2)
fstp dword [esp + 0x3c]
fld dword [ebp + eax + 8]
fstp dword [esp + 0x40]
movzx eax, word [ebx + 4]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax + 4]
fstp st(3)
fld st(2)
fstp dword [esp + 0x34]
fld dword [ebp + eax + 8]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x64]
fstp dword [esp + 0x38]
mov dword [esp + 0x28], eax
jmp case.default.0x40f2d0
movzx eax, word [ebx]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax + 4]
fstp st(3)
fld st(2)
fstp dword [esp + 0x2c]
fld dword [ebp + eax + 8]
fstp dword [esp + 0x30]
movzx eax, word [ebx + 2]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax + 4]
fstp st(3)
fld st(2)
fstp dword [esp + 0x34]
fld dword [ebp + eax + 8]
fstp dword [esp + 0x38]
movzx eax, word [ebx + 4]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax + 4]
fstp st(3)
fld st(2)
fstp dword [esp + 0x3c]
fld dword [ebp + eax + 8]
mov eax, dword [esp + 0x60]
fstp dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x64]
jmp 0x40f59b
movzx eax, word [ebx]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax + 8]
fstp st(3)
fld st(2)
fstp dword [esp + 0x2c]
fld dword [ebp + eax]
fstp dword [esp + 0x30]
movzx eax, word [ebx + 2]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax + 8]
fstp st(3)
fld st(2)
fstp dword [esp + 0x3c]
fld dword [ebp + eax]
fstp dword [esp + 0x40]
movzx eax, word [ebx + 4]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax + 8]
fstp st(3)
fld st(2)
fstp dword [esp + 0x34]
fld dword [ebp + eax]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x5c]
fstp dword [esp + 0x38]
mov dword [esp + 0x28], eax
jmp case.default.0x40f2d0
movzx eax, word [ebx]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax + 8]
fstp st(3)
fld st(2)
fstp dword [esp + 0x2c]
fld dword [ebp + eax]
fstp dword [esp + 0x30]
movzx eax, word [ebx + 2]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax + 8]
fstp st(3)
fld st(2)
fstp dword [esp + 0x34]
fld dword [ebp + eax]
fstp dword [esp + 0x38]
movzx eax, word [ebx + 4]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax + 8]
fstp st(3)
fld st(2)
fstp dword [esp + 0x3c]
fld dword [ebp + eax]
mov eax, dword [esp + 0x64]
fstp dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x5c]
jmp 0x40f59b
movzx eax, word [ebx]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax]
fstp st(3)
fld st(2)
fstp dword [esp + 0x2c]
fld dword [ebp + eax + 4]
fstp dword [esp + 0x30]
movzx eax, word [ebx + 2]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax]
fstp st(3)
fld st(2)
fstp dword [esp + 0x3c]
fld dword [ebp + eax + 4]
fstp dword [esp + 0x40]
movzx eax, word [ebx + 4]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax]
fstp st(3)
fld st(2)
fstp dword [esp + 0x34]
fld dword [ebp + eax + 4]
mov eax, dword [esp + 0x5c]
fstp dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
jmp 0x40f59b
movzx eax, word [ebx]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax]
fstp st(3)
fld st(2)
fstp dword [esp + 0x2c]
fld dword [ebp + eax + 4]
fstp dword [esp + 0x30]
movzx eax, word [ebx + 2]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax]
fstp st(3)
fld st(2)
fstp dword [esp + 0x34]
fld dword [ebp + eax + 4]
fstp dword [esp + 0x38]
movzx eax, word [ebx + 4]
lea eax, [eax*4]
lea eax, [eax + eax*2]
fld dword [ebp + eax]
fstp st(3)
fld st(2)
fstp dword [esp + 0x3c]
fld dword [ebp + eax + 4]
mov eax, dword [esp + 0x5c]
fstp dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
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 0x40f5e7
fcompp
xor al, al
sub esp, 0xffffff80
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 0x40f618
fcompp
xor al, al
sub esp, 0xffffff80
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 0x40f660
fcompp
xor al, al
sub esp, 0xffffff80
fstp st(0)
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0xa8]
fld st(0)
fcomp dword [eax]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x40f710
fld st(0)
fmul dword [esp + 0x20]
mov eax, dword [esp + 0xa4]
fadd dword [esp + 0xc]
fstp dword [eax]
fld st(0)
fmul dword [esp + 0x1c]
mov eax, dword [esp + 0xa4]
fadd dword [esp + 0x10]
fstp dword [eax + 4]
fld st(0)
fmul dword [esp + 0x18]
mov eax, dword [esp + 0xa4]
fadd dword [esp + 0x14]
fstp dword [eax + 8]
mov eax, dword [esp + 0xa4]
fld dword [esp + 0x44]
fstp dword [eax + 0x10]
mov eax, dword [esp + 0xa4]
fld dword [esp + 0x48]
fstp dword [eax + 0x14]
mov eax, dword [esp + 0xa4]
fld dword [esp + 0x4c]
fstp dword [eax + 0x18]
mov eax, dword [esp + 0xa4]
mov dl, byte [ebx + 6]
fld st(0)
mov byte [eax + 0x22], dl
mov byte [eax + 0x23], 0
mov byte [eax + 0x20], 0
mov byte [eax + 0x21], 0
mov eax, dword [esp + 0xa8]
fstp dword [eax]
fcompp
sub esp, 0xffffff80
mov al, 1
fstp st(0)
pop ebp
pop edi
pop esi
pop ebx
ret
fcompp
xor al, al
fstp st(0)
sub esp, 0xffffff80
pop ebp
pop edi
pop esi
pop ebx
ret