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

Disassembly:
push 0x10
mov eax, 0x60f7ff
call fcn.004db48b
mov ebx, edx
mov edi, ecx
test ebx, ebx
jne 0x5c276e
mov eax, 0x80004003
jmp 0x5c2b44
lea esi, [edi + 0x88]
push 0x28
mov ecx, esi
call fcn.00497937
test eax, eax
jne 0x5c278b
mov eax, 0x8007000e
jmp 0x5c2b44
mov eax, dword [esi]
lea edx, [edi + 8]
push 3
pop ecx
push dword [ebp + 0x18]
mov word [eax], cx
push dword [ebp + 0x14]
mov ecx, dword [esi]
mov ax, word [ebp + 0x10]
mov word [ecx + 2], ax
lea eax, [edi + 0x14]
push dword [esi]
lea ecx, [edi + 4]
push eax
push edx
push ecx
push 3
pop eax
mov edx, eax
mov ecx, ebx
call fcn.005c1c50
test eax, eax
js 0x5c2b44
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
mov eax, dword [edi + 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ebx, eax
mov eax, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp + 0x14], eax
test ebx, ebx
js 0x5c2b36
mov ecx, dword [edi + 4]
lea edx, [edi + 0x78]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, eax
test ebx, ebx
js 0x5c2b36
mov ecx, dword [ebp - 0x10]
call fcn.00497982
mov ecx, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x5c2866
cmp dword [esi], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
je 0x5c2835
push dword [esi]
call dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
and dword [esi], 0
test eax, eax
je 0x5c285e
movzx eax, word [eax + 0x10]
add eax, 0x12
push eax
mov dword [ebp + 0x18], eax
call ecx
mov dword [esi], eax
test eax, eax
je 0x5c285e
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push eax
call fcn.004dd610
add esp, 0xc
mov eax, dword [edi + 0x78]
mov dword [edi + 0x7c], eax
jmp 0x5c28d2
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x5c2b31
and dword [ebp + 0x10], 0
lea edx, [edi + 0x7c]
mov eax, dword [ecx]
push edx
lea edx, [ebp + 0x10]
push edx
push ecx
call dword [eax + 0x10]
mov ebx, eax
test ebx, ebx
js 0x5c2b36
mov eax, dword [esi]
xor ecx, ecx
inc ecx
movzx eax, word [eax + 0xc]
cmp ax, cx
jbe 0x5c28b1
mov ecx, dword [edi + 0x7c]
mov ebx, eax
xor edx, edx
mov eax, ecx
div ebx
test edx, edx
je 0x5c28b1
sub ecx, edx
add ecx, ebx
mov dword [edi + 0x7c], ecx
mov eax, dword [ebp + 0x10]
lea ecx, [edi + 0x78]
cmp dword [ecx], eax
cmova eax, dword [ecx]
push eax
mov dword [ecx], eax
lea eax, [edi + 0xc]
push eax
call sym.WSPlayer.exe_CreateSoundBuffer
mov ebx, eax
test ebx, ebx
js 0x5c2b36
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x5c28e8
mov eax, dword [esi]
cmp ecx, dword [eax + 4]
je 0x5c28e8
xor eax, eax
inc eax
mov dword [ebp + 0x18], eax
jmp 0x5c28ec
and dword [ebp + 0x18], 0
mov ecx, dword [esi]
call fcn.004979dd
push 0x40
pop ecx
test eax, eax
je 0x5c2909
mov eax, dword [esi]
cmp word [eax + 0xe], cx
jne 0x5c2909
xor ecx, ecx
xor eax, eax
inc ecx
jmp 0x5c290e
xor ecx, ecx
inc ecx
mov eax, ecx
mov dword [edi + 0x90], eax
test eax, eax
jne 0x5c2927
cmp dword [ebp + 0x18], eax
je 0x5c2b28
mov dword [edi + 0x90], ecx
push dword [edi + 0x7c]
lea eax, [edi + 0x10]
push eax
call sym.WSPlayer.exe_CreateSoundBuffer
mov ebx, eax
test ebx, ebx
js 0x5c2b36
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x5c298d
movzx edx, word [eax]
mov ecx, 0xfffe
cmp dx, cx
jne 0x5c2979
cmp word [eax + 0x10], 0x16
jb 0x5c2979
push 0x10
add eax, 0x18
push 0x63ce4c
push eax
call fcn.004ddf58
add esp, 0xc
neg eax
sbb ecx, ecx
mov eax, dword [esi]
inc ecx
mov dword [ebp + 0x10], eax
jmp 0x5c2982
xor ecx, ecx
cmp dx, word [ebp - 0x18]
sete cl
test ecx, ecx
je 0x5c298d
mov ecx, 0x5c1660
jmp 0x5c29a5
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
cmp word [eax + 0xe], 0x20
jne 0x5c29a0
mov ecx, 0x5c1530
jmp 0x5c29a5
xor ecx, ecx
mov dword [ebp + 0x10], eax
mov dword [edi], ecx
mov ecx, dword [edi + 0x8c]
test ecx, ecx
je 0x5c29b8
push ecx
call dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
and dword [edi + 0x8c], 0
test eax, eax
je 0x5c29e5
movzx esi, word [eax + 0x10]
add esi, 0x12
push esi
call dword [ebp - 0x14]
mov dword [edi + 0x8c], eax
test eax, eax
je 0x5c29e5
push esi
push dword [ebp + 0x10]
push eax
call fcn.004dd610
add esp, 0xc
cmp dword [ebp + 0x18], 0
mov eax, dword [edi + 0x8c]
push 3
pop ecx
push 0x40
mov word [eax], cx
mov eax, dword [edi + 0x8c]
pop ecx
mov word [eax + 0xe], cx
je 0x5c2a61
push dword [ebp + 0xc]
call dword [sym.imp.wspcomm.dll_Ordinal_102]
mov esi, eax
mov dword [edi + 0x3c], esi
pop ecx
test esi, esi
je 0x5c2a61
mov ecx, dword [edi + 0x8c]
xor eax, eax
mov edx, dword [esi]
inc eax
cmp dword [ebp + 0xc], eax
sete al
movzx eax, al
push eax
movzx eax, word [ecx + 2]
push eax
push dword [ebp + 8]
push dword [ecx + 4]
mov ecx, esi
call dword [edx + 4]
test al, al
je 0x5c2a4e
mov eax, dword [edi + 0x8c]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x5c2a61
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x5c2a5d
mov eax, dword [ecx]
xor edx, edx
inc edx
push edx
call dword [eax]
and dword [edi + 0x3c], 0
mov esi, dword [edi + 0x8c]
movzx ecx, word [esi + 2]
movzx eax, word [esi + 0xe]
imul eax, ecx
cdq
and edx, 7
add eax, edx
xor edx, edx
sar eax, 3
mov word [esi + 0xc], ax
lea esi, [edi + 0x88]
mov ecx, dword [edi + 0x8c]
movzx eax, word [ecx + 0xc]
imul eax, dword [ecx + 4]
mov dword [ecx + 8], eax
mov eax, dword [esi]
movzx ecx, word [eax + 0xe]
mov eax, dword [edi + 0x7c]
shr ecx, 3
shl eax, 3
div ecx
cmp dword [edi + 0x3c], 0
mov dword [edi + 0x80], eax
je 0x5c2b28
push eax
lea ecx, [edi + 0x28]
call fcn.00495eb7
test eax, eax
jne 0x5c2ac9
mov ebx, 0x8007000e
jmp 0x5c2b36
mov eax, dword [esi]
xor edx, edx
movd xmm1, dword [ebp + 8]
cvtdq2pd xmm1, xmm1
mov eax, dword [eax + 4]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x645b70]
mov eax, dword [edi + 0x8c]
movzx ecx, word [eax + 0xc]
mov eax, dword [edi + 0x80]
div ecx
divsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [0x6457f0]
mulsd xmm0, xmm1
addsd xmm0, xmm1
cvttsd2si eax, xmm0
imul eax, ecx
mov dword [edi + 0x80], eax
and dword [edi + 0x84], 0
jmp 0x5c2b36
mov ebx, 0x80004005
cmp dword [ebp - 0x10], 0
je 0x5c2b42
push dword [ebp - 0x10]
call dword [ebp + 0x14]
mov eax, ebx
call fcn.004db459
ret 0x14