Function at 0x794f34
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7adcbc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x358
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov al, byte [ecx + 0x14c]
mov dl, byte [ebp + 8]
mov dword [ebp - 0x14], ecx
test al, al
je 0x7955b5
test dl, dl
je 0x7953f0
mov eax, dword [ecx]
call dword [eax + 0x14]
movzx eax, al
test eax, eax
je 0x794f98
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x14]
movzx ecx, word [edi + 0x194]
mov edx, dword [edi + 0x140]
mov eax, 1
mov word [edi + 0x118], ax
mov word [edi + 0x11a], cx
mov dword [edi + 0x11c], edx
add edx, edx
imul edx, ecx
add ecx, ecx
mov word [edi + 0x124], cx
mov dword [edi + 0x120], edx
mov ebx, 0x10
mov word [edi + 0x126], bx
mov esi, 0x12
mov word [edi + 0x128], si
xor edx, edx
push edx
push edx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, edi
mov dword [edx + 0x164], eax
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, edi
mov dword [edx + 0x15c], eax
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, edi
mov dword [edx + 0x160], eax
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, edi
lea ecx, [ebp - 0x24c]
push 0
mov dword [edx + 0x158], eax
call fcn.00736424
mov eax, edi
push 0
lea esi, [eax + 0xc8]
mov ecx, esi
push dword [ebp - 0x24c]
call fcn.00736a54
lea ecx, [ebp - 0x248]
push 0
call fcn.00736424
lea ecx, [ebp - 0x248]
push 0xf
call fcn.00736aa4
mov edx, dword [ebp - 0x248]
mov eax, edi
mov dword [ebp - 0x360], edx
push edx
lea ecx, [eax + 0xd4]
call fcn.00736a84
push 0x50000
mov eax, edi
lea ebx, [eax + 0x118]
lea edx, [eax + 0x110]
push eax
push dword [eax + 0x15c]
push ebx
push dword [eax + 0x108]
push edx
call dword [sym.imp.WINMM.dll_waveOutOpen]
mov dword [ebp - 0x18], eax
mov eax, edi
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x220], 0
test edx, edx
jne 0x79526e
xor esi, esi
mov eax, dword [ebp - 0x14]
push 0x20
push dword [eax + esi*4 + 0x12c]
push dword [eax + 0x110]
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
add esi, 1
cmp esi, 2
jl 0x7950da
mov eax, dword [ebp - 0x14]
push dword [eax + 0x110]
call dword [sym.imp.WINMM.dll_waveOutPause]
xor esi, esi
mov eax, dword [ebp - 0x14]
push 0x20
push dword [eax + esi*4 + 0x12c]
push dword [eax + 0x110]
call dword [sym.imp.WINMM.dll_waveOutWrite]
add esi, 1
cmp esi, 2
jl 0x79510b
mov eax, dword [ebp - 0x14]
push dword [eax + 0x110]
mov dword [eax + 0x150], 0
call dword [sym.imp.WINMM.dll_waveOutRestart]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10c]
cmp eax, 0xffffffff
je 0x79523d
push 0x50000
mov edx, dword [ebp - 0x14]
movzx edi, word [edx + 0x198]
mov esi, dword [edx + 0x140]
push edx
push dword [edx + 0x160]
mov ecx, 1
mov word [edx + 0x118], cx
push ebx
push eax
mov word [edx + 0x11a], di
mov dword [edx + 0x11c], esi
add esi, esi
imul esi, edi
add edi, edi
mov word [edx + 0x124], di
mov dword [edx + 0x120], esi
mov ecx, 0x10
mov word [edx + 0x126], cx
mov ecx, 0x12
mov word [edx + 0x128], cx
lea ecx, [edx + 0x114]
push ecx
call dword [sym.imp.WINMM.dll_waveInOpen]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x7954bd
xor ebx, ebx
mov eax, dword [ebp - 0x14]
push 0x20
push dword [eax + ebx*4 + 0x134]
push dword [eax + 0x114]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
add ebx, 1
cmp ebx, 2
jl 0x7951d3
mov eax, dword [ebp - 0x14]
push dword [eax + 0x114]
call dword [sym.imp.WINMM.dll_waveInStop]
xor ebx, ebx
mov eax, dword [ebp - 0x14]
push 0x20
push dword [eax + ebx*4 + 0x134]
push dword [eax + 0x114]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
add ebx, 1
cmp ebx, 2
jl 0x795204
mov eax, dword [ebp - 0x14]
push dword [eax + 0x114]
mov dword [eax + 0x154], 0
call dword [sym.imp.WINMM.dll_waveInStart]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x14d], 1
mov dword [edx + 0x19c], eax
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push dword [eax + 0x158]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
push 0x1388
push dword [eax + 0x164]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
call fcn.00736a44
mov ecx, esi
call fcn.00736a24
mov eax, edi
push dword [eax + 0x164]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
push dword [eax + 0x15c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
push dword [eax + 0x160]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
push dword [eax + 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
lea ecx, [ebp - 0x244]
xor eax, eax
push eax
mov byte [esi + 0x14d], al
call fcn.0074f600
mov edi, 0x8a60bc
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x795304
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x7952f8
lea ecx, [ebp - 0x244]
push 1
mov ebx, eax
push ebx
call fcn.007971c4
movzx edx, al
test edx, edx
je 0x795348
mov edi, dword [ebp - 0x240]
mov esi, 0x8a60bc
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x23c], ebx
mov byte [ebx + edx], 0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x234]
push 0x100
push eax
push edx
call dword [sym.imp.WINMM.dll_waveOutGetErrorTextA]
lea edi, [ebp - 0x234]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x795381
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x795375
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [edx]
sub ecx, dword [ebp - 0x23c]
mov ebx, eax
cmp ecx, ebx
ja 0x79539b
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test ebx, ebx
ja 0x79563c
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x795632
push 7
push 0
push eax
call fcn.00730a34
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
push 1
call fcn.0074f600
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov eax, 0xffffdb68
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx]
call dword [eax + 0x14]
movzx eax, al
test eax, eax
jne 0x79540e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x14]
push dword [eax + 0x110]
call dword [sym.imp.WINMM.dll_waveOutReset]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x10c]
cmp edx, 0xffffffff
je 0x795437
push dword [eax + 0x114]
call dword [sym.imp.WINMM.dll_waveInReset]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x158]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x14]
push 0x1388
push dword [eax + 0x164]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
lea ebx, [eax + 0xc8]
mov ecx, ebx
call fcn.00736a44
mov ecx, ebx
call fcn.00736a24
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x10c]
cmp edx, 0xffffffff
je 0x7956c5
xor esi, esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + esi*4 + 0x134]
mov edx, dword [eax + 0x10]
lea ebx, [esi + esi]
test dl, 1
jne 0x795698
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*2 + 0x134]
mov edx, dword [eax + 0x10]
test dl, 1
je 0x79549e
jmp 0x795698
lea ecx, [ebp - 0x134]
push 0
call fcn.0074f600
mov edi, 0x8a60e0
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x7954e5
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x7954d9
lea ecx, [ebp - 0x134]
push 1
mov ebx, eax
push ebx
call fcn.007971c4
movzx edx, al
test edx, edx
je 0x795529
mov edi, dword [ebp - 0x130]
mov esi, 0x8a60e0
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x12c], ebx
mov byte [ebx + edx], 0
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x124]
push 0x100
push eax
push edx
call dword [sym.imp.WINMM.dll_waveInGetErrorTextA]
lea edi, [ebp - 0x124]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x795562
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x795556
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [edx]
sub ecx, dword [ebp - 0x12c]
mov ebx, eax
cmp ecx, ebx
ja 0x79557c
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test ebx, ebx
ja 0x7955da
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x7955d3
push 7
push 0
push eax
call fcn.00730a34
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x14d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
push 1
call fcn.0074f600
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov eax, 0xffffdb68
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x866af0
jmp 0x79558a
mov edx, dword [ebp - 0x12c]
lea ecx, [ebp - 0x134]
push 0
add edx, ebx
mov dword [ebp - 0x18], edx
push edx
call fcn.007971c4
movzx edx, al
test edx, edx
je 0x795580
mov edi, dword [ebp - 0x130]
add edi, dword [ebp - 0x12c]
lea esi, [ebp - 0x124]
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x12c], eax
mov byte [eax + edx], 0
jmp 0x795580
mov eax, 0x866af0
jmp 0x7953b1
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x244]
push 0
add edx, ebx
mov dword [ebp - 0x18], edx
push edx
call fcn.007971c4
movzx edx, al
test edx, edx
je 0x7953a3
mov edi, dword [ebp - 0x240]
add edi, dword [ebp - 0x23c]
lea esi, [ebp - 0x234]
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x23c], eax
mov byte [eax + edx], 0
jmp 0x7953a3
push 0x20
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x114]
call dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
add esi, 1
cmp esi, 2
jl 0x795485
mov eax, dword [ebp - 0x14]
push dword [eax + 0x114]
call dword [sym.imp.WINMM.dll_waveInClose]
xor esi, esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + esi*4 + 0x12c]
mov edx, dword [eax + 0x10]
lea ebx, [esi + esi]
test dl, 1
jne 0x7956f6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*2 + 0x12c]
mov edx, dword [eax + 0x10]
test dl, 1
je 0x7956dc
push 0x20
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x110]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
add esi, 1
cmp esi, 2
jl 0x7956c7
mov eax, dword [ebp - 0x14]
push dword [eax + 0x110]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x795771
mov eax, dword [ebp - 0x14]
push dword [eax + 0x164]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x15c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x160]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x14d], 0
jmp 0x795253
lea ecx, [ebp - 0x35c]
push 0
call fcn.0074f600
mov edi, 0x8a6104
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x795799
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x79578d
lea ecx, [ebp - 0x35c]
push 1
mov ebx, eax
push ebx
call fcn.007971c4
movzx edx, al
test edx, edx
je 0x7957dd
mov edi, dword [ebp - 0x358]
mov esi, 0x8a6104
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x358]
mov dword [ebp - 0x354], ebx
mov byte [ebx + edx], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x34c]
push 0x100
push eax
push edx
call dword [sym.imp.WINMM.dll_waveOutGetErrorTextA]
lea edi, [ebp - 0x34c]
xor eax, eax
mov dh, byte [edi]
mov ecx, edi
test dh, dh
je 0x795816
add ecx, 1
add eax, 1
mov dl, byte [ecx]
test dl, dl
jne 0x79580a
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [edx]
sub ecx, dword [ebp - 0x354]
mov ebx, eax
cmp ecx, ebx
ja 0x795830
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test ebx, ebx
ja 0x79586b
mov eax, dword [ebp - 0x358]
test eax, eax
je 0x795864
push 7
push 0
push eax
call fcn.00730a34
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x35c]
push 1
call fcn.0074f600
jmp 0x795726
mov eax, 0x866af0
jmp 0x79583e
mov edx, dword [ebp - 0x354]
lea ecx, [ebp - 0x35c]
push 0
add edx, ebx
mov dword [ebp - 0x18], edx
push edx
call fcn.007971c4
movzx edx, al
test edx, edx
je 0x795834
mov edi, dword [ebp - 0x358]
add edi, dword [ebp - 0x354]
lea esi, [ebp - 0x34c]
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x358]
mov dword [ebp - 0x354], eax
mov byte [eax + edx], 0
jmp 0x795834