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

Disassembly:
sub esp, 0x16c
push ebx
mov ebx, dword [esp + 0x17c]
mov dword [esp + 8], 0
push ebp
push esi
test ebx, ebx
jne 0x4d0f23
push 0x530a
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pAudioClient_____void__0_
call fcn.005159f9
add esp, 0xc
mov ebp, dword [esp + 0x188]
test ebp, ebp
jne 0x4d0f45
push 0x530b
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pInfo_____void__0_
call fcn.005159f9
add esp, 0xc
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
push ebx
mov eax, dword [eax + 0x20]
call eax
mov esi, eax
test esi, esi
js 0x4d1397
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4d0f7b
push 0x52f7
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pWF_____void__0_
call fcn.005159f9
add esp, 0xc
test ebp, ebp
jne 0x4d0f96
push 0x52f8
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pInfo_____void__0_
call fcn.005159f9
add esp, 0xc
cmp dword [ebp + 0x204], 0x40
jae 0x4d0ff5
push esi
call fcn.004d08c0
mov ecx, dword [ebp + 0x204]
add esp, 4
add ecx, ecx
mov dword [ebp + ecx*8 + 0x208], eax
mov eax, dword [ebp + 0x204]
movzx ecx, word [esi + 2]
add eax, eax
mov dword [ebp + eax*8 + 0x20c], ecx
mov ecx, dword [ebp + 0x204]
mov eax, dword [esi + 4]
add ecx, 0x21
add ecx, ecx
mov dword [ebp + ecx*8], eax
mov eax, dword [ebp + 0x204]
add eax, eax
mov dword [ebp + eax*8 + 0x214], 0
inc dword [ebp + 0x204]
mov eax, dword [esp + 0x180]
lea edx, [esp + 0x1c]
push edx
push 0
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
js 0x4d1369
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x60]
push edi
xorps xmm0, xmm0
movups xmmword [esp + 0x64], xmm0
push edx
movq qword [esp + 0x78], xmm0
mov ecx, dword [eax]
push 0x555e7c
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
js 0x4d132e
mov eax, dword [esp + 0x70]
mov ecx, dword [ebx]
push 0
push eax
push 1
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x1c]
push ebx
call eax
test eax, eax
js 0x4d10f8
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4d107c
push 0x52f7
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.pWF_____void__0_
call fcn.005159f9
add esp, 0xc
cmp dword [ebp + 0x204], 0x40
jae 0x4d1350
push esi
call fcn.004d08c0
mov ecx, dword [ebp + 0x204]
add esp, 4
add ecx, ecx
mov dword [ebp + ecx*8 + 0x208], eax
mov eax, dword [ebp + 0x204]
movzx ecx, word [esi + 2]
add eax, eax
mov dword [ebp + eax*8 + 0x20c], ecx
mov ecx, dword [ebp + 0x204]
mov eax, dword [esi + 4]
add ecx, 0x21
add ecx, ecx
mov dword [ebp + ecx*8], eax
mov eax, dword [ebp + 0x204]
add eax, eax
mov dword [ebp + eax*8 + 0x214], 2
mov eax, dword [esp + 0x20]
inc dword [ebp + 0x204]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x16c
ret
mov eax, dword [esp + 0x14]
movzx edi, word [eax + 2]
mov dword [esp + 0x1c], edi
cmp edi, 0xfe
jbe 0x4d111f
mov edi, 0xfe
xor esi, esi
mov eax, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
jmp 0x4d1140
mov dword [esp + 0x18], edi
mov ecx, edi
test edi, edi
je 0x4d1165
xor esi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov eax, 0xfe
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x4d1165
test eax, eax
je 0x4d1165
push esi
push edi
push 0
call fcn.004e0070
mov byte [esp + esi + 0x88], al
add esp, 0xc
mov eax, dword [esp + 0x10]
inc esi
dec eax
mov dword [esp + 0x10], eax
cmp esi, edi
jb 0x4d1140
mov eax, 0xfffe
mov dword [esp + 0x18], 0
mov word [esp + 0x24], ax
lea eax, [esp + 0x7c]
push edi
push eax
mov dword [esp + 0x3a], 0x280000
mov word [esp + 0x2e], di
call fcn.004d0520
mov ecx, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov edi, dword [eax + 0xd91420]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 2
mov dword [esp + 0x58], 3
mov dword [esp + 0x5c], 4
mov dword [esp + 0x60], 4
mov si, word [esp + edi*4 + 0x4c]
shl si, 3
movzx eax, si
movzx ecx, cx
imul eax, ecx
mov word [esp + 0x32], si
mov word [esp + 0x36], si
cdq
and edx, 7
add eax, edx
sar eax, 3
movzx eax, ax
mov word [esp + 0x30], ax
imul eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
cmp edi, 5
jne 0x4d121a
movups xmm0, xmmword [0xd914f0]
jmp 0x4d1221
movups xmm0, xmmword [0xd914e0]
movups xmmword [esp + 0x3c], xmm0
xor esi, esi
nop dword [eax + eax]
mov eax, dword [esi + 0xd913e8]
lea ecx, [esp + 0x24]
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
push ecx
push 1
push ebx
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
jns 0x4d129c
add esi, 4
cmp esi, 0x38
jb 0x4d1230
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x10], eax
cmp eax, 0x14
jae 0x4d1279
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov cx, word [esp + 0x26]
jmp 0x4d11a0
mov esi, dword [esp + 0x180]
lea eax, [esp + 0x64]
push eax
mov eax, dword [esi + 0x148]
call eax
push str._WASAPI__Failed_to_find_suitable_device_format_for_device_info_retrieval.
push 2
push dword [esi + 0x38]
jmp 0x4d1348
cmp dword [ebp + 0x204], 0x40
jae 0x4d1301
lea eax, [esp + 0x24]
push eax
call fcn.004d08c0
mov ecx, dword [ebp + 0x204]
add esp, 4
add ecx, ecx
mov dword [ebp + ecx*8 + 0x208], eax
mov eax, dword [ebp + 0x204]
movzx ecx, word [esp + 0x26]
add eax, eax
mov dword [ebp + eax*8 + 0x20c], ecx
mov ecx, dword [ebp + 0x204]
mov eax, dword [esp + 0x28]
add ecx, 0x21
add ecx, ecx
mov dword [ebp + ecx*8], eax
mov eax, dword [ebp + 0x204]
add eax, eax
mov dword [ebp + eax*8 + 0x214], 2
inc dword [ebp + 0x204]
mov esi, dword [esp + 0x180]
lea eax, [esp + 0x64]
push eax
mov eax, dword [esi + 0x148]
call eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x16c
ret
mov esi, dword [esp + 0x180]
test esi, esi
jne 0x4d133d
xor eax, eax
jmp 0x4d1340
mov eax, dword [esi + 0x38]
push str._WASAPI__Failed_to_retrieve_device_format_for_device_info_retrieval.
push 2
push eax
call fcn.004bef20
add esp, 0xc
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x16c
ret
mov esi, dword [esp + 0x17c]
test esi, esi
jne 0x4d1378
xor eax, eax
jmp 0x4d137b
mov eax, dword [esi + 0x38]
push str._WASAPI__Failed_to_open_property_store_for_device_info_retrieval.
push 2
push eax
call fcn.004bef20
add esp, 0xc
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
mov eax, dword [esp + 0x17c]
test eax, eax
je 0x4d13a5
mov eax, dword [eax + 0x38]
push str._WASAPI__Failed_to_retrieve_mix_format_for_device_info_retrieval.
push 1
push eax
call fcn.004bef20
push esi
call fcn.004ccfa0
add esp, 0x10
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret