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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
and ecx, 0xfffeffff
sub esp, 0x428
or ecx, dword [eax]
jne 0x540758
mov edx, dword [eax + 0x18]
or edx, dword [eax + 0x14]
or edx, dword [eax + 0x10]
or edx, dword [eax + 0xc]
or edx, dword [eax + 8]
or edx, dword [eax + 4]
jne 0x540758
mov ecx, dword [eax + 0x30]
or ecx, dword [eax + 0x2c]
or ecx, dword [eax + 0x28]
or ecx, dword [eax + 0x24]
or ecx, dword [eax + 0x20]
or ecx, dword [eax + 0x1c]
jne 0x540758
mov edx, dword [eax + 0x48]
or edx, dword [eax + 0x44]
or edx, dword [eax + 0x40]
or edx, dword [eax + 0x3c]
or edx, dword [eax + 0x38]
or edx, dword [eax + 0x34]
jne 0x540758
mov ecx, dword [eax + 0x60]
or ecx, dword [eax + 0x5c]
or ecx, dword [eax + 0x58]
or ecx, dword [eax + 0x54]
or ecx, dword [eax + 0x50]
or ecx, dword [eax + 0x4c]
jne 0x540758
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]
or edx, dword [eax + 0x64]
jne 0x540758
mov dword [eax + 0x7c], 0
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea eax, [0x6ff140]
lea edi, [ebp - 0x228]
mov ebx, 8
nop
movzx edx, byte [esi + 2]
mov ecx, dword [esi + 4]
or edx, dword [esi + 8]
or ecx, dword [esi + 0xc]
or edx, ecx
mov ecx, 4
jne 0x5407b0
fild word [esi]
fmul qword [eax]
fst qword [edi]
fst qword [edi + 8]
fst qword [edi + 0x10]
fst qword [edi + 0x18]
fst qword [edi + 0x20]
fst qword [edi + 0x28]
fst qword [edi + 0x30]
fstp qword [edi + 0x38]
add edi, 0x40
jmp 0x540864
fild word [esi]
fmul qword [eax]
fild word [esi + 2]
fmul qword [eax + 0x40]
faddp st(1)
fild word [esi + 4]
fmul qword [eax + 0x80]
faddp st(1)
fild word [esi + 6]
fmul qword [eax + 0xc0]
faddp st(1)
fild word [esi + 8]
fmul qword [eax + 0x100]
faddp st(1)
fild word [esi + 0xa]
fmul qword [eax + 0x140]
faddp st(1)
fild word [esi + 0xc]
fmul qword [eax + 0x180]
faddp st(1)
fild word [esi + 0xe]
fmul qword [eax + 0x1c0]
faddp st(1)
fild word [esi]
fmul qword [eax + 8]
fild word [esi + 2]
fmul qword [eax + 0x48]
faddp st(1)
fild word [esi + 4]
fmul qword [eax + 0x88]
faddp st(1)
fild word [esi + 6]
fmul qword [eax + 0xc8]
faddp st(1)
fild word [esi + 8]
fmul qword [eax + 0x108]
faddp st(1)
fild word [esi + 0xa]
fmul qword [eax + 0x148]
faddp st(1)
fild word [esi + 0xc]
fmul qword [eax + 0x188]
faddp st(1)
fild word [esi + 0xe]
fmul qword [eax + 0x1c8]
faddp st(1)
add eax, 0x10
fxch st(1)
fstp qword [edi]
fstp qword [edi + 8]
add edi, 0x10
dec ecx
jne 0x5407b0
add eax, 0xffffffc0
add esi, 0x10
sub ebx, reloc.DSOUND.dll_DirectSoundCreate
js 0x540770
test ebx, ebx
jne 0x540770
lea esi, [ebp - 0x228]
lea eax, [0x6ff140]
lea edi, [ebp - 0x428]
fld qword [0x64c0c0]
mov ebx, 8
mov ecx, 4
lea ecx, [ecx]
fld qword [esi]
fmul qword [eax]
fld qword [esi + 0x40]
fmul qword [eax + 0x40]
faddp st(1)
fld qword [esi + 0x80]
fmul qword [eax + 0x80]
faddp st(1)
fld qword [esi + 0xc0]
fmul qword [eax + 0xc0]
faddp st(1)
fld qword [esi + 0x100]
fmul qword [eax + 0x100]
faddp st(1)
fld qword [esi + 0x140]
fmul qword [eax + 0x140]
faddp st(1)
fld qword [esi + 0x180]
fmul qword [eax + 0x180]
faddp st(1)
fld qword [esi + 0x1c0]
fmul qword [eax + 0x1c0]
faddp st(1)
fadd st(1)
fxch st(1)
fld qword [esi]
fmul qword [eax + 8]
fld qword [esi + 0x40]
fmul qword [eax + 0x48]
faddp st(1)
fld qword [esi + 0x80]
fmul qword [eax + 0x88]
faddp st(1)
fld qword [esi + 0xc0]
fmul qword [eax + 0xc8]
faddp st(1)
fld qword [esi + 0x100]
fmul qword [eax + 0x108]
faddp st(1)
fld qword [esi + 0x140]
fmul qword [eax + 0x148]
faddp st(1)
fld qword [esi + 0x180]
fmul qword [eax + 0x188]
faddp st(1)
fld qword [esi + 0x1c0]
fmul qword [eax + 0x1c8]
faddp st(1)
fadd st(1)
add eax, 0x10
fxch st(2)
fstp qword [edi]
fxch st(1)
fstp qword [edi + 0x40]
add edi, 0x80
dec ecx
jne 0x5408a0
add eax, 0xffffffc0
add esi, 8
add edi, 0xfffffe08
sub ebx, reloc.DSOUND.dll_DirectSoundCreate
js 0x540898
test ebx, ebx
jne 0x540898
ffree st(0)
wait
fnstcw word [ebp - 4]
movzx eax, word [ebp - 4]
or eax, 0x400
mov word [ebp - 8], ax
fldcw word [ebp - 8]
lea esi, [ebp - 0x428]
mov edi, dword [ebp + 8]
mov ebx, 0xffffff00
mov edx, 0xff
mov ecx, 8
mov edi, edi
fld qword [esi]
fistp dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
cmovl eax, ebx
cmp eax, edx
cmovg eax, edx
fld qword [esi + 8]
fistp dword [ebp - 0x10]
mov word [edi], ax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
cmovl eax, ebx
cmp eax, edx
cmovg eax, edx
fld qword [esi + 0x10]
fistp dword [ebp - 0x20]
mov word [edi + 2], ax
mov eax, dword [ebp - 0x20]
cmp eax, ebx
cmovl eax, ebx
cmp eax, edx
cmovg eax, edx
fld qword [esi + 0x18]
fistp dword [ebp - 0x14]
mov word [edi + 4], ax
mov eax, dword [ebp - 0x14]
cmp eax, ebx
cmovl eax, ebx
cmp eax, edx
cmovg eax, edx
fld qword [esi + 0x20]
fistp dword [ebp - 0x24]
mov word [edi + 6], ax
mov eax, dword [ebp - 0x24]
cmp eax, ebx
cmovl eax, ebx
cmp eax, edx
cmovg eax, edx
fld qword [esi + 0x28]
fistp dword [ebp - 0x28]
mov word [edi + 8], ax
mov eax, dword [ebp - 0x28]
cmp eax, ebx
cmovl eax, ebx
cmp eax, edx
cmovg eax, edx
fld qword [esi + 0x30]
fistp dword [ebp - 0x18]
mov word [edi + 0xa], ax
mov eax, dword [ebp - 0x18]
cmp eax, ebx
cmovl eax, ebx
cmp eax, edx
cmovg eax, edx
fld qword [esi + 0x38]
fistp dword [ebp - 0x1c]
mov word [edi + 0xc], ax
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
cmovl eax, ebx
cmp eax, edx
cmovg eax, edx
mov word [edi + 0xe], ax
add esi, 0x40
add edi, 0x10
sub ecx, reloc.DSOUND.dll_DirectSoundCreate
js 0x5409d0
test ecx, ecx
jne 0x5409d0
fldcw word [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret