Function at 0x58bc60
Capabilities:
Capture microphone audio

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x620b4b
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp byte [ebx + 0x28], 0
jne 0x58bc93
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
cmp byte [ebx + 0x2a], 0
push ebp
push esi
push edi
je 0x58bd52
push 0x68
call fcn.005f7f03
add esp, 4
mov dword [esp + 0x18], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x2c], esi
je 0x58bcc1
mov ecx, eax
call fcn.0059a070
jmp 0x58bcc3
xor eax, eax
lea ecx, [ebx + 0xc]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 0xffffffff
mov dword [ebx + 0x94], eax
call fcn.00599900
test al, al
je 0x58bd36
mov ecx, dword [ebx + 0x94]
call fcn.00599980
test al, al
je 0x58bd36
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov ecx, dword [ebx + 0x94]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x30], 1
call fcn.0059a180
add ebx, 0x5c
push ebx
lea ecx, [esp + 0x14]
call fcn.0058ac50
test al, al
je 0x58bd2c
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.0058bb20
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x58bec6
mov ecx, ebx
call fcn.0058ba40
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov edx, dword [ebx]
mov edx, dword [edx + 0xcc]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
mov dword [esp + 0x30], 2
call edx
test al, al
mov eax, dword [esp + 0x20]
je 0x58bdd3
movzx ecx, word [eax + 0xc]
mov edx, dword [eax + 8]
add edx, 9
mov eax, 0xcccccccd
mul edx
shr edx, 3
lea ebp, [edx + ecx - 1]
mov eax, ebp
xor edx, edx
div ecx
lea ecx, [ebx + 0x1c0]
sub ebp, edx
lea eax, [ebp + ebp]
push eax
call fcn.00414d00
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x20]
push 0x10008
push esi
push ecx
push edx
lea eax, [ebx + 0x17c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x58bdf1
mov eax, dword [esp + 0x20]
push eax
call fcn.005f7a6f
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
mov byte [ebx + 0x2c], 1
lea esi, [ebx + 0x188]
mov ecx, dword [ebx + 0x1c0]
add ecx, dword [esp + 0x10]
xor eax, eax
lea edi, [esi - 8]
push 0x20
mov dword [edi], ecx
mov dword [esi - 4], ebp
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov edx, dword [ebx + 0x17c]
push edi
push edx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
jne 0x58be6f
mov eax, dword [ebx + 0x17c]
push 0x20
push edi
push eax
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
test eax, eax
jne 0x58be98
mov eax, dword [esp + 0x18]
add dword [esp + 0x10], ebp
add eax, 1
add esi, 0x20
cmp eax, 2
mov dword [esp + 0x18], eax
jl 0x58be03
mov eax, dword [ebx + 0x17c]
push eax
call dword [sym.imp.WINMM.dll_waveInStart]
test eax, eax
je 0x58bec1
mov ecx, ebx
call fcn.0058ba40
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005f7a6f
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, ebx
call fcn.0058ba40
mov edx, dword [esp + 0x20]
push edx
call fcn.005f7a6f
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov edx, dword [esp + 0x20]
push edx
call fcn.005f7a6f
mov ecx, dword [esp + 0x28]
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret