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

Disassembly:
push ebx
push esi
push edi
push ebp
fld dword [0x5ea068]
fld dword [0x5ea068]
add esp, 0xffffff80
mov eax, dword [esp + 0x94]
mov ebp, dword [eax + 0x10]
mov edx, dword [esp + 0x98]
fstp dword [esp]
fld dword [0x5ea068]
fstp dword [esp + 4]
fld dword [0x5ea068]
fstp dword [esp + 8]
fld dword [0x5ea068]
fstp dword [esp + 0xc]
fld dword [0x5ea068]
fstp dword [esp + 0x10]
fld dword [0x5ea068]
fstp dword [esp + 0x14]
fld dword [0x5ea068]
fstp dword [esp + 0x18]
fld dword [0x5ea068]
lea edi, [esp + 0x3c]
mov dword [esp + 0x74], 0
lea esi, [esp + 0x74]
mov dword [esp + 0x78], 0
fstp dword [esp + 0x1c]
fld dword [0x5ea068]
mov dword [esp + 0x7c], 0
add ebp, 0x10
fstp dword [esp + 0x20]
movsd dword es:[edi], dword [esi]
xor bl, bl
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x54], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
cmp dword [edx], 0
je 0x402e27
lea esi, [edx + 4]
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
je 0x402e1f
mov edi, dword [eax + 0x18]
mov ecx, edi
mov eax, dword [ecx + 0x30]
and eax, 0x10
je 0x402e1f
fadd dword [edi + 0x18]
add esi, 4
cmp dword [esi], 0
jne 0x402e07
fld dword [0x5ea06c]
fsub st(1)
lea esi, [edx + 4]
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov edi, esi
fstp st(0)
mov dword [esp + 0x24], eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x402e8e
mov eax, dword [edx + 4]
and eax, 2
je 0x402e8e
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x30]
and eax, 0x40
je 0x402e8e
lea eax, [esp + 0x58]
push dword [esp + 0x24]
push eax
call fcn.00401fe0
fld dword [esp]
fadd dword [esp + 0x58]
fstp dword [esp]
fld dword [esp + 4]
fadd dword [esp + 0x5c]
fstp dword [esp + 4]
fld dword [esp + 8]
fadd dword [esp + 0x60]
fstp dword [esp + 8]
add edi, 4
cmp dword [edi], 0
jne 0x402e42
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov eax, eax
mov ecx, dword [esi]
cmp dword [ecx + 0x14], 0
je 0x403190
lea eax, [esp + 0x58]
lea edx, [esp + 0x64]
push dword [esp + 0x28]
push edx
push eax
call fcn.00401b30
fldz
fldz
fld dword [esp + 0x48]
fadd dword [esp + 0x64]
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fadd dword [esp + 0x68]
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fadd dword [esp + 0x70]
fstp dword [esp + 0x54]
mov ecx, dword [esi]
mov edi, dword [ecx + 0x14]
mov edx, dword [edi + 4]
and edx, 2
je 0x402f99
fld dword [esp + 0x3c]
fadd dword [esp + 0x58]
fstp dword [esp + 0x3c]
fld dword [esp + 0x5c]
fstp st(2)
fld dword [esp + 0x40]
fadd st(2)
fstp dword [esp + 0x40]
fld dword [esp + 0x60]
fstp st(1)
fld dword [esp + 0x44]
fadd st(1)
fstp dword [esp + 0x44]
mov edi, dword [ecx + 0x18]
mov edx, dword [edi + 0x30]
and edx, 0x40
je 0x402f99
fld dword [esp + 0xc]
fadd dword [esp + 0x58]
or bl, al
test al, al
fstp dword [esp + 0xc]
fld dword [esp + 0x10]
fadd st(2)
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fadd st(1)
fstp dword [esp + 0x14]
je 0x402f99
fcompp
lea eax, [esp + 0x58]
push dword [esp + 0x28]
push eax
call fcn.00402110
fld dword [esp + 0x18]
fadd dword [esp + 0x58]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fadd dword [esp + 0x5c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fadd dword [esp + 0x60]
fstp dword [esp + 0x20]
fldz
fldz
add dword [esi], 0x1c
add esi, 4
cmp dword [esi], 0
jne 0x403186
mov eax, dword [esp + 0x94]
movsx eax, byte [eax]
and eax, 2
jne 0x4031a0
mov dword [ebp + 0x28], 0x3f800000
fld dword [ebp + 0x28]
fstp dword [ebp + 0x14]
fld dword [ebp + 0x14]
fstp dword [ebp]
mov dword [ebp + 0x10], 0
fld dword [ebp + 0x10]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [ebp + 4]
mov dword [ebp + 0x24], 0
fld dword [ebp + 0x24]
fstp dword [ebp + 0x20]
fld dword [ebp + 0x20]
fstp dword [ebp + 0x18]
mov dword [ebp + 0x38], 0
fld dword [ebp + 0x38]
fstp dword [ebp + 0x34]
fld dword [ebp + 0x34]
fstp dword [ebp + 0x30]
mov eax, dword [ebp + 0xc]
or eax, 0x20003
mov dword [ebp + 0xc], eax
fld dword [esp + 0x4c]
fstp st(2)
fld st(1)
fmul st(0)
fld dword [esp + 0x48]
fmul st(0)
faddp st(1)
fld dword [esp + 0x50]
fstp st(3)
fld st(2)
fmul st(0)
faddp st(1)
fld dword [esp + 0x54]
fstp st(3)
fld st(2)
fmul st(0)
faddp st(1)
fst st(1)
fstp st(2)
fld dword [0x5ea068]
fcomp st(2)
fnstsw ax
and ah, 0x44
cmp ah, 0x40
jne 0x403060
mov dword [esp + 0x54], 0x3f800000
jmp 0x4030a0
fld st(0)
fsqrt
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp st(2)
fld dword [0x5ea06c]
fdiv st(2)
fstp st(2)
fld dword [esp + 0x48]
fmul st(2)
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fmul st(2)
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fmul st(2)
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fmul st(2)
fstp dword [esp + 0x54]
fcompp
lea ecx, [esp + 0x48]
push ebp
call fcn.004ba0d0
mov eax, dword [esp + 0x94]
movsx eax, byte [eax]
and eax, 4
jne 0x403177
fld dword [esp + 0xc]
fsub dword [esp]
mov eax, dword [section..bss]
test bl, bl
mov ecx, dword [eax + 0xc]
fstp dword [ecx]
fld dword [esp + 0x10]
fsub dword [esp + 4]
fstp dword [ecx + 4]
fld dword [esp + 0x14]
fsub dword [esp + 8]
fstp dword [ecx + 8]
je 0x40310e
mov eax, dword [section..bss]
mov edi, dword [eax + 0xc]
fld dword [edi]
fadd dword [esp + 0x18]
fstp dword [edi]
fld dword [edi + 4]
fadd dword [esp + 0x1c]
fstp dword [edi + 4]
fld dword [edi + 8]
fadd dword [esp + 0x20]
fstp dword [edi + 8]
fld dword [esp + 0x3c]
fsub dword [esp + 0xc]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fsub dword [esp + 0x10]
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fsub dword [esp + 0x14]
fstp dword [esp + 0x44]
fld dword [esp + 0x3c]
fstp dword [ebp + 0x30]
fld dword [esp + 0x40]
fstp dword [ebp + 0x34]
fld dword [esp + 0x44]
fstp dword [ebp + 0x38]
mov eax, dword [esp + 0x94]
fld dword [ebp + 0x30]
fadd dword [eax + 4]
fstp dword [ebp + 0x30]
mov eax, dword [esp + 0x94]
fld dword [ebp + 0x34]
fadd dword [eax + 8]
fstp dword [ebp + 0x34]
mov eax, dword [esp + 0x94]
fld dword [ebp + 0x38]
fadd dword [eax + 0xc]
fstp dword [ebp + 0x38]
push ebp
call fcn.005a28e0
pop ecx
sub esp, 0xffffff80
pop ebp
pop edi
pop esi
pop ebx
ret
fcompp
jmp 0x402ea0
fldz
fldz
jmp 0x402f99
fcompp
jmp 0x4030ac