Function at 0x4d94c3
Capabilities:
Capture microphone audio

Disassembly:
sub esp, 0x17c
push ebp
push edi
push esi
push ebx
mov esi, dword [esp + 0x190]
mov edi, dword [esp + 0x194]
cmp dword [0x4ec518], 0
jne 0x4d943c
add esp, 0xfffffff8
push 0x1000
push 0x501080
call fcn.004d7d14
mov dword [0x4ec518], 1
add esp, 0x10
cmp dword [0x4ec4f8], 0
je 0x4d944a
call fcn.004d9f28
xor ebp, ebp
mov dword [esp + 0x1c], 2
mov edx, 2
test edi, edi
je 0x4d9464
mov edx, 4
mov esi, esi
mov word [0x5247b0], 1
test edi, edi
je 0x4d947c
mov word [0x5247b2], 2
jmp 0x4d9485
mov word [0x5247b2], 1
mov dword [0x5247b4], esi
mov eax, esi
imul eax, edx
mov dword [0x5247b8], eax
mov word [0x5247bc], dx
mov eax, dword [esp + 0x1c]
shl eax, 3
mov word [0x5247be], ax
add esp, 0xfffffff8
push 0x30000
mov eax, dword [esp + 0x1a4]
push eax
push 0x4d7ff4
push 0x5247b0
push 0xffffffffffffffff
push 0x4ec4f8
call sub.WINMM.DLL_waveInOpen
add esp, 8
test eax, eax
je 0x4d9966
mov dword [esp + 0x1c], 1
mov edx, 1
test edi, edi
je 0x4d94f0
mov edx, 2
mov word [0x5247b0], 1
test edi, edi
je 0x4d9508
mov word [0x5247b2], 2
jmp 0x4d9511
mov word [0x5247b2], 1
mov dword [0x5247b4], esi
mov eax, esi
imul eax, edx
mov dword [0x5247b8], eax
mov word [0x5247bc], dx
mov eax, dword [esp + 0x1c]
shl eax, 3
mov word [0x5247be], ax
add esp, 0xfffffff8
push 0x30000
mov eax, dword [esp + 0x1a4]
push eax
push 0x4d7ff4
push 0x5247b0
push 0xffffffffffffffff
push 0x4ec4f8
call sub.WINMM.DLL_waveInOpen
add esp, 8
test eax, eax
je 0x4d9966
mov ebx, 0x2b11
cmp esi, 0x409a
jle 0x4d9585
mov ebx, 0xac44
cmp esi, 0x8133
jg 0x4d9585
mov ebx, 0x5622
inc ebp
cmp ebp, 1
jle 0x4d944c
call sub.WINMM.DLL_waveInGetNumDevs
mov ebp, eax
mov dword [esp + 0x1c], 2
xor esi, esi
cmp esi, ebp
jge 0x4d972e
and eax, 1
test ebp, ebp
jle 0x4d95b7
test eax, eax
je 0x4d9638
add esp, 0xfffffffc
push 0x30
lea eax, [esp + 0x158]
push eax
push 0
call sub.WINMM.DLL_waveInGetDevCapsA
add esp, 4
cmp ebx, 0x5622
je 0x4d9604
jg 0x4d95e5
cmp ebx, 0x2b11
je 0x4d95f4
jmp 0x4d98b8
cmp ebx, 0xac44
je 0x4d9614
jmp 0x4d98b8
mov eax, 4
test edi, edi
je 0x4d9622
mov eax, 8
jmp 0x4d9622
mov eax, 0x40
test edi, edi
je 0x4d9622
mov eax, pe_nt_image_headers32
jmp 0x4d9622
mov eax, 0x400
test edi, edi
je 0x4d9622
mov eax, 0x800
test dword [esp + 0x178], eax
jne 0x4d9726
inc esi
cmp esi, ebp
jge 0x4d972e
add esp, 0xfffffffc
push 0x30
lea eax, [esp + 0x158]
push eax
push esi
call sub.WINMM.DLL_waveInGetDevCapsA
add esp, 4
cmp ebx, 0x5622
je 0x4d9684
jg 0x4d9665
cmp ebx, 0x2b11
je 0x4d9674
jmp 0x4d98b8
cmp ebx, 0xac44
je 0x4d9694
jmp 0x4d98b8
mov eax, 4
test edi, edi
je 0x4d96a2
mov eax, 8
jmp 0x4d96a2
mov eax, 0x40
test edi, edi
je 0x4d96a2
mov eax, pe_nt_image_headers32
jmp 0x4d96a2
mov eax, 0x400
test edi, edi
je 0x4d96a2
mov eax, 0x800
test dword [esp + 0x178], eax
jne 0x4d9726
inc esi
add esp, 0xfffffffc
push 0x30
lea eax, [esp + 0x158]
push eax
push esi
call sub.WINMM.DLL_waveInGetDevCapsA
add esp, 4
cmp ebx, 0x5622
je 0x4d96f6
jg 0x4d96d9
cmp ebx, 0x2b11
je 0x4d96e6
jmp 0x4d98b8
cmp ebx, 0xac44
je 0x4d9706
jmp 0x4d98b8
mov eax, 4
test edi, edi
je 0x4d9714
mov eax, 8
jmp 0x4d9714
mov eax, 0x40
test edi, edi
je 0x4d9714
mov eax, pe_nt_image_headers32
jmp 0x4d9714
mov eax, 0x400
test edi, edi
je 0x4d9714
mov eax, 0x800
test dword [esp + 0x178], eax
jne 0x4d9726
inc esi
cmp esi, ebp
jl 0x4d9638
cmp esi, ebp
jl 0x4d98c4
mov dword [esp + 0x1c], 1
xor esi, esi
cmp esi, ebp
jge 0x4d98b8
mov eax, ebp
and eax, 1
test ebp, ebp
jle 0x4d974d
test eax, eax
je 0x4d97cc
add esp, 0xfffffffc
push 0x30
lea eax, [esp + 0x128]
push eax
push 0
call sub.WINMM.DLL_waveInGetDevCapsA
add esp, 4
cmp ebx, 0x5622
je 0x4d9798
jg 0x4d977b
cmp ebx, 0x2b11
je 0x4d9788
jmp 0x4d98b8
cmp ebx, 0xac44
je 0x4d97a8
jmp 0x4d98b8
mov eax, 1
test edi, edi
je 0x4d97b6
mov eax, 2
jmp 0x4d97b6
mov eax, 0x10
test edi, edi
je 0x4d97b6
mov eax, 0x20
jmp 0x4d97b6
mov eax, 0x100
test edi, edi
je 0x4d97b6
mov eax, 0x200
test dword [esp + 0x148], eax
jne 0x4d98b4
inc esi
cmp esi, ebp
jge 0x4d98b8
add esp, 0xfffffffc
push 0x30
lea eax, [esp + 0x128]
push eax
push esi
call sub.WINMM.DLL_waveInGetDevCapsA
add esp, 4
cmp ebx, 0x5622
je 0x4d9816
jg 0x4d97f9
cmp ebx, 0x2b11
je 0x4d9806
jmp 0x4d98b8
cmp ebx, 0xac44
je 0x4d9826
jmp 0x4d98b8
mov eax, 1
test edi, edi
je 0x4d9834
mov eax, 2
jmp 0x4d9834
mov eax, 0x10
test edi, edi
je 0x4d9834
mov eax, 0x20
jmp 0x4d9834
mov eax, 0x100
test edi, edi
je 0x4d9834
mov eax, 0x200
test dword [esp + 0x148], eax
jne 0x4d98b4
inc esi
add esp, 0xfffffffc
push 0x30
lea eax, [esp + 0x128]
push eax
push esi
call sub.WINMM.DLL_waveInGetDevCapsA
add esp, 4
cmp ebx, 0x5622
je 0x4d9884
jg 0x4d9868
cmp ebx, 0x2b11
je 0x4d9874
jmp 0x4d98b8
cmp ebx, 0xac44
je 0x4d9894
jmp 0x4d98b8
mov eax, 1
test edi, edi
je 0x4d98a2
mov eax, 2
jmp 0x4d98a2
mov eax, 0x10
test edi, edi
je 0x4d98a2
mov eax, 0x20
jmp 0x4d98a2
mov eax, 0x100
test edi, edi
je 0x4d98a2
mov eax, 0x200
test dword [esp + 0x148], eax
jne 0x4d98b4
inc esi
cmp esi, ebp
jl 0x4d97cc
cmp esi, ebp
jl 0x4d98c4
xor eax, eax
jmp 0x4d9979
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x4d98ce
add edx, edx
mov word [0x5247b0], 1
test edi, edi
je 0x4d98e6
mov word [0x5247b2], 2
jmp 0x4d98ef
mov word [0x5247b2], 1
mov dword [0x5247b4], ebx
imul ebx, edx
mov dword [0x5247b8], ebx
mov word [0x5247bc], dx
mov eax, dword [esp + 0x1c]
shl eax, 3
mov word [0x5247be], ax
add esp, 0xfffffff8
push 0x30000
mov eax, dword [esp + 0x1a4]
push eax
push 0x4d7ff4
push 0x5247b0
push esi
push 0x4ec4f8
call sub.WINMM.DLL_waveInOpen
add esp, 8
test eax, eax
je 0x4d9974
add esp, 0xfffffffc
push 0xff
lea ebx, [esp + 0x28]
push ebx
push eax
call sub.WINMM.DLL_waveInGetErrorTextA
add esp, 0xfffffffc
push ebx
push 0x4d8b94
call fcn.0041b138
xor eax, eax
add esp, 0x10
jmp 0x4d9979
call fcn.004d9378
jmp 0x4d9979
call fcn.004d9378
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x17c
ret