Function at 0x41c630
Capabilities:
Capture microphone audio
Create thread

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [edi]
mov edx, dword [eax + 4]
push esi
mov esi, ecx
mov ecx, edi
call edx
mov word [esp + 0xe], si
shl esi, 4
shr esi, 3
movzx edx, si
imul edx, ebx
mov eax, 1
mov word [esp + 0xc], ax
xor eax, eax
mov ecx, 0x10
mov dword [edi + 4], ebp
mov dword [esp + 0x10], ebx
mov word [esp + 0x1a], cx
mov word [esp + 0x18], si
mov dword [esp + 0x14], edx
mov word [esp + 0x1c], ax
mov dword [esp + 0x24], 6
cmp ebp, 0x7e
jne 0x41c775
push eax
push eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x12
call fcn.005971c5
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x3c], eax
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov cx, word [esp + 0x20]
add esp, 4
mov word [eax + 0x10], cx
mov dword [esp + 0x24], 1
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jle 0x41c763
lea esi, [edi + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x41c6f3
push eax
call fcn.005975b8
add esp, 4
mov eax, dword [esp + 0x28]
add eax, 0x20
push eax
call fcn.005974ee
mov edx, dword [esp + 0x2c]
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov eax, dword [esi]
mov dword [eax + 4], edx
mov eax, dword [esi]
lea edx, [eax + 0x20]
mov dword [eax], edx
mov eax, dword [esi]
mov dword [eax + 0x10], ecx
mov edx, dword [esi]
mov dword [edx + 0x14], ecx
mov eax, dword [esi]
add esp, 4
mov dword [eax + 0xc], ebx
cmp ebp, 0x7e
je 0x41c759
mov ecx, dword [esi]
mov edx, dword [edi + 0x38]
push 0x20
push ecx
push edx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
jne 0x41c830
inc ebx
add esi, 4
cmp ebx, dword [esp + 0x24]
jl 0x41c6e4
pop esi
pop ebp
mov dword [edi + 8], 0
xor eax, eax
pop ebx
add esp, 0x14
ret 8
cmp dword [edi + 0x2c], eax
jne 0x41c7b5
mov eax, dword [edi + 0x34]
lea edx, [edi + 0x30]
push edx
push 0x10000
push eax
push 0x401080
push 0x80000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x2c], eax
test eax, eax
je 0x41c7a9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
cmp dword [edi + 0x2c], eax
setne al
test eax, eax
jne 0x41c7c3
pop esi
pop ebp
mov eax, 0xffffffff
pop ebx
add esp, 0x14
ret 8
mov eax, dword [edi + 0x30]
push 0x20000
push 0
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
lea edx, [edi + 0x38]
push edx
call dword [sym.imp.WINMM.dll_waveInOpen]
mov esi, eax
test esi, esi
je 0x41c6d5
cmp dword [0x653730], 1
jg 0x41c80b
push esi
push str.Failed_to_open_record_channel._err_d
push 0x274
push str.....media_tavAudioChannel.cpp
push 1
call fcn.00401320
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41c822
or esi, 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 8
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret 8