Function at 0x402220
Capabilities:
Capture microphone audio

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42f3a8
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x24]
xor esi, esi
push eax
mov ecx, 0x43e1f8
mov dword [esp + 0x1c], esi
call fcn.00422ec8
mov eax, dword [0x43e29c]
mov ecx, dword [esp + 0x28]
cmp eax, esi
mov dword [0x43e1f4], ecx
mov ebx, 1
mov ebp, 0x10
jne 0x4023a8
mov ecx, 7
xor eax, eax
mov edi, 0x43e1b8
mov edx, 0x2b11
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 7
xor eax, eax
mov edi, 0x43e1d6
mov word [0x43e1b8], bx
mov word [0x43e1ba], bx
mov dword [0x43e1bc], edx
mov dword [0x43e1c0], 0x5622
mov word [0x43e1c4], 2
mov word [0x43e1c6], bp
mov word [0x43e1c8], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x80
mov word [0x43e1d6], 0x55
mov word [0x43e1d8], bx
mov dword [0x43e1da], edx
mov dword [0x43e1de], 0x3e8
mov word [0x43e1e2], bx
mov word [0x43e1e4], si
mov word [0x43e1e6], 0xc
mov byte [0x43e1e8], bl
mov byte [0x43e1ea], 2
mov byte [0x43e1f2], 0x71
mov byte [0x43e1f3], 5
mov byte [0x43e1ee], 0x34
mov byte [0x43e1f0], bl
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
push 2
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push esi
push esi
push esi
push esi
push 0x43e1d6
push 0x43e1b8
push esi
push 0x43e160
call sub.MSACM32.dll_acmStreamOpen
test eax, eax
je 0x4023a2
mov edx, dword [0x43e160]
push esi
push edx
call sub.MSACM32.dll_acmStreamClose
lea ecx, [esp + 0x24]
mov dword [0x43e160], esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00422dd3
mov eax, 0x43b16c
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov dword [0x43e29c], ebx
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
jne 0x4023db
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.00422dd3
mov eax, 0x43b158
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x30
or edi, 0xffffffff
push 0x43e200
push edi
call dword [sym.imp.WINMM.dll_waveInGetDevCapsA]
test eax, eax
je 0x402415
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.00422dd3
mov eax, 0x43b144
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov dword [0x43e280], ecx
push 0x30002
mov dword [0x43e284], ecx
push esi
mov dword [0x43e288], ecx
push 0x402590
mov dword [0x43e28c], ecx
push 0x43e280
lea edx, [eax + eax]
push edi
mov word [0x43e290], cx
push 0x43e294
mov dword [0x43e234], eax
mov dword [0x43e230], esi
mov word [0x43e280], bx
mov word [0x43e28e], bp
mov word [0x43e282], bx
mov dword [0x43e284], eax
mov dword [0x43e288], edx
mov word [0x43e28c], bx
mov word [0x43e290], si
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x4024bb
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.00422dd3
mov eax, 0x43b130
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ebx, dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov ebp, dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov esi, 0x43e270
push 0x20
call fcn.004232f3
mov edi, eax
mov ecx, 8
xor eax, eax
mov dword [esi], edi
rep stosd dword es:[edi], eax
push 0xbba
call fcn.004232f3
mov ecx, dword [esi]
add esp, 8
mov dword [ecx], eax
mov edx, dword [esi]
push 0x20
mov dword [edx + 4], 0xbb8
mov eax, dword [esi]
mov ecx, dword [0x43e294]
push eax
push ecx
call ebx
mov edx, dword [esi]
mov eax, dword [0x43e294]
push 0x20
push edx
push eax
call ebp
add esi, 4
cmp esi, 0x43e27c
jl 0x4024cc
mov ecx, dword [0x43e294]
mov dword [0x43e158], 0
push ecx
call dword [sym.imp.WINMM.dll_waveInStart]
test eax, eax
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x24]
je 0x402564
call fcn.00422dd3
mov eax, 0x43b11c
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call fcn.00422dd3
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, 0x43b108
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret