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

Disassembly:
push 0xffffffffffffffff
push 0x544261
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x598c90]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x598c90]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xb8]
mov eax, dword [esp + 0xbc]
xor edi, edi
mov dword [esp + 0x34], edi
mov ecx, dword [ebx + 0x14]
lea esi, [esp + 0x34]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
call fcn.0041b330
mov dword [esp + 0x24], eax
push ecx
mov ecx, esp
mov dword [esp + 0xb4], edi
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx]
mov dword [esp + 0x34], esp
push str._buf
lea esi, [esp + 0x40]
call fcn.0041b330
mov dword [esp + 0x38], eax
push ecx
mov byte [esp + 0xbc], 1
mov dword [esp + 0x28], esp
mov ebp, esp
push ecx
mov ecx, dword [ebx + 0x10]
mov eax, esp
mov dword [esp + 0x2c], esp
push str._bits
lea esi, [esp + 0x50]
mov dword [esp + 0x28], eax
call fcn.0041b330
mov dword [esp + 0x30], eax
push ecx
mov eax, esp
mov byte [esp + 0xc8], 2
mov dword [esp + 0x30], esp
push ecx
mov dword [esp + 0x34], esp
mov edi, esp
push str.__rate
push ecx
mov dword [esp + 0x3c], esp
mov esi, esp
add ebx, 8
push ebx
push str.opening_dsound_out_device:
mov dword [esp + 0x44], eax
call fcn.0041b710
call fcn.0041b850
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov esi, eax
call fcn.0041b7f0
mov eax, dword [esp + 0x2c]
mov edi, eax
call fcn.0041b850
mov edi, dword [esp + 0x40]
mov esi, ebp
call fcn.0041b7f0
mov edi, dword [esp + 0x64]
call fcn.0041b850
mov edi, dword [esp + 0x28]
lea esi, [esp + 0x58]
call fcn.0041b7f0
mov ecx, eax
mov byte [esp + 0xb0], 3
call fcn.0040f580
mov ecx, esi
call fcn.0041add0
lea ecx, [esp + 0x3c]
call fcn.0041add0
lea ecx, [esp + 0x38]
call fcn.0041add0
lea ecx, [esp + 0x34]
call fcn.0041add0
mov edi, dword [esp + 0x28]
lea ebp, [edi + 0x20]
lea ebx, [edi + 0x24]
lea ecx, [esp + 0x20]
mov dword [ebp], 0
mov dword [ebx], 0
mov dword [edi + 0x28], 0
call fcn.0041adc0
mov dword [esp + 0xb0], 4
mov eax, dword [0x59f584]
mov esi, 0x80004002
test eax, eax
je 0x4c78db
mov edx, dword [edi + 0xc]
push 0
push ebp
push edx
call eax
mov esi, eax
test esi, esi
jne 0x4c78db
mov eax, dword [edi]
mov ecx, dword [ebp]
sar eax, 2
imul eax, dword [edi + 0x14]
and eax, 0xfffffff0
mov dword [edi + 0x30], eax
lea eax, [eax + eax*2]
and eax, 0xfffffff0
mov dword [edi + 0x2c], eax
mov esi, dword [ecx]
push 2
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edx, dword [ebp]
push eax
mov eax, dword [esi + 0x18]
push edx
call eax
mov esi, eax
push 0x3e58d
mov ecx, esi
call fcn.004c72a0
xor eax, eax
add esp, 4
cmp esi, eax
jne 0x4c78db
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov eax, str.opening_dsound_out_step_2
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], 0x24
mov dword [esp + 0x60], 1
call fcn.0041ae90
lea ecx, [esp + 0x14]
mov byte [esp + 0xb0], 5
call fcn.0040f580
lea ecx, [esp + 0x14]
mov byte [esp + 0xb0], 4
call fcn.0041add0
mov eax, dword [ebp]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x64]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
push 0x3e59b
mov ecx, esi
call fcn.004c72a0
add esp, 4
test esi, esi
jne 0x4c78db
mov ax, word [edi]
mov word [esp + 0x4e], ax
movzx eax, ax
add eax, eax
mov edx, 2
mov word [esp + 0x42], dx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [esp + 0x4c], ax
mov ecx, 1
mov word [esp + 0x40], cx
mov ecx, dword [edi + 0x10]
movzx eax, ax
imul eax, ecx
mov dword [esp + 0x44], ecx
xor ecx, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
mov word [esp + 0x50], cx
mov edx, dword [eax]
mov edx, dword [edx + 0x38]
lea ecx, [esp + 0x40]
push ecx
push eax
call edx
mov esi, eax
push 0x3e5a9
mov ecx, esi
call fcn.004c72a0
add esp, 4
test esi, esi
jne 0x4c78db
mov ebp, dword [ebp]
xor eax, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov eax, dword [edi + 0x2c]
push esi
mov dword [esp + 0x8c], eax
lea ecx, [esp + 0x44]
push ebx
mov dword [esp + 0x98], ecx
lea eax, [esp + 0x88]
mov dword [esp + 0x88], 0x24
mov dword [esp + 0x8c], 0x18000
mov edx, dword [ebp]
mov ecx, dword [edx + 0xc]
push eax
push ebp
call ecx
mov esi, eax
push 0x3e5b5
mov ecx, esi
call fcn.004c72a0
add esp, 4
test esi, esi
jne 0x4c78db
mov eax, str.opening_dsound_out_step_3
lea ecx, [esp + 0x14]
call fcn.0041ae90
lea ecx, [esp + 0x14]
mov byte [esp + 0xb0], 6
call fcn.0040f580
lea ecx, [esp + 0x14]
mov byte [esp + 0xb0], 4
call fcn.0041add0
mov eax, dword [ebx]
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
push esi
push esi
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [edi + 0x2c]
push ecx
push esi
push eax
call edx
mov esi, eax
push 0x3e5c0
mov ecx, esi
call fcn.004c72a0
add esp, 4
test esi, esi
jne 0x4c78db
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push esi
push ecx
call fcn.00522130
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx]
mov edx, dword [eax]
mov edx, dword [edx + 0x4c]
add esp, 0xc
push esi
push esi
push ecx
mov ecx, dword [esp + 0x28]
push ecx
push eax
call edx
mov esi, eax
test esi, esi
jne 0x4c78db
mov eax, dword [ebx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push esi
push eax
call edx
mov esi, eax
test esi, esi
jne 0x4c78db
mov ebx, dword [ebx]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x30]
push 1
push esi
push esi
push ebx
call ecx
mov esi, eax
test esi, esi
jne 0x4c78db
mov ecx, 0x59f5c0
jmp 0x4c7903
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004c7080
add esp, 4
lea esi, [esp + 0x20]
call fcn.0041ae20
lea ecx, [esp + 0x24]
call fcn.0041add0
call fcn.004c73b0
mov ecx, esi
mov esi, dword [esp + 0x2c]
mov eax, esi
call fcn.0041ae00
lea ecx, [esp + 0x20]
call fcn.0041add0
mov eax, esi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0051e437
add esp, 0xa0
ret 8