Function at 0x10012ee0
Capabilities:
Capture microphone audio
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
push ebx
push esi
mov esi, ecx
push edi
xor eax, eax
lea edi, [esi + 0x44]
mov ecx, 0x19
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
test eax, eax
mov dword [esp + 0x18], esi
je 0x10012f4d
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov eax, 1
mov word [esp + 0x3c], cx
mov word [esp + 0x2c], ax
mov word [esp + 0x2e], ax
mov word [esp + 0x38], 2
mov dword [esp + 0x30], 0x5622
mov word [esp + 0x3a], 0x10
mov dword [esp + 0x34], 0xac44
xor ebx, ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
jne 0x10012fb0
mov edx, dword [esp + 0x28]
push 0xa0000000
lea ecx, [esp + 0x74]
push ecx
push edx
call dword [sym.imp.WINMM.dll_mixerGetID]
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.WINMM.dll_waveInClose]
cmp edi, ebx
jne 0x10012fb0
mov ecx, dword [esp + 0x70]
push ebx
push ebx
push ebx
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.WINMM.dll_mixerOpen]
test eax, eax
je 0x10012fbb
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WINMM.dll_mixerClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x10]
xor eax, eax
mov ecx, 0x46
lea edi, [esp + 0x190]
rep stosd dword es:[edi], eax
push 3
lea ecx, [esp + 0x194]
push ecx
push edx
mov dword [esp + 0x19c], pe_nt_image_headers32
mov dword [esp + 0x1b4], 7
call dword [sym.imp.WINMM.dll_mixerGetLineInfoW]
test eax, eax
jne 0x10012fa5
cmp dword [esp + 0x1b0], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jbe 0x100133c2
mov edx, dword [esp + 0x20]
xor eax, eax
mov ecx, 0x46
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x194]
push 1
lea eax, [esp + 0x7c]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
xor ebx, ebx
mov dword [esp + 0x84], pe_nt_image_headers32
mov dword [esp + 0x8c], edx
call dword [sym.imp.WINMM.dll_mixerGetLineInfoW]
test eax, eax
jne 0x10013291
mov edi, dword [ebp + 8]
test edi, edi
je 0x1001308d
push edi
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x100130ce
push 0x10
lea edx, [esp + 0xa4]
push edi
push edx
call dword [sym.imp.MSVCR71.dll_wcsncmp]
add esp, 0xc
test eax, eax
jmp 0x1001309a
mov edx, dword [esp + 0x90]
cmp edx, dword [esi + 0xa8]
jne 0x100130ce
lea edx, [esi + 0x44]
xor eax, eax
mov edi, edx
mov ecx, 0x19
rep stosd dword es:[edi], eax
lea eax, [esp + 0xa0]
push 0x10
push eax
push edx
mov ebx, 1
call dword [sym.imp.MSVCR71.dll_wcsncpy]
mov ecx, dword [esp + 0x9c]
add esp, 0xc
mov dword [esp + 0x1c], ecx
cmp dword [ebp + 0xc], 0
je 0x100131f2
mov eax, dword [esp + 0x9c]
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*8]
add eax, eax
add eax, eax
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0xa0]
add esp, 4
mov esi, eax
push 0
lea eax, [esp + 0x5c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x64], 0x18
mov dword [esp + 0x6c], 0x50030001
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], 0xe4
mov dword [esp + 0x78], esi
call dword [sym.imp.WINMM.dll_mixerGetLineControlsW]
test eax, eax
jne 0x100131e0
xor edi, edi
cmp dword [esp + 0x9c], edi
jle 0x100131e0
add esi, 4
lea ecx, [ecx]
cmp dword [esi + 4], 0x20010002
jne 0x100131ca
mov edx, dword [esi]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x44], edx
lea eax, [esp + 0x74]
push SysReAllocStringLen
lea edx, [esp + 0x44]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
push edx
push eax
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 4
mov dword [esp + 0x80], ecx
call dword [sym.imp.WINMM.dll_mixerSetControlDetails]
test eax, eax
jne 0x100131ca
test ebx, ebx
je 0x100131ca
mov dword [esp + 0x14], 1
add edi, 1
add esi, 0xe4
cmp edi, dword [esp + 0x9c]
jl 0x10013160
mov esi, dword [esp + 0x24]
test esi, esi
je 0x100131ee
push esi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1b0]
add ecx, 1
cmp ecx, eax
mov dword [esp + 0x20], ecx
jb 0x10013013
cmp dword [esp + 0x1c], 0x100a
jne 0x100133c2
xor ebx, ebx
test eax, eax
jbe 0x100133c2
jmp 0x10013230
mov edx, dword [esp + 0x194]
xor eax, eax
mov ecx, 0x46
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push 1
lea eax, [esp + 0x7c]
push eax
push ecx
mov dword [esp + 0x84], pe_nt_image_headers32
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ebx
call dword [sym.imp.WINMM.dll_mixerGetLineInfoW]
test eax, eax
jne 0x100132a7
cmp dword [esp + 0x90], 0x1003
je 0x100132bd
add ebx, 1
cmp ebx, dword [esp + 0x1b0]
jb 0x10013230
jmp 0x100133c2
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WINMM.dll_mixerClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WINMM.dll_mixerClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x100133c2
mov eax, dword [esp + 0x9c]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [eax + ecx*8]
add edx, edx
add edx, edx
push edx
call dword [sym.imp.MSVCR71.dll_malloc]
mov ecx, dword [esp + 0xa0]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x84]
push 0
lea edx, [esp + 0x44]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
push edx
push eax
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x54], 0x50030001
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0xe4
mov dword [esp + 0x60], esi
call dword [sym.imp.WINMM.dll_mixerGetLineControlsW]
test eax, eax
jne 0x100133b0
xor ebx, ebx
cmp dword [esp + 0x9c], ebx
jle 0x100133b0
lea edi, [esi + 4]
cmp dword [edi + 4], 0x20010002
jne 0x1001339e
mov ecx, dword [edi]
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x24], eax
push SysReAllocStringLen
lea eax, [esp + 0x5c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x2c]
push ecx
mov dword [esp + 0x64], 0x18
mov dword [esp + 0x6c], 1
mov dword [esp + 0x74], 4
mov dword [esp + 0x78], edx
call dword [sym.imp.WINMM.dll_mixerSetControlDetails]
test eax, eax
jne 0x1001339e
mov dword [esp + 0x14], 1
add ebx, 1
add edi, 0xe4
cmp ebx, dword [esp + 0x9c]
jl 0x10013344
test esi, esi
je 0x100133be
push esi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.WINMM.dll_mixerClose]
push edx
call ebx
cmp dword [ebp + 0xc], 0
je 0x100133fd
cmp dword [esp + 0x14], 0
jne 0x100133fd
lea edi, [esi + 0x44]
push edi
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x100133fd
push edi
lea ecx, [esi + 0xac]
call fcn.10012320
mov dword [esp + 0x14], eax
push esi
push 0x10012db0
mov dword [esi + 0x17c], 0xffffffff
call fcn.10012bb0
add esp, 8
test eax, eax
je 0x1001343e
mov eax, dword [esi + 0x17c]
cmp eax, 0xffffffff
je 0x1001343e
push eax
mov ecx, esi
call fcn.100124f0
test eax, eax
jne 0x1001343e
mov eax, dword [esi + 0x14]
push eax
call ebx
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [esp + 0x14]
jne 0x1001344d
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8