Function at 0x1400c2490
Capabilities:
Create directory
Get file attributes
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r12, r9
mov r14d, r8d
mov r15, rdx
xor r13d, r13d
mov dword [rbp - 0x29], r13d
lea rax, str.CMaxxAudioClientEx::SaveWaveData
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9d, [r13 + 3]
lea r8, [0x1404675c0]
mov edx, 0x1ead
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_sharedmaxxaudioclientex.cpp
call fcn.140039f30
mov dword [rbp + 0xf], r13d
mov qword [rbp - 1], r13
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREWaves_AudioMaxxAudioSettings
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x1400c2571
mov dword [rbp + 0x13], 4
lea rax, [rbp + 0x13]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x17]
xor r8d, r8d
lea rdx, str.EnableEnrollmentRecordings
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp - 1]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [rbp + 0xf], r13d
je 0x1400c2917
mov qword [rbp + 7], r13
lea rax, str.CMaxxAudioClientEx::GetRecordingFolderPath
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 3
lea r8, [0x1404675c0]
mov edx, 0x1fd5
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_sharedmaxxaudioclientex.cpp
call fcn.140039f30
mov qword [rbp + 7], r13
lea rbx, str.C:MADebug
mov qword [rsp + 0x20], rbx
lea r9, str.TraceToFile
lea r8, [0x140320430]
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 7]
call fcn.140056fc0
mov dword [rbp - 0x29], 1
mov rax, qword [rbp + 7]
mov rdi, 0xffffffffffffffff
cmp dword [rax - 0x10], 0
jne 0x1400c2619
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400c2600
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.14003beb0
lea r8, [0x14031b7bc]
lea rdx, [0x14032a1f8]
lea rcx, [rbp + 7]
call fcn.140066320
mov rbx, qword [rbp + 7]
lea rax, str.CMaxxAudioClientEx::CreateRecordingFolder
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 3
lea r8, [0x1404675c0]
mov edx, 0x1fe7
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_sharedmaxxaudioclientex.cpp
call fcn.140039f30
test rbx, rbx
je 0x1400c28f3
cmp r13w, word [rbx]
je 0x1400c28f3
call fcn.140039c50
mov rcx, rax
test rax, rax
je 0x1400c2978
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14004487d.0]
add rax, 0x18
mov qword [rbp - 0x19], rax
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.14003b370
test al, al
jne 0x1400c26ca
mov rax, rdi
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400c26b0
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.14003beb0
nop
mov rbx, qword [rbp - 0x19]
test rbx, rbx
je 0x1400c26e3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xfffffff
jb 0x1400c2733
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x1400c2733
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rbx
lea rax, str.CMaxxAudioClientEx::CreateRecordingFolder_failed_to_create_directory__s_____d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 3
lea r8, [0x1404675c0]
mov edx, 0x1ff1
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_sharedmaxxaudioclientex.cpp
call fcn.140039f30
xor sil, sil
test rbx, rbx
je 0x1400c274d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xfffffff
setb sil
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c276d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
test sil, sil
je 0x1400c28f3
mov rsi, qword [rbp + 7]
lea rax, str.CMaxxAudioClientEx::GetRecordingFilePath
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 3
lea r8, [0x1404675c0]
mov edx, 0x1ffd
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_sharedmaxxaudioclientex.cpp
call fcn.140039f30
mov qword [rbp - 0x21], r13
call fcn.140039c50
mov rcx, rax
test rax, rax
je 0x1400c2983
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14004487d.0]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x21], rbx
mov dword [rbp - 0x29], 3
test rsi, rsi
je 0x1400c28a2
cmp r13w, word [rsi]
je 0x1400c28a2
mov qword [rbp - 0x11], r13
call fcn.140039c50
mov rcx, rax
test rax, rax
je 0x1400c296d
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14004487d.0]
add rax, 0x18
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x29], 7
mov r8d, dword [0x1404672f0]
lea eax, [r8 + 1]
mov dword [0x1404672f0], eax
lea rdx, str.TestRecord__d.wav
lea rcx, [rbp - 0x11]
call fcn.140058ab0
mov rbx, qword [rbp - 0x11]
mov r9, rbx
mov r8, rsi
lea rdx, [0x1403280d8]
lea rcx, [rbp - 0x21]
call fcn.140058ab0
mov dword [rbp - 0x29], 3
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c2880
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
lea r8, [0x140328454]
lea rdx, [0x140338b58]
lea rcx, [rbp - 0x21]
call fcn.140066320
mov dword [rbp - 0x29], 3
mov rbx, qword [rbp - 0x21]
cmp dword [rbx - 8], 1
jle 0x1400c28b8
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 0x21]
call fcn.14003b6e0
mov rbx, qword [rbp - 0x21]
mov qword [rsp + 0x20], r12
mov r9d, r14d
mov r8, r15
mov rdx, rbx
call fcn.1400c37a0
mov dword [rbp - 0x29], 1
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400c28f3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400c2946
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
jmp 0x1400c2946
lea rax, str.CMaxxAudioClientEx::SaveWaveData__recording_is_disabled
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 3
lea r8, [0x1404675c0]
mov edx, 0x1eba
lea rcx, str.d:jenkinsworkspacemainrel4_dellconsumermainrel4_dellconsumerplatform_vista_sharedmaxxaudioclientex.cpp
call fcn.140039f30
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140202880
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140039950
nop
mov ecx, 0x80004005
call fcn.140039950
nop
mov ecx, 0x80004005
call fcn.140039950
int3