Function at 0x413f2a
Capabilities:
Create thread

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x4b98c6
call fcn.00485bb4
sub esp, 0x74
push esi
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp + 0x64], eax
test eax, eax
jns 0x413f63
push eax
push str.CoInitialize_failed:_hr__0x_08x
call fcn.00401954
pop ecx
pop ecx
mov eax, 0xfffff450
jmp 0x41436b
push ebx
push edi
lea eax, [ebp + 0x64]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp]
mov dword [ebp], 0x4bdc80
push eax
push 1
lea ecx, [ebp + 0x48]
mov dword [ebp + 4], str.__file
mov dword [ebp + 8], str.loopback_capture.wav
mov dword [ebp + 0xc], str.__int_16
mov dword [ebp + 0x64], esi
call fcn.004035ee
mov eax, dword [ebp + 0x64]
mov byte [ebp - 4], 1
test eax, eax
jns 0x413fbb
push eax
push str.CPrefs::CPrefs_constructor_failed:_hr__0x_08x
call fcn.00401954
pop ecx
pop ecx
mov esi, 0xfffff439
jmp 0x414359
cmp eax, 1
je 0x414359
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push esi
push esi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x413ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateEvent_failed:_last_error_is__u
call fcn.00401954
pop ecx
pop ecx
mov esi, 0xfffff42e
jmp 0x414359
mov dword [ebp + 0x3c], edi
push esi
push esi
push esi
push esi
mov byte [ebp - 4], 2
call ebx
mov ecx, eax
mov dword [ebp + 0x68], ecx
test ecx, ecx
jne 0x414026
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateEvent_failed:_last_error_is__u
call fcn.00401954
pop ecx
pop ecx
mov esi, 0xfffff426
jmp 0x414351
mov dword [ebp + 0x40], ecx
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x20], eax
mov al, byte [ebp + 0x50]
push esi
mov byte [ebp + 0x24], al
mov eax, dword [ebp + 0x4c]
push esi
mov dword [ebp + 0x28], eax
lea eax, [ebp + 0x20]
push eax
push 0x40218c
push esi
push esi
mov byte [ebp - 4], 3
mov dword [ebp + 0x38], 0x8000ffff
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x30], ecx
mov dword [ebp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x414085
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateThread_failed:_last_error_is__u
call fcn.00401954
pop ecx
pop ecx
mov esi, 0xfffff410
jmp 0x414349
mov dword [ebp + 0x44], ebx
push 0xffffffffffffffff
push esi
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
push 2
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jne 0x4140bd
push dword [ebp + 0x38]
push str.Thread_aborted_before_starting_to_loopback_capture:_hr__0x_08x
call fcn.00401954
mov esi, 0xfffff402
jmp 0x41433f
test eax, eax
je 0x4140d6
push eax
push str.Unexpected_WaitForMultipleObjects_return_value__u
call fcn.00401954
mov esi, 0xfffff3fd
jmp 0x41433f
push dword [ebp + 0x74]
call fcn.00413f07
mov eax, dword [0xecb198]
pop ecx
nop
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp + 0x60], ebx
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x68], eax
push 0xfffffffffffffff6
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414137
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetStdHandle_returned_INVALID_HANDLE_VALUE:_last_error_is__u
call fcn.00401954
pop ecx
pop ecx
lea ecx, [ebp + 0x68]
call fcn.00412b3c
lea ecx, [ebp + 0x60]
call fcn.00412b84
mov esi, 0xfffff3ea
jmp 0x414341
push str.Press_Enter_to_quit...
push 0x4bc8fc
call fcn.004019c6
pop ecx
pop ecx
push 0xffffffffffffffff
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push eax
push 2
mov dword [ebp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
sub ecx, esi
je 0x414181
sub ecx, 1
je 0x414170
push eax
push str.WaitForMultipleObjects_returned_unexpected_value_0x_08x
jmp 0x41418b
push str.Stopping_capture...
push 0x4bc8fc
call fcn.004019c6
jmp 0x414190
push str.The_thread_terminated_early___something_bad_happened
push 0x4bc8fc
call fcn.00401954
pop ecx
pop ecx
lea ecx, [ebp + 0x68]
call fcn.00412b3c
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 4
call fcn.00412b84
lea eax, [ebp + 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4141d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetExitCodeThread_failed:_last_error_is__u
call fcn.00401954
mov esi, 0xfffff3b0
jmp 0x41433f
cmp dword [ebp + 0x5c], 0
je 0x4141ed
push dword [ebp + 0x5c]
push str.Loopback_capture_thread_exit_code_is__u__expected_0
call fcn.00401954
mov esi, 0xfffff3ab
jmp 0x41433f
cmp dword [ebp + 0x38], 0
je 0x41420a
push dword [ebp + 0x38]
push str.Thread_HRESULT_is_0x_08x
call fcn.00401954
mov esi, 0xfffff3a6
jmp 0x41433f
cmp dword [ebp + 0x58], 0
je 0x414341
push esi
push dword [ebp + 0x4c]
call dword [sym.imp.WINMM.dll_mmioClose]
mov dword [ebp + 0x4c], esi
test eax, eax
je 0x41423a
push eax
push str.mmioClose_failed:_MMSYSERR___u
call fcn.00401954
mov esi, 0xfffff39d
jmp 0x41433f
push 0x48
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00486d50
add esp, 0xc
lea eax, [ebp - 0x7c]
push 2
push eax
push dword [ebp + 0x58]
call dword [sym.imp.WINMM.dll_mmioOpenW]
mov dword [ebp + 0x4c], eax
test eax, eax
jne 0x41427c
push dword [ebp - 0x70]
push dword [ebp + 0x58]
push str.mmioOpen___ls___...__failed._wErrorRet___u
call fcn.00401954
add esp, 0xc
mov esi, 0xfffff395
jmp 0x414341
mov edi, dword [sym.imp.WINMM.dll_mmioDescend]
lea ecx, [ebp - 0x20]
push 0x20
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0x45564157
push ecx
push eax
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
call edi
test eax, eax
je 0x4142b9
push eax
push str.mmioDescend__WAVE___failed:_MMSYSERR___u
call fcn.00401954
mov esi, 0xfffff38c
jmp 0x41433f
push 0x10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], 0x74636166
push eax
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
push dword [ebp + 0x4c]
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
call edi
test eax, eax
je 0x4142f2
push eax
push str.mmioDescend__fact___failed:_MMSYSERR___u
call fcn.00401954
mov esi, 0xfffff383
jmp 0x41433f
push 4
lea eax, [ebp + 0x34]
push eax
push dword [ebp + 0x4c]
call dword [sym.imp.WINMM.dll_mmioWrite]
cmp eax, 4
je 0x41431d
push 4
push eax
push str.Updating_the_fact_chunk_wrote__u_bytes__expected__u
call fcn.00401954
add esp, 0xc
mov esi, 0xfffff378
jmp 0x414341
push esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x4c]
call dword [sym.imp.WINMM.dll_mmioAscend]
test eax, eax
je 0x414341
push eax
push str.mmioAscend__fact___failed:_MMSYSERR___u
call fcn.00401954
mov esi, 0xfffff371
pop ecx
pop ecx
lea ecx, [ebp + 0x44]
call fcn.00401b3f
lea ecx, [ebp + 0x40]
call fcn.00401b3f
lea ecx, [ebp + 0x3c]
call fcn.00401b3f
lea ecx, [ebp + 0x48]
call fcn.00403d6c
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
add ebp, 0x6c
leave
ret