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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x540cf9
mov ecx, dword [eax + 0x7c]
cmp ecx, 0x10000
je 0x540c8a
test ecx, ecx
jne 0x540cf9
mov ecx, dword [eax + 0x14]
or ecx, dword [eax + 0x10]
or ecx, dword [eax + 0xc]
or ecx, dword [eax + 8]
or ecx, dword [eax + 4]
jne 0x540cf9
mov edx, dword [eax + 0x28]
or edx, dword [eax + 0x24]
or edx, dword [eax + 0x20]
or edx, dword [eax + 0x1c]
or edx, dword [eax + 0x18]
jne 0x540cf9
mov ecx, dword [eax + 0x3c]
or ecx, dword [eax + 0x38]
or ecx, dword [eax + 0x34]
or ecx, dword [eax + 0x30]
or ecx, dword [eax + 0x2c]
jne 0x540cf9
mov edx, dword [eax + 0x50]
or edx, dword [eax + 0x4c]
or edx, dword [eax + 0x48]
or edx, dword [eax + 0x44]
or edx, dword [eax + 0x40]
jne 0x540cf9
mov ecx, dword [eax + 0x64]
or ecx, dword [eax + 0x60]
or ecx, dword [eax + 0x5c]
or ecx, dword [eax + 0x58]
or ecx, dword [eax + 0x54]
jne 0x540cf9
mov edx, dword [eax + 0x78]
or edx, dword [eax + 0x74]
or edx, dword [eax + 0x70]
or edx, dword [eax + 0x6c]
or edx, dword [eax + 0x68]
jne 0x540cf9
mov dword [eax + 0x7c], 0
pop ebp
ret
push ebx
push esi
push edi
lea ebx, [esp - 0x200]
sub esp, 0x248
and ebx, 0xfffffff0
mov esi, dword [ebp + 8]
lea edi, [ebx]
mov ecx, 8
jmp 0x540d20
movsx eax, word [esi + 2]
or eax, dword [esi + 4]
or eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x540d50
fild word [esi]
fst qword [edi + 0x38]
fst qword [edi + 0x30]
fst qword [edi + 0x28]
fst qword [edi + 0x20]
fst qword [edi + 0x18]
fst qword [edi + 0x10]
fst qword [edi + 8]
fstp qword [edi]
jmp 0x540e7c
fild word [esi + 0xe]
fld st(0)
fild word [esi + 2]
fadd st(1), st(0)
fld qword [0x7003d0]
fxch st(1)
fmul qword [0x7003d8]
fxch st(1)
fmulp st(2)
fadd st(1)
fstp qword [ebx - 8]
fild word [esi + 6]
fld st(0)
fxch st(3)
fmul qword [0x7003e0]
fild word [esi + 0xa]
fadd st(4), st(0)
fmul qword [0x6ff360]
fxch st(1)
fsubp st(3)
fld qword [0x6ff348]
fmulp st(4)
fsubr st(3)
fstp qword [ebx - 0x10]
fmul qword [0x6ff3b8]
fsubp st(2)
fxch st(1)
fstp qword [ebx - 0x18]
fild word [esi]
fild word [esi + 8]
fild word [esi + 4]
fld st(0)
fmul qword [0x6ff378]
fld st(3)
fild word [esi + 0xc]
fxch st(5)
fsub st(4)
fxch st(3)
fadd st(5)
fxch st(1)
faddp st(4)
fld qword [0x6ff3a0]
fmulp st(1)
fxch st(4)
fmul qword [0x7003f8]
fld qword [ebx - 8]
fsub qword [ebx - 0x10]
fld st(5)
fxch st(3)
faddp st(6)
fld qword [ebx - 8]
fxch st(1)
fstp qword [ebx - 8]
fld st(6)
fadd qword [ebx - 0x18]
fxch st(1)
fadd qword [ebx - 0x10]
fxch st(7)
fsub qword [ebx - 0x18]
fxch st(1)
fstp qword [ebx - 0x10]
fld st(4)
fxch st(3)
fsubrp st(2)
fxch st(4)
fsub st(5)
fxch st(2)
faddp st(5)
fld st(2)
fsub st(1)
fxch st(5)
fstp qword [ebx - 0x18]
fld qword [ebx - 8]
fld qword [0x6ff370]
fxch st(4)
faddp st(2)
fld st(3)
fxch st(1)
fadd st(5)
fmulp st(1)
fld qword [ebx - 0x18]
fadd st(7)
fxch st(5)
fsubr qword [ebx - 8]
fxch st(5)
fstp qword [edi]
fxch st(6)
fsubr qword [ebx - 0x18]
fld st(2)
fxch st(1)
fstp qword [edi + 0x38]
fadd qword [ebx - 0x10]
fxch st(3)
fmulp st(4)
fxch st(2)
fstp qword [edi + 0x18]
fld st(1)
fadd st(5)
fxch st(1)
fsub qword [ebx - 0x10]
fxch st(2)
fsubrp st(5)
fstp qword [edi + 8]
fld st(2)
fxch st(1)
fstp qword [edi + 0x20]
fxch st(2)
fsub st(1)
fxch st(2)
faddp st(1)
fxch st(2)
fstp qword [edi + 0x30]
fstp qword [edi + 0x28]
fstp qword [edi + 0x10]
add esi, 0x10
add edi, 0x40
dec ecx
jne 0x540d20
lea esi, [ebx]
mov edi, dword [ebp + 8]
lea edx, [0x6ffbc0]
mov ecx, 8
lea esp, [esp]
fld qword [esi + 0x1c0]
fld st(0)
fld qword [esi + 0x40]
fadd st(1), st(0)
fld qword [0x7003e8]
fxch st(1)
fmul qword [0x6ff3a8]
fxch st(1)
fmulp st(2)
fadd st(1)
fstp qword [ebx - 0x10]
fld qword [esi + 0xc0]
fld st(0)
fxch st(3)
fmul qword [0x6ff3b0]
fld qword [esi + 0x140]
fadd st(4), st(0)
fmul qword [0x6ff358]
fxch st(1)
fsubp st(3)
fld qword [0x6ff388]
fmulp st(4)
fsubr st(3)
fstp qword [ebx - 0x18]
fld qword [0x6e8bd0]
fld qword [esi]
fmul st(1)
fxch st(2)
fmul qword [0x700400]
fld qword [esi + 0x100]
fmulp st(2)
fld qword [esi + 0x180]
fld st(3)
fxch st(6)
fsubrp st(2)
fld qword [esi + 0x80]
fld st(0)
fxch st(5)
fsub st(4)
fxch st(7)
faddp st(4)
fxch st(4)
fadd st(1)
fld qword [0x700410]
fxch st(2)
fmul qword [0x6ff368]
fxch st(2)
fmulp st(1)
fxch st(4)
fmul qword [0x6ff350]
fld qword [ebx - 0x10]
fsub qword [ebx - 0x18]
fxch st(2)
fsubr st(5)
fxch st(1)
faddp st(5)
fld qword [ebx - 0x10]
fxch st(2)
fstp qword [ebx - 0x10]
fld st(5)
fxch st(2)
fadd qword [ebx - 0x18]
fxch st(6)
fsub st(3)
fxch st(2)
faddp st(3)
fld st(3)
fsub st(5)
fxch st(3)
fstp qword [ebx - 0x18]
fxch st(3)
faddp st(4)
fld st(5)
fld qword [ebx - 0x10]
fxch st(7)
fsub st(4)
fxch st(7)
fadd st(2)
fxch st(1)
faddp st(4)
fld qword [0x6ff370]
fmul st(1), st(0)
fxch st(1)
fstp qword [ebx - 8]
fld st(4)
fadd st(6)
fxch st(2)
fsubr qword [ebx - 0x10]
fxch st(5)
fsubrp st(6)
fxch st(1)
fistp dword [ebx - 0x1c]
fxch st(4)
mov eax, dword [ebx - 0x1c]
movsx eax, word [edx + eax*2]
mov word [edi], ax
fistp dword [ebx - 0x38]
mov eax, dword [ebx - 0x38]
fld st(0)
movsx eax, word [edx + eax*2]
mov word [edi + 0x70], ax
fadd qword [ebx - 0x18]
fistp dword [ebx - 0x28]
mov eax, dword [ebx - 0x28]
movsx eax, word [edx + eax*2]
mov word [edi + 0x30], ax
fsub qword [ebx - 0x18]
fld st(1)
fxch st(1)
fistp dword [ebx - 0x2c]
mov eax, dword [ebx - 0x2c]
movsx eax, word [edx + eax*2]
mov word [edi + 0x40], ax
fadd qword [ebx - 8]
fxch st(3)
fmulp st(2)
fxch st(2)
fistp dword [ebx - 0x20]
fxch st(1)
mov eax, dword [ebx - 0x20]
movsx eax, word [edx + eax*2]
mov word [edi + 0x10], ax
fsub qword [ebx - 8]
fld st(2)
fsub st(2)
fxch st(1)
fistp dword [ebx - 0x34]
fxch st(2)
mov eax, dword [ebx - 0x34]
faddp st(1)
movsx eax, word [edx + eax*2]
mov word [edi + 0x60], ax
fistp dword [ebx - 0x24]
mov eax, dword [ebx - 0x24]
movsx eax, word [edx + eax*2]
mov word [edi + 0x20], ax
fistp dword [ebx - 0x30]
mov eax, dword [ebx - 0x30]
movsx eax, word [edx + eax*2]
mov word [edi + 0x50], ax
add esi, 8
add edi, 2
dec ecx
jne 0x540ea0
add esp, 0x248
pop edi
pop esi
pop ebx
pop ebp
ret