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

Disassembly:
mov eax, 0x1474
call fcn.0050b550
push ebx
mov ebx, dword [esp + 0x1484]
push edi
mov edi, dword [esp + 0x1480]
test edi, edi
jne 0x4c784a
push ebx
push dword [esp + 0x1488]
push edi
push edi
push edi
call fcn.004c8760
add esp, 0x14
pop edi
pop ebx
add esp, 0x1474
ret
push ebp
push esi
test ebx, ebx
je 0x4c8747
push 0xbc0
push 0
push ebx
call fcn.004944c0
mov ebp, dword [esp + 0x1498]
add esp, 0xc
test ebp, ebp
je 0x4c8747
cmp dword [edi + 0x10], 0
jne 0x4c7889
pop esi
pop ebp
pop edi
mov eax, 0xfffffffd
pop ebx
add esp, 0x1474
ret
mov esi, dword [ebp]
cmp esi, 2
je 0x4c7896
cmp esi, 3
jne 0x4c78b8
mov eax, dword [ebp + 0x70]
cmp eax, 0xfe
ja 0x4c8747
push eax
push dword [ebp + 0x74]
call fcn.004d89b0
add esp, 8
test eax, eax
je 0x4c8747
cmp esi, 1
je 0x4c78c7
cmp esi, 3
je 0x4c78c7
cmp esi, 4
jne 0x4c78e9
mov eax, dword [ebp + 0x54]
cmp eax, 0xfe
ja 0x4c8747
push eax
push dword [ebp + 0x58]
call fcn.004d89b0
add esp, 8
test eax, eax
je 0x4c8747
mov dword [ebx], edi
mov eax, dword [ebp + 0x28]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x18], eax
mov esi, dword [ebp + 0x4c]
test esi, esi
je 0x4c791b
lea eax, [ebx + 0xcc]
mov ecx, 0x40
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x4c791d
xor eax, eax
mov dword [ebx + 0xc8], eax
mov esi, dword [ebp + 0x68]
test esi, esi
je 0x4c793b
lea eax, [ebx + 0x614]
mov ecx, 0x40
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x4c793d
xor eax, eax
mov dword [ebx + 0x610], eax
mov ecx, 0x3f800000
mov al, byte [ebp + 0x18]
mov byte [ebx + 0x39], al
mov al, byte [ebp + 0x19]
mov byte [ebx + 0x3a], al
mov al, byte [ebp + 0x1a]
mov byte [ebx + 0x3b], al
mov al, byte [ebp + 0x1b]
mov byte [ebx + 0x3c], al
lea eax, [ebx + 0x40]
xchg dword [eax], ecx
mov eax, dword [ebp]
lea edx, [ebx + 0x820]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 4]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebx + 0xb8], eax
mov eax, dword [ebp + 0x48]
mov dword [ebx + 0xc4], eax
mov eax, dword [ebp + 0x40]
mov dword [ebx + 0xbc], eax
mov eax, dword [ebp + 0x44]
mov dword [ebx + 0xc0], eax
mov eax, dword [ebp + 0x80]
mov dword [ebx + 0x814], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebx + 0x818], eax
mov eax, dword [ebp + 0x70]
mov dword [ebx + 0x81c], eax
mov eax, dword [ebp + 0x70]
mov dword [esp + 0x10], edx
test edx, edx
je 0x4c7a14
test eax, eax
je 0x4c7a14
mov ecx, dword [ebp + 0x74]
test ecx, ecx
je 0x4c79dc
push eax
push ecx
push edx
call fcn.004adfa0
add esp, 0xc
jmp 0x4c7a14
xor esi, esi
mov edi, 0xfe
test eax, eax
je 0x4c7a14
mov ebx, eax
nop dword [eax]
test edi, edi
je 0x4c7a0d
push esi
push ebx
push 0
call fcn.004e0070
mov ecx, dword [esp + 0x1c]
add esp, 0xc
dec edi
mov byte [esi + ecx], al
inc esi
cmp esi, ebx
jb 0x4c79f0
mov ebx, dword [esp + 0x1490]
mov eax, dword [ebp + 0x78]
lea edx, [ebx + 0x2d8]
mov dword [ebx + 0xa34], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebx + 0xa38], eax
mov eax, dword [ebp + 0x64]
mov dword [ebx + 0x2cc], eax
mov eax, dword [ebp + 0x50]
mov dword [ebx + 0x2d0], eax
mov eax, dword [ebp + 0x54]
mov dword [ebx + 0x2d4], eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x10], edx
test edx, edx
je 0x4c7a9b
test eax, eax
je 0x4c7a9b
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x4c7a6a
push eax
push ecx
push edx
call fcn.004adfa0
add esp, 0xc
jmp 0x4c7a9b
xor esi, esi
mov edi, 0xfe
test eax, eax
je 0x4c7a9b
mov ebx, eax
test edi, edi
je 0x4c7a94
push esi
push ebx
push 0
call fcn.004e0070
mov ecx, dword [esp + 0x1c]
add esp, 0xc
dec edi
mov byte [esi + ecx], al
inc esi
cmp esi, ebx
jb 0x4c7a77
mov ebx, dword [esp + 0x1490]
mov eax, dword [ebp + 0x5c]
lea edi, [ebx + 0x20]
mov dword [ebx + 0x4ec], eax
mov eax, dword [ebp + 0x60]
push edi
mov dword [ebx + 0x4f0], eax
call fcn.004c6f90
add esp, 4
test eax, eax
jne 0x4c874c
lea esi, [ebx + 0x24]
push esi
mov dword [esp + 0x1c], esi
call fcn.004c6fe0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x4c7af8
test edi, edi
je 0x4c874c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1474
ret
lea eax, [ebx + 0x28]
push eax
mov dword [esp + 0x18], eax
call fcn.004c6fe0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4c7b18
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4c7b3e
lea eax, [ebx + 0x2c]
push eax
call fcn.004c6fe0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4c7b61
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ecx, ecx
je 0x4c7b3e
push dword [ecx]
call ebx
test esi, esi
je 0x4c7b46
push dword [esi]
call ebx
test edi, edi
je 0x4c7d3d
push dword [edi]
call ebx
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1474
ret
push 0x10c
lea eax, [esp + 0x16c]
push 0
push eax
call fcn.004944c0
mov eax, dword [ebp + 0x4c]
add esp, 0xc
mov ecx, dword [ebp + 0x54]
mov dword [esp + 0x154], eax
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x158], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x15c], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x160], ecx
mov dword [esp + 0x164], eax
test ecx, ecx
je 0x4c7c0c
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x4c7bc9
push ecx
push eax
lea eax, [esp + 0x170]
push eax
call fcn.004adfa0
add esp, 0xc
jmp 0x4c7c0c
mov eax, 0xfe
xor esi, esi
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x4c7c0c
mov ebx, dword [ebp + 0x54]
nop dword [eax + eax]
test eax, eax
je 0x4c7c05
push esi
push ebx
push 0
call fcn.004e0070
mov byte [esp + esi + 0x174], al
add esp, 0xc
mov eax, dword [esp + 0x10]
inc esi
dec eax
mov dword [esp + 0x10], eax
cmp esi, ebx
jb 0x4c7be0
mov ebx, dword [esp + 0x1490]
mov eax, dword [ebp + 8]
mov ecx, 3
mov esi, dword [ebp + 0x10]
test esi, esi
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x26c], eax
mov eax, esi
cmove eax, ecx
push 0x10c
mov dword [esp + 0x274], eax
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.004944c0
mov eax, dword [ebp + 0x68]
add esp, 0xc
mov ecx, dword [ebp + 0x70]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x80]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x6c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
test ecx, ecx
je 0x4c7ccc
mov eax, dword [ebp + 0x74]
test eax, eax
je 0x4c7c8c
push ecx
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004adfa0
add esp, 0xc
jmp 0x4c7ccc
mov eax, 0xfe
xor esi, esi
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x4c7cc9
mov ebx, dword [ebp + 0x70]
nop
test eax, eax
je 0x4c7cc2
push esi
push ebx
push 0
call fcn.004e0070
mov byte [esp + esi + 0x54], al
add esp, 0xc
mov eax, dword [esp + 0x10]
inc esi
dec eax
mov dword [esp + 0x10], eax
cmp esi, ebx
jb 0x4c7ca0
mov ebx, dword [esp + 0x1490]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test esi, esi
mov dword [esp + 0x148], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14c], eax
mov eax, 3
cmove esi, eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x158]
mov dword [esp + 0x154], esi
push eax
mov eax, dword [esp + 0x1490]
push ebp
push ebx
mov eax, dword [eax + 0x10]
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x4c7d4c
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ecx, ecx
je 0x4c7d29
push dword [ecx]
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c7d35
push dword [eax]
call esi
test edi, edi
je 0x4c7d3d
push dword [edi]
call esi
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1474
ret
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x158]
push eax
push dword [ebp]
push ebx
call fcn.004c9080
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4c80f9
cmp byte [ebp + 0x1b], al
jne 0x4c7f7a
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4c7d8f
push dword [ebx + 8]
push dword [ebp + 0xc]
call fcn.004c93e0
add esp, 8
mov esi, eax
mov eax, dword [ebp]
cmp eax, 2
je 0x4c7db0
cmp eax, 3
je 0x4c7db0
cmp eax, 4
je 0x4c7db0
mov edi, dword [esp + 0x1488]
sub edi, 0xffffff80
jmp 0x4c7e95
mov dword [ebx + 0xb38], 0
mov ecx, esi
mov dword [ebx + 0xb34], esi
test esi, esi
jne 0x4c7dd2
mov ecx, dword [ebx + 0xa2c]
mov dword [ebx + 0xb34], ecx
mov eax, dword [ebx + 0x818]
mov edi, dword [esp + 0x1488]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], 4
mov eax, dword [esp + eax*4 + 0x1c]
imul eax, ecx
imul eax, dword [ebx + 0x81c]
add edi, 0x80
je 0x4c7e59
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4c7e36
push dword [edi]
push eax
call ecx
add esp, 8
jmp 0x4c7e62
mov dword [ebx + 0xb30], 0
push ebx
call fcn.004c88f0
add esp, 4
mov eax, 0xfffffffc
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1474
ret
push eax
call fcn.004fd7cb
add esp, 4
mov dword [ebx + 0xb30], eax
test eax, eax
je 0x4c7e40
push dword [ebx + 0x81c]
push dword [ebx + 0x818]
push 0
push dword [ebx + 0xb34]
push eax
call fcn.004c94c0
mov eax, dword [ebx + 0xb34]
add esp, 0x14
mov dword [ebx + 0xb38], eax
mov eax, dword [ebp]
cmp eax, 1
je 0x4c7ea6
cmp eax, 3
jne 0x4c7f7a
mov dword [ebx + 0x5f0], 0
cmp dword [ebp], 3
jne 0x4c7ebe
mov esi, dword [ebx + 0xb34]
jmp 0x4c7ece
mov dword [ebx + 0x5ec], esi
test esi, esi
jne 0x4c7ed4
mov esi, dword [ebx + 0x4e4]
mov dword [ebx + 0x5ec], esi
mov eax, dword [ebx + 0x2d0]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], 4
mov eax, dword [esp + eax*4 + 0x1c]
imul eax, esi
imul eax, dword [ebx + 0x2d4]
test edi, edi
je 0x4c7f3c
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4c7f2d
push dword [edi]
push eax
call ecx
add esp, 8
jmp 0x4c7f45
mov dword [ebx + 0x5e8], 0
jmp 0x4c7e40
push eax
call fcn.004fd7cb
add esp, 4
mov dword [ebx + 0x5e8], eax
test eax, eax
je 0x4c7e40
push dword [ebx + 0x2d4]
push dword [ebx + 0x2d0]
push 0
push dword [ebx + 0x5ec]
push eax
call fcn.004c94c0
add esp, 0x14
mov dword [ebx + 0x5f0], 0
mov ecx, dword [esp + 0x1488]
cmp dword [ecx + 0x20], 0
jne 0x4c80d4
cmp dword [ecx + 0x24], 0
jne 0x4c80d4
cmp dword [ecx + 0x28], 0
jne 0x4c80d4
cmp dword [ebp], 3
jne 0x4c80c8
mov ebp, dword [ebx + 0xa2c]
lea edi, [ebx + 0x48]
push 0
lea eax, [ebp*4]
add eax, ebp
push eax
push dword [ebx + 0x928]
push dword [ebx + 8]
call fcn.004ccab0
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x4c7fee
push ebx
lea esi, [eax - 2]
call fcn.004c88f0
add esp, 4
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1474
ret
mov eax, dword [ebx]
push edi
sub eax, 0xffffff80
push eax
push 0
push 0
push 1
push ecx
push dword [ebx + 0x81c]
push dword [ebx + 0x818]
call fcn.004c6980
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4c80f9
test edi, edi
je 0x4c80c8
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x64]
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], 4
mov esi, dword [esp + eax*4 + 0x1c]
imul esi, dword [edi + 0x68]
imul esi, ebp
lea ebp, [edi + 0x38]
add esi, esi
test ebp, ebp
je 0x4c80c8
xor edx, edx
lea ecx, [ebp + 0x10]
xor eax, eax
lock cmpxchg dword [ecx], edx
mov edx, eax
lea edi, [ebp + 0x14]
and eax, 0x7fffffff
and edx, 0x80000000
mov dword [esp + 0x18], eax
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov ecx, eax
and eax, 0x80000000
and ecx, 0x7fffffff
lea edi, [ecx + esi]
cmp edx, eax
jne 0x4c80b6
mov edx, dword [ebp + 4]
cmp edi, edx
jb 0x4c80b2
sub ecx, edx
add ecx, esi
xor eax, 0x80000000
jmp 0x4c80c1
mov ecx, edi
jmp 0x4c80c1
cmp edi, dword [esp + 0x18]
mov ecx, edi
cmova ecx, dword [esp + 0x18]
or ecx, eax
lea eax, [ebp + 0x14]
xchg dword [eax], ecx
mov ecx, 1
lea eax, [ebx + 0xc]
xchg dword [eax], ecx
jmp 0x4c8142
lea eax, [ecx + 0x80]
push eax
push ebx
push 0x4d8a10
push dword [ecx + 0x78]
lea eax, [ebx + 0x30]
push dword [ecx + 0x74]
push eax
call fcn.004cccd0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4c810f
push ebx
call fcn.004c88f0
add esp, 4
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1474
ret
lea eax, [ebx + 0x2c]
push eax
call fcn.004c7030
add esp, 4
lea ecx, [ebx + 0xc]
xor edx, edx
xor eax, eax
lock cmpxchg dword [ecx], edx
cmp eax, 1
je 0x4c8142
push 0xa3f8
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.ma_device_get_state_pDevice___ma_device_state_stopped
call fcn.005159f9
add esp, 0xc
mov eax, dword [ebx]
test eax, eax
jne 0x4c814c
xor ecx, ecx
jmp 0x4c814f
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
cmp eax, 0xe
ja 0x4c8160
mov eax, dword [eax*8 + 0xd9146c]
jmp 0x4c8165
mov eax, 0x57b288
push eax
push str.__s__n
push 3
push ecx
call fcn.004bef20
mov edi, dword [ebx + 4]
add esp, 0x10
mov esi, 0x57c2b0
mov ebp, 0x57c524
cmp edi, 2
je 0x4c8196
cmp edi, 3
je 0x4c8196
cmp edi, 4
jne 0x4c845e
xor eax, eax
mov byte [esp + 0x274], 0
cmp edi, 4
push 0x608
setne al
inc eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x878]
push 0
push eax
call fcn.004944c0
mov eax, dword [ebx]
add esp, 0xc
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x4c81df
lea eax, [esp + 0x874]
push eax
push dword [esp + 0x14]
push ebx
call ecx
add esp, 0xc
jmp 0x4c8207
lea ecx, [esp + 0x874]
push ecx
cmp edi, 4
jne 0x4c81f4
push dword [ebx + 0xc8]
jmp 0x4c81fa
push dword [ebx + 0x610]
push dword [esp + 0x18]
push eax
call fcn.004c76e0
add esp, 0x10
test eax, eax
jne 0x4c822a
push 0xffffffffffffffff
lea eax, [esp + 0x978]
push eax
lea eax, [esp + 0x27c]
push 0x100
push eax
call fcn.004cc8b0
add esp, 0x10
mov eax, dword [ebx]
test eax, eax
je 0x4c8233
mov eax, dword [eax + 0x38]
push str.Capture
lea ecx, [esp + 0x278]
push ecx
push str.___s___s__n
push 3
push eax
call fcn.004bef20
mov eax, dword [ebx]
add esp, 0x14
test eax, eax
jne 0x4c825a
xor edi, edi
jmp 0x4c825d
mov edi, dword [eax + 0x38]
push dword [ebx + 0x818]
call fcn.004c6ee0
add esp, 4
push eax
push dword [ebx + 0x920]
call fcn.004c6ee0
add esp, 4
push eax
push str.____Format:_______s_____s_n
push 3
push edi
call fcn.004bef20
mov eax, dword [ebx]
add esp, 0x14
test eax, eax
je 0x4c8294
mov eax, dword [eax + 0x38]
push dword [ebx + 0x81c]
push dword [ebx + 0x924]
push str.____Channels:_____d_____d_n
push 3
push eax
call fcn.004bef20
mov eax, dword [ebx]
add esp, 0x14
test eax, eax
je 0x4c82b9
mov eax, dword [eax + 0x38]
push dword [ebx + 8]
push dword [ebx + 0x928]
push str.____Sample_Rate:__d_____d_n
push 3
push eax
call fcn.004bef20
mov edi, dword [ebx]
add esp, 0x14
test edi, edi
je 0x4c82db
mov edi, dword [edi + 0x38]
mov edx, dword [ebx + 0xa2c]
mov eax, edx
mov ecx, dword [ebx + 0xa30]
imul eax, ecx
push eax
push ecx
push edx
push str.____Buffer_Size:__d_d___d__n
push 3
push edi
call fcn.004bef20
mov eax, dword [ebx]
add esp, 0x18
test eax, eax
je 0x4c8308
mov eax, dword [eax + 0x38]
push str.____Conversion:_n
push 3
push eax
call fcn.004bef20
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
jne 0x4c8322
xor ecx, ecx
jmp 0x4c8325
mov ecx, dword [eax + 0x38]
cmp byte [ebx + 0xb20], 0
mov eax, esi
cmove eax, ebp
push eax
push str.______Pre_Format_Conversion:___s_n
push 3
push ecx
call fcn.004bef20
mov ecx, dword [ebx]
add esp, 0x10
test ecx, ecx
je 0x4c834b
mov ecx, dword [ecx + 0x38]
cmp byte [ebx + 0xb21], 0
mov eax, esi
cmove eax, ebp
push eax
push str.______Post_Format_Conversion:__s_n
push 3
push ecx
call fcn.004bef20
mov ecx, dword [ebx]
add esp, 0x10
test ecx, ecx
je 0x4c8371
mov ecx, dword [ecx + 0x38]
cmp byte [ebx + 0xb22], 0
mov eax, esi
cmove eax, ebp
push eax
push str.______Channel_Routing:_________s_n
push 3
push ecx
call fcn.004bef20
mov ecx, dword [ebx]
add esp, 0x10
test ecx, ecx
je 0x4c8397
mov ecx, dword [ecx + 0x38]
cmp byte [ebx + 0xb23], 0
mov eax, esi
cmove eax, ebp
push eax
push str.______Resampling:______________s_n
push 3
push ecx
call fcn.004bef20
mov eax, dword [ebx]
add esp, 0x10
test eax, eax
jne 0x4c83be
xor ecx, ecx
jmp 0x4c83c1
mov ecx, dword [eax + 0x38]
cmp byte [ebx + 0xb24], 0
mov eax, esi
cmove eax, ebp
push eax
push str.______Passthrough:_____________s_n
push 3
push ecx
call fcn.004bef20
push 0x400
lea eax, [esp + 0x488]
push eax
push dword [ebx + 0x924]
lea eax, [ebx + 0x92c]
push eax
call fcn.004c5d90
mov eax, dword [ebx]
add esp, 0x20
test eax, eax
je 0x4c8406
mov eax, dword [eax + 0x38]
lea ecx, [esp + 0x474]
push ecx
push str.______Channel_Map_In:__________s_n
push 3
push eax
call fcn.004bef20
push 0x400
lea eax, [esp + 0x488]
push eax
push dword [ebx + 0x81c]
lea eax, [ebx + 0x820]
push eax
call fcn.004c5d90
mov eax, dword [ebx]
add esp, 0x20
test eax, eax
je 0x4c8446
mov eax, dword [eax + 0x38]
lea ecx, [esp + 0x474]
push ecx
push str.______Channel_Map_Out:_________s_n
push 3
push eax
call fcn.004bef20
add esp, 0x10
mov eax, dword [ebx + 4]
cmp eax, 1
je 0x4c846f
cmp eax, 3
jne 0x4c8713
push 0x608
lea eax, [esp + 0xe80]
mov byte [esp + 0x378], 0
push 0
push eax
call fcn.004944c0
mov ecx, dword [ebx]
add esp, 0xc
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x4c84a9
lea ecx, [esp + 0xe7c]
push ecx
push 1
push ebx
call eax
add esp, 0xc
jmp 0x4c84c2
lea eax, [esp + 0xe7c]
push eax
push dword [ebx + 0xc8]
push 1
push ecx
call fcn.004c76e0
add esp, 0x10
test eax, eax
jne 0x4c84e5
push 0xffffffffffffffff
lea eax, [esp + 0xf80]
push eax
lea eax, [esp + 0x37c]
push 0x100
push eax
call fcn.004cc8b0
add esp, 0x10
mov eax, dword [ebx]
test eax, eax
je 0x4c84ee
mov eax, dword [eax + 0x38]
push str.Playback
lea ecx, [esp + 0x378]
push ecx
push str.___s___s__n
push 3
push eax
call fcn.004bef20
mov eax, dword [ebx]
add esp, 0x14
test eax, eax
jne 0x4c8515
xor edi, edi
jmp 0x4c8518
mov edi, dword [eax + 0x38]
push dword [ebx + 0x3d8]
call fcn.004c6ee0
add esp, 4
push eax
push dword [ebx + 0x2d0]
call fcn.004c6ee0
add esp, 4
push eax
push str.____Format:_______s_____s_n
push 3
push edi
call fcn.004bef20
mov eax, dword [ebx]
add esp, 0x14
test eax, eax
je 0x4c854f
mov eax, dword [eax + 0x38]
push dword [ebx + 0x3dc]
push dword [ebx + 0x2d4]
push str.____Channels:_____d_____d_n
push 3
push eax
call fcn.004bef20
mov eax, dword [ebx]
add esp, 0x14
test eax, eax
je 0x4c8574
mov eax, dword [eax + 0x38]
push dword [ebx + 0x3e0]
push dword [ebx + 8]
push str.____Sample_Rate:__d_____d_n
push 3
push eax
call fcn.004bef20
mov edi, dword [ebx]
add esp, 0x14
test edi, edi
je 0x4c8596
mov edi, dword [edi + 0x38]
mov edx, dword [ebx + 0x4e4]
mov eax, edx
mov ecx, dword [ebx + 0x4e8]
imul eax, ecx
push eax
push ecx
push edx
push str.____Buffer_Size:__d_d___d__n
push 3
push edi
call fcn.004bef20
mov eax, dword [ebx]
add esp, 0x18
test eax, eax
je 0x4c85c3
mov eax, dword [eax + 0x38]
push str.____Conversion:_n
push 3
push eax
call fcn.004bef20
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
jne 0x4c85dd
xor ecx, ecx
jmp 0x4c85e0
mov ecx, dword [eax + 0x38]
cmp byte [ebx + 0x5d8], 0
mov eax, esi
cmove eax, ebp
push eax
push str.______Pre_Format_Conversion:___s_n
push 3
push ecx
call fcn.004bef20
mov ecx, dword [ebx]
add esp, 0x10
test ecx, ecx
je 0x4c8606
mov ecx, dword [ecx + 0x38]
cmp byte [ebx + 0x5d9], 0
mov eax, esi
cmove eax, ebp
push eax
push str.______Post_Format_Conversion:__s_n
push 3
push ecx
call fcn.004bef20
mov ecx, dword [ebx]
add esp, 0x10
test ecx, ecx
je 0x4c862c
mov ecx, dword [ecx + 0x38]
cmp byte [ebx + 0x5da], 0
mov eax, esi
cmove eax, ebp
push eax
push str.______Channel_Routing:_________s_n
push 3
push ecx
call fcn.004bef20
mov ecx, dword [ebx]
add esp, 0x10
test ecx, ecx
je 0x4c8652
mov ecx, dword [ecx + 0x38]
cmp byte [ebx + 0x5db], 0
mov eax, esi
cmove eax, ebp
push eax
push str.______Resampling:______________s_n
push 3
push ecx
call fcn.004bef20
mov eax, dword [ebx]
add esp, 0x10
test eax, eax
je 0x4c8678
mov eax, dword [eax + 0x38]
cmp byte [ebx + 0x5dc], 0
cmove esi, ebp
push esi
push str.______Passthrough:_____________s_n
push 3
push eax
call fcn.004bef20
push 0x400
lea eax, [esp + 0x488]
push eax
push dword [ebx + 0x2d4]
lea eax, [ebx + 0x2d8]
push eax
call fcn.004c5d90
mov eax, dword [ebx]
add esp, 0x20
test eax, eax
je 0x4c86bb
mov eax, dword [eax + 0x38]
lea ecx, [esp + 0x474]
push ecx
push str.______Channel_Map_In:__________s_n
push 3
push eax
call fcn.004bef20
push 0x400
lea eax, [esp + 0x488]
push eax
push dword [ebx + 0x3dc]
lea eax, [ebx + 0x3e4]
push eax
call fcn.004c5d90
mov eax, dword [ebx]
add esp, 0x20
test eax, eax
je 0x4c86fb
mov eax, dword [eax + 0x38]
lea ecx, [esp + 0x474]
push ecx
push str.______Channel_Map_Out:_________s_n
push 3
push eax
call fcn.004bef20
add esp, 0x10
xor edx, edx
lea ecx, [ebx + 0xc]
xor eax, eax
lock cmpxchg dword [ecx], edx
cmp eax, 1
je 0x4c873a
push 0xa440
push str.C:PureBasicSvn_v6.10LibrariesSoundMiniAudiominiaudiominiaudio.h
push str.ma_device_get_state_pDevice___ma_device_state_stopped
call fcn.005159f9
add esp, 0xc
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x1474
ret
mov eax, 0xfffffffe
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1474
ret