Function at 0x422470
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
push 0x1c
call fcn.004c4d96
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
push 0x18
call fcn.004c4d96
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 6
rep stosd dword es:[edi], eax
add ebx, 0xc
push ebx
push 0x28
call fcn.004c4d96
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x533784
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov word [ebx], 1
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x14]
mov word [ebx], ax
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
add ebx, 0x14
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
mov word [ebx], ax
mov ebx, dword [ebp - 8]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 8]
add ebx, 0x14
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x18]
mov ax, word [ebx]
cwde
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x30]
fmul qword [ebp - 0x30]
mov ebx, dword [ebp - 0x20]
mov ax, word [ebx]
cwde
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x38]
fmul qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fdiv qword [0x533768]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.00402744
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
add ebx, 0x18
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov word [ebx], 0
mov ebx, dword [ebp - 8]
add ebx, 0x10
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 8]
add ebx, 0x14
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x18]
mov ax, word [ebx]
cwde
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
mov ebx, dword [ebp - 0x1c]
mov ax, word [ebx]
cwde
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x2c]
fmul qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fdiv qword [0x533768]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.00402744
mov ebx, dword [ebp - 0x14]
mov word [ebx], ax
mov dword [ebp - 0x14], esp
push 0x30000
push 0
push 0x4235fa
mov eax, dword [ebp - 8]
push eax
push 0x12
call fcn.004c4d96
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push dword [ebp - 4]
push dword [ebp + 0x18]
xor eax, eax
call dword [sym.imp.WINMM.dll_waveInOpen]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4226b7
push 0x315
push 0x4081921
push 6
call fcn.004c4d9c
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42279b
push 0x80000301
push 0
push 0x80
push 1
mov ebx, 0x184
call fcn.004c9690
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp + 0x30]
mov ebx, dword [ebx]
test ebx, ebx
je 0x422757
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov ebx, dword [ebp + 0x30]
mov dword [ebx], eax
mov dword [ebp - 0x14], esp
push 0x80
mov ebx, dword [ebp + 0x30]
push dword [ebx]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WINMM.dll_waveInGetErrorTextA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x422793
push 0x3bd
push 0x4081921
push 6
call fcn.004c4d9c
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x422b88
mov dword [ebp - 0x14], esp
push dword [ebp + 0x20]
mov ebx, dword [ebp + 0x18]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WINMM.dll_waveInGetID]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4227cc
push 0x42f
push 0x4081921
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x422854
push 0x80000301
push 0
push 0x80
push 1
mov ebx, 0x184
call fcn.004c9690
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp + 0x30]
mov ebx, dword [ebx]
test ebx, ebx
je 0x422810
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov ebx, dword [ebp + 0x30]
mov dword [ebx], eax
mov dword [ebp - 0x14], esp
push 0x80
mov ebx, dword [ebp + 0x30]
push dword [ebx]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WINMM.dll_waveInGetErrorTextA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x42284c
push 0x4bd
push 0x4081921
push 6
call fcn.004c4d9c
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x422b88
mov ebx, dword [ebp + 0x18]
cmp dword [ebx], 0
jne 0x422888
mov eax, 0x533770
push eax
mov ebx, dword [ebp + 0x30]
mov ebx, dword [ebx]
test ebx, ebx
je 0x422878
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov ebx, dword [ebp + 0x30]
mov dword [ebx], eax
mov eax, 0xffffffff
jmp 0x422b88
mov dword [ebp - 0x14], esp
push 0x2e
mov eax, dword [ebp - 0x10]
push eax
push 0x2e
call fcn.004c4d96
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x20
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov ebx, dword [ebp + 0x20]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WINMM.dll_waveInGetDevCapsA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x422921
push 0x5e5
push 0x4081921
push 6
call fcn.004c4d9c
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov edi, dword [ebp - 0x1c]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.004c84e0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x422978
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x422976
imul eax, dword [edi]
jmp 0x42296b
mov ecx, eax
cmp ecx, 0x20
jle 0x422982
mov ecx, 0x20
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x20
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
call fcn.004c4d90
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x422a34
push 0x80000301
push 0
push 0x80
push 1
mov ebx, 0x184
call fcn.004c9690
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp + 0x30]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4229f0
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov ebx, dword [ebp + 0x30]
mov dword [ebx], eax
mov dword [ebp - 0x14], esp
push 0x80
mov ebx, dword [ebp + 0x30]
push dword [ebx]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WINMM.dll_waveInGetErrorTextA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x422a2c
push 0x67c
push 0x4081921
push 6
call fcn.004c4d9c
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x422b88
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
push 0xa0000101
push 0
mov ebx, dword [ebp - 0x14]
push dword [ebx]
push 1
mov ebx, 0x168
call fcn.004c8c40
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp + 0x28]
mov ebx, dword [ebx]
test ebx, ebx
je 0x422a74
push ebx
call fcn.004c4d90
add esp, 4
pop eax
mov ebx, dword [ebp + 0x28]
mov dword [ebx], eax
mov ebx, dword [0x619fc8]
mov dword [ebp - 0x14], ebx
push dword [ebp + 0x14]
call fcn.00422bb8
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [0x619fc8]
add ebx, 4
mov dword [ebp - 0x14], ebx
push getsockname
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x422ab1
mov eax, 0x532144
push eax
push 1
mov ebx, 0x194
call fcn.004c95c0
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [0x619fc8]
add ebx, 0x14
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 1
mov dword [ebp - 0x14], esp
push 0x20
push dword [0x619fc8]
mov ebx, dword [ebp + 0x18]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x422b17
push 0x859
push 0x4081921
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x14], esp
push 0x20
push dword [0x619fc8]
mov ebx, dword [ebp + 0x18]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x422b50
push 0x896
push 0x4081921
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp + 0x18]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WINMM.dll_waveInStart]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x422b7e
push 0x8ec
push 0x4081921
push 6
call fcn.004c4d9c
add esp, 0xc
mov eax, 0
jmp 0x422b88
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.004c4d90
add esp, 4
pop ebx
call fcn.004c4d90
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x30