Function at 0x4c7df0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x544200
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x598c90]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x78]
xor edi, edi
mov dword [esp + 0x3c], edi
mov ecx, dword [ebx + 0x20]
lea esi, [esp + 0x3c]
call fcn.0041b330
mov dword [esp + 0x2c], eax
push ecx
mov eax, esp
mov dword [esp + 0x74], edi
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x28], esp
push str._buf
lea esi, [esp + 0x40]
mov dword [esp + 0x30], eax
call fcn.0041b330
mov dword [esp + 0x2c], eax
push ecx
mov dword [esp + 0x2c], esp
mov ebp, esp
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
mov byte [esp + 0x80], 1
mov ecx, dword [ebx + 0x1c]
push str._bits
lea esi, [esp + 0x48]
mov dword [esp + 0x34], eax
call fcn.0041b330
mov dword [esp + 0x2c], eax
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
push ecx
mov dword [esp + 0x38], esp
mov edi, esp
push str.__rate
push ecx
mov dword [esp + 0x40], esp
mov esi, esp
add ebx, 0x14
push ebx
push str.opening_dsound_in_device:
mov byte [esp + 0x9c], 2
mov dword [esp + 0x48], eax
call fcn.0041b710
call fcn.0041b850
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov esi, eax
call fcn.0041b7f0
mov eax, dword [esp + 0x38]
mov edi, eax
call fcn.0041b850
mov edi, dword [esp + 0x34]
mov esi, ebp
call fcn.0041b7f0
mov edi, dword [esp + 0x34]
call fcn.0041b850
mov edi, dword [esp + 0x30]
lea esi, [esp + 0x34]
call fcn.0041b7f0
mov ecx, eax
mov byte [esp + 0x70], 3
call fcn.0040f580
mov ecx, esi
call fcn.0041add0
lea ecx, [esp + 0x34]
call fcn.0041add0
lea ecx, [esp + 0x38]
call fcn.0041add0
lea ecx, [esp + 0x3c]
call fcn.0041add0
mov edi, dword [esp + 0x78]
xor edx, edx
lea ebp, [edi + 0x30]
mov dword [edi + 0x2c], edx
mov dword [ebp], edx
lea ebx, [edi + 0x34]
lea ecx, [esp + 0x14]
mov dword [ebx], edx
mov dword [edi], edx
mov dword [edi + 8], edx
call fcn.0041adc0
mov dword [esp + 0x70], 4
mov eax, dword [0x59f588]
mov esi, 0x80004002
cmp eax, edx
je 0x4c7f68
mov ecx, dword [edi + 0x18]
push edx
push ebp
push ecx
call eax
mov esi, eax
push 0x3e6c5
mov ecx, esi
call fcn.004c72a0
add esp, 4
test esi, esi
jne 0x4c807c
mov eax, dword [edi + 0xc]
sar eax, 2
imul eax, dword [edi + 0x20]
and eax, 0xfffffff0
lea ecx, [eax + eax*2]
mov dword [edi + 4], eax
mov eax, 2
mov word [esp + 0x42], ax
mov ax, word [edi + 0xc]
mov word [esp + 0x4e], ax
shr ax, 3
add ax, ax
mov word [esp + 0x4c], ax
movzx eax, ax
mov edx, 1
mov word [esp + 0x40], dx
mov edx, dword [edi + 0x1c]
imul eax, edx
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
and ecx, 0xfffffff0
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], edx
mov dword [edi + 8], ecx
xor edx, edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
mov eax, str.opening_dsound_in_step_2
lea ecx, [esp + 0x78]
mov word [esp + 0x50], dx
mov dword [esp + 0x54], 0x14
call fcn.0041ae90
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 5
call fcn.0040f580
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 4
call fcn.0041add0
mov eax, dword [ebp]
mov ecx, dword [eax]
push esi
push ebx
lea edx, [esp + 0x5c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
push 0x3e6df
mov ecx, esi
call fcn.004c72a0
add esp, 4
test esi, esi
jne 0x4c807c
mov ebx, dword [ebx]
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x24]
push 1
push ebx
call edx
mov esi, eax
push 0x3e6e4
mov ecx, esi
call fcn.004c72a0
add esp, 4
test esi, esi
jne 0x4c807c
mov ecx, 0x59f5c0
jmp 0x4c80a4
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call fcn.004c7080
add esp, 4
lea esi, [esp + 0x14]
call fcn.0041ae20
lea ecx, [esp + 0x78]
call fcn.0041add0
call fcn.004c7d00
mov ecx, esi
mov esi, dword [esp + 0x7c]
mov eax, esi
call fcn.0041ae00
lea ecx, [esp + 0x14]
call fcn.0041add0
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8