Function at 0x1400c7bc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
cmp qword [rcx + 0x138], 0
mov rbx, rcx
je 0x1400c7c76
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
xor eax, eax
lea rdi, [0x14017f438]
lea rdx, [0x14017f438]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rbx + 0x140]
call fcn.1400032e0
mov rcx, qword [rbx + 0x350]
mov rdi, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c7c76
mov rax, qword [rcx]
lea rdx, [rbx + 0x140]
call qword [rax + 0x70]
test eax, eax
je 0x1400c7c76
mov rax, qword [0x14018e388]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov qword [rcx], rax
mov rax, qword [0x14018e390]
lea rdx, [rsp + 0x30]
mov qword [rcx + 8], rax
mov rcx, qword [rbx + 0x140]
lea rax, [rbx + 0x31c]
lea r8d, [r9 + 0x1b]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140086640
test eax, eax
jne 0x1400c7c80
mov dword [rbx + 0x31c], 0x3e80
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
jmp 0x1400c7e70
push rbx
mov eax, 0x10040
call fcn.140166d30
sub rsp, rax
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x10020], rax
cmp qword [rcx + 0x138], 0
mov rbx, rcx
jne 0x1400c7ea5
xor eax, eax
jmp 0x1400c8057
mov rcx, qword [rcx + 0x350]
test rcx, rcx
je 0x1400c7e9e
lea rdx, [rbx + 0x170]
add rcx, 0x1c0
xor r8d, r8d
call sub.DSOUND.dll_DirectSoundCaptureCreate
test eax, eax
js 0x1400c7e9e
mov eax, dword [rbx + 0x31c]
mov qword [rsp + 0x10058], rbp
mov qword [rsp + 0x10060], rsi
mov qword [rsp + 0x10068], rdi
mov qword [rsp + 0x10038], r12
mov ebp, 1
shl eax, 2
mov qword [rsp + 0x10030], r13
mov word [rbx + 0x318], 1
mov word [rbx + 0x326], 0x10
mov word [rbx + 0x31a], 2
mov word [rbx + 0x324], 4
mov dword [rbx + 0x320], eax
lea r12, [rbx + 0x288]
lea rsi, [rbx + 0x188]
lea r13d, [rbp + 0xf]
nop
mov edi, dword [rbx + 0x320]
xor edx, edx
xor r9d, r9d
shl edi, 3
xor r8d, r8d
shr edi, 4
imul edi, ebp
add edi, 0xffffffff
mov dword [rsi], edi
movzx ecx, word [rbx + 0x324]
mov eax, dword [rbx + 0x320]
shl eax, 3
shr eax, 4
div ecx
xor ecx, ecx
sub edi, edx
xor edx, edx
mov dword [rsi], edi
call qword [sym.imp.KERNEL32.dll_CreateEventW]
add rsi, 0x10
mov qword [r12], rax
mov qword [rsi - 8], rax
add ebp, 1
add r12, 8
sub r13, 1
jne 0x1400c7f40
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rdx, [rsp + 0x20]
mov ecx, 0x7fff
mov qword [rbx + 0x308], rax
mov dword [rbx + 0x278], 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
mov r13, qword [rsp + 0x10030]
mov r12, qword [rsp + 0x10038]
mov rsi, qword [rsp + 0x10060]
mov rbp, qword [rsp + 0x10058]
je 0x1400c804f
add eax, 0xffffffff
cmp word [rsp + rax*2 + 0x20], 0x5c
je 0x1400c800e
lea r8, [0x140180dfc]
lea rcx, [rsp + 0x20]
mov edx, 0x7fff
call fcn.140146440
lea r8, str.MicCal.wav
lea rcx, [rsp + 0x20]
mov edx, 0x7fff
call fcn.140146440
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
lea rdx, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rbx + 0x338]
call fcn.1400032e0
mov eax, 1
mov rdi, qword [rsp + 0x10068]
mov rcx, qword [rsp + 0x10020]
xor rcx, rsp
call fcn.1401447b0
add rsp, 0x10040
pop rbx
ret
push rdi
sub rsp, 0x70
cmp qword [rcx + 0x170], 0
mov rdi, rcx
jne 0x1400c808b
xor eax, eax
add rsp, 0x70
pop rdi
ret
xor eax, eax
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x90], rsi
xor esi, esi
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
call fcn.1400c82d0
mov ecx, 0xc8
call fcn.1401281a0
test rax, rax
mov rbx, rax
je 0x1400c80f7
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0xc0], rsi
mov dword [rax + 0x38], esi
mov dword [rax + 0xa4], esi
jmp 0x1400c80fa
mov rbx, rsi
test rbx, rbx
mov qword [rdi + 0x310], rbx
jne 0x1400c810d
xor eax, eax
jmp 0x1400c825d
mov rcx, qword [rdi + 0x338]
xor edx, edx
mov r8d, 0x11002
mov qword [rsp + 0x88], rbp
mov dword [rbx + 0xa0], 2
mov dword [rbx + 0xa4], esi
call qword [sym.imp.WINMM.dll_mmioOpenW]
test rax, rax
mov qword [rbx + 8], rax
je 0x1400c8165
lea rbp, [rdi + 0x318]
mov rcx, rbx
mov rdx, rbp
call fcn.14010f770
test eax, eax
jns 0x1400c816c
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.WINMM.dll_mmioClose]
xor eax, eax
jmp 0x1400c8255
mov rcx, rbx
call fcn.14010f510
test eax, eax
js 0x1400c8165
mov eax, dword [rdi + 0x320]
mov rcx, qword [rdi + 0x170]
mov dword [rsp + 0x40], 0x28
shl eax, 3
mov qword [rsp + 0x50], rbp
lea r8, [rdi + 0x178]
mov dword [rsp + 0x48], eax
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x98], r12
call qword [rax + 0x18]
test eax, eax
js 0x1400c824b
lea rbx, [rdi + 0x288]
mov ebp, 0x11
nop
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400c81de
call qword [sym.imp.KERNEL32.dll_ResetEvent]
add rbx, 8
sub rbp, 1
jne 0x1400c81d0
mov rcx, qword [rdi + 0x178]
lea r8, [rdi + 0x180]
lea rdx, [0x14018e348]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x1400c824b
mov rcx, qword [rdi + 0x180]
lea r8, [rdi + 0x188]
lea edx, [rbp + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x1400c824b
lea rcx, [0x1400c8420]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 4
call fcn.140135ac4
test rax, rax
mov rbp, rax
jne 0x1400c8273
xor eax, eax
mov r12, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rbp + 0x58]
mov dword [rsp + 0x30], 2
lea r9, [rdi + 0x330]
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rdi + 0x178]
xor edx, edx
mov r8, qword [rcx]
call qword [r8 + 0x48]
test eax, eax
setns sil
mov eax, esi
jmp 0x1400c824d
push rbx
sub rsp, 0x20
add edx, 0xdefdfdf0
mov rbx, rcx
cmp edx, 0x14
ja case.0x1400c8789.553779730
lea rcx, [0x140000000]
mov edx, dword [rcx + rdx*4 + 0xc88b4]
add rdx, rcx
jmp rdx
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x1400c87aa
mov rax, qword [rcx]
call qword [rax + 0x60]
mov rcx, qword [rbx + 0xa8]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov r8d, dword [rbx + 0xc0]
mov rcx, qword [rbx - 0x68]
xor r9d, r9d
mov edx, 0x3e9
call qword [sym.imp.USER32.dll_SetTimer]
mov r11d, dword [rbx + 0xc0]
mov rcx, qword [rbx - 0x68]
lea r8d, [r11 + r11*4]
xor r9d, r9d
mov edx, 0x3ea
call qword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x1400c87fd
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rcx, qword [rbx - 0x68]
mov edx, 0x3e9
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [rbx - 0x68]
mov edx, 0x3ea
call qword [sym.imp.USER32.dll_KillTimer]
mov eax, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx - 0xa8]
add rsp, 0x20
pop rbx
jmp 0x1400c7bc0
lea rcx, [rbx - 0xa8]
call fcn.1400c82d0
mov eax, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx - 0xa8]
add rsp, 0x20
pop rbx
jmp 0x1400c8070
lea r8, str.MicCalExecuted
lea rdx, str.General
lea rcx, [0x140206e90]
xor r9d, r9d
call fcn.1401380a8
test eax, eax
jne 0x1400c889e
lea r9d, [rax + 1]
lea r8, str.MicCalExecuted
lea rdx, str.General
lea rcx, [0x140206e90]
call fcn.140138148
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret