Function at 0x4a4594
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
mov esi, dword [0x4b383c]
xor eax, eax
push ebp
push 0x4a4a6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4b3768]
cmp byte [eax], 0
jne 0x4a4a56
mov eax, dword [0x4b35dc]
cmp dword [eax + 0x58], 0x800
jb 0x4a4a56
mov eax, dword [0x4b33f8]
mov dword [eax], 0x3f800000
mov eax, dword [0x4b3624]
mov dword [eax], 0xac44
mov eax, dword [0x4b321c]
mov word [eax], 0x113a
mov eax, dword [0x4b34d8]
mov word [eax], 0x113a
mov eax, dword [0x4b358c]
mov word [eax], 0x1000
mov eax, dword [0x4b3364]
mov eax, dword [eax]
mov edx, dword [0x4b32ec]
movzx edx, word [edx]
imul edx
shr eax, 3
mov edx, dword [0x4b3164]
mov word [edx], ax
mov eax, dword [0x4b3170]
mov eax, dword [eax]
mov edx, dword [0x4b3164]
movzx edx, word [edx]
imul edx
mov edx, dword [0x4b3284]
mov dword [edx], eax
mov eax, dword [0x4b336c]
cmp byte [eax], 0
je 0x4a46de
mov eax, dword [0x4b3170]
mov eax, dword [eax]
sub eax, 0x2b11
je 0x4a46d4
sub eax, 0x2b11
je 0x4a46c8
sub eax, 0x655e
je 0x4a469d
sub eax, 0xbb80
jne 0x4a46de
mov eax, dword [0x4b3624]
mov dword [eax], 0x17700
mov eax, dword [0x4b321c]
mov word [eax], 0x2580
mov eax, dword [0x4b34d8]
mov word [eax], 0x2580
mov eax, dword [0x4b358c]
mov word [eax], 0x2000
jmp 0x4a46de
mov eax, dword [0x4b3624]
mov dword [eax], 0xbb80
mov eax, dword [0x4b321c]
mov word [eax], 0x12c0
mov eax, dword [0x4b34d8]
mov word [eax], 0x12c0
mov eax, dword [0x4b358c]
mov word [eax], 0x1000
jmp 0x4a46de
mov eax, dword [0x4b34d8]
mov word [eax], 0x89d
jmp 0x4a46de
mov eax, dword [0x4b34d8]
mov word [eax], 0x44e
mov eax, dword [0x4b3520]
cmp byte [eax], 0
je 0x4a477b
mov eax, dword [0x4b3170]
mov eax, dword [eax]
sub eax, 0x2b11
je 0x4a4771
sub eax, 0x2b11
je 0x4a4765
sub eax, 0x655e
je 0x4a473a
sub eax, 0xbb80
jne 0x4a477b
mov eax, dword [0x4b3624]
mov dword [eax], 0x17700
mov eax, dword [0x4b321c]
mov word [eax], 0x2580
mov eax, dword [0x4b34d8]
mov word [eax], 0x2580
mov eax, dword [0x4b358c]
mov word [eax], 0x2000
jmp 0x4a477b
mov eax, dword [0x4b3624]
mov dword [eax], 0xbb80
mov eax, dword [0x4b321c]
mov word [eax], 0x12c0
mov eax, dword [0x4b34d8]
mov word [eax], 0x12c0
mov eax, dword [0x4b358c]
mov word [eax], 0x1000
jmp 0x4a477b
mov eax, dword [0x4b34d8]
mov word [eax], 0x89d
jmp 0x4a477b
mov eax, dword [0x4b34d8]
mov word [eax], 0x44e
mov eax, dword [0x4b321c]
movzx eax, word [eax]
shl eax, 2
mov edx, dword [0x4b3480]
mov dword [edx], eax
mov eax, dword [0x4b3364]
mov eax, dword [eax]
add eax, eax
mov edx, dword [0x4b34d8]
movzx edx, word [edx]
imul edx
mov edx, dword [0x4b3310]
mov dword [edx], eax
mov eax, dword [0x4b336c]
cmp byte [eax], 0
je 0x4a47d9
mov eax, dword [0x4b32ec]
cmp word [eax], 8
jne 0x4a47d9
mov eax, dword [0x4b3364]
mov eax, dword [eax]
mov edx, dword [0x4b34d8]
movzx edx, word [edx]
imul edx
mov edx, dword [0x4b3310]
mov dword [edx], eax
mov eax, dword [0x4b3520]
cmp byte [eax], 0
je 0x4a4808
mov eax, dword [0x4b32ec]
cmp word [eax], 8
jne 0x4a4808
mov eax, dword [0x4b3364]
mov eax, dword [eax]
mov edx, dword [0x4b34d8]
movzx edx, word [edx]
imul edx
mov edx, dword [0x4b3310]
mov dword [edx], eax
mov eax, dword [0x4b31b8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x4b3120]
xor edx, edx
mov dword [eax], edx
mov eax, 0x12
call fcn.004026e4
mov dword [esi], eax
mov eax, 4
call fcn.004026e4
mov edx, dword [0x4b3174]
mov dword [edx], eax
mov eax, dword [0x4b3480]
mov eax, dword [eax]
shl eax, 3
lea eax, [eax + eax*4]
push eax
mov eax, dword [0x4b32a4]
mov ecx, 1
mov edx, dword [0x497248]
call fcn.004050b0
add esp, 4
mov eax, dword [esi]
mov word [eax], 1
mov eax, dword [esi]
mov word [eax + 2], 2
mov eax, dword [0x4b3624]
mov eax, dword [eax]
mov edx, dword [esi]
mov dword [edx + 4], eax
mov eax, dword [0x4b3624]
mov eax, dword [eax]
shl eax, 2
mov edx, dword [esi]
mov dword [edx + 8], eax
mov eax, dword [esi]
mov word [eax + 0xc], 4
mov eax, dword [esi]
mov word [eax + 0xe], 0x10
mov eax, dword [esi]
mov word [eax + 0x10], 0
mov eax, dword [0x4b3434]
mov dword [eax], 0x20
push 0
push 0
push 0
mov eax, dword [esi]
push eax
push 0
mov eax, dword [0x4b3174]
mov eax, dword [eax]
push eax
call sub.winmm.dll_waveInOpen
mov edx, dword [0x4b3098]
mov dword [edx], eax
mov eax, dword [0x4b3098]
cmp dword [eax], 0
jne 0x4a490a
mov eax, dword [0x4b3174]
mov eax, dword [eax]
mov eax, dword [eax]
mov edx, dword [0x4b34d4]
mov dword [edx], eax
mov eax, dword [0x4b3768]
mov byte [eax], 1
xor ebx, ebx
mov eax, ebx
call fcn.004a44fc
inc ebx
cmp ebx, 0x28
jne 0x4a48f0
mov eax, dword [0x4b34d4]
mov eax, dword [eax]
push eax
call sub.winmm.dll_waveInStart
mov eax, dword [0x4b3098]
cmp dword [eax], 0
je 0x4a4988
mov eax, dword [0x4b3414]
mov edx, 0x80
call fcn.0040471c
push 0x80
mov eax, dword [0x4b3414]
call fcn.004045e8
push eax
mov eax, dword [0x4b3098]
mov eax, dword [eax]
push eax
call sub.winmm.dll_waveInGetErrorTextA
mov eax, dword [0x4b3414]
mov eax, dword [eax]
call fcn.00404590
mov edx, eax
lea eax, [ebp - 4]
call fcn.004042c8
mov eax, dword [ebp - 4]
call fcn.0042a030
mov eax, dword [esi]
mov edx, 0x12
call fcn.00402704
mov eax, dword [0x4b3174]
mov eax, dword [eax]
mov edx, 4
call fcn.00402704
mov eax, dword [0x4b3768]
mov byte [eax], 0
jmp 0x4a4a56
mov eax, dword [0x4b36b8]
mov eax, dword [eax]
mov edx, dword [0x4b3678]
sub eax, dword [edx]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fdiv dword [0x4a4a7c]
mov eax, dword [0x4b30d8]
fstp dword [eax]
wait
mov eax, dword [0x4b3364]
cmp dword [eax], 2
jne 0x4a49dd
mov eax, dword [0x4b36ec]
mov eax, dword [eax]
mov edx, dword [0x4b369c]
sub eax, dword [edx]
sub eax, 2
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fdiv dword [0x4a4a80]
mov eax, dword [0x4b36a4]
fstp dword [eax]
wait
jmp 0x4a4a03
mov eax, dword [0x4b36ec]
mov eax, dword [eax]
mov edx, dword [0x4b369c]
sub eax, dword [edx]
sub eax, 2
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fdiv dword [0x4a4a84]
mov eax, dword [0x4b36a4]
fstp dword [eax]
wait
mov eax, dword [0x4b37b8]
mov eax, dword [eax]
mov edx, dword [0x4b3740]
sub eax, dword [edx]
mov dword [ebp - 8], eax
fild dword [ebp - 8]
mov eax, dword [0x4b321c]
movzx eax, word [eax]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fdivp st(1)
mov eax, dword [0x4b3620]
fstp dword [eax]
wait
mov eax, dword [0x4b373c]
mov eax, dword [eax]
mov edx, dword [0x4b36e8]
sub eax, dword [edx]
sub eax, 2
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fdiv dword [0x4a4a84]
mov eax, dword [0x4b350c]
fstp dword [eax]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4a73
lea eax, [ebp - 4]
call fcn.004040d0
ret