Function at 0x140002f80
Capabilities:
Get common file path

Disassembly:
mov byte [rsp + 0x20], r9b
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x348
mov rax, qword [0x140158238]
xor rax, rsp
mov qword [rsp + 0x330], rax
movzx edi, r9b
mov r12, r8
mov r15d, edx
mov r14, rcx
mov qword [rsp + 0x90], rcx
mov dword [rsp + 0x78], edx
mov qword [rsp + 0xb8], r8
cmp byte [0x14015c3e0], 0
jne 0x14000316e
mov byte [0x14015c3e0], 1
lea rdx, [rsp + 0x130]
mov ecx, 0xff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x130]
lea rbx, [section..data]
mov rcx, rbx
call fcn.140002e40
mov r8d, Ordinal_19
lea rdx, str.EqualizerAPO.log
mov rcx, rbx
call fcn.140002cc0
nop
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x88], rax
xor esi, esi
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0xe0], 7
lea rdx, str.EnableTrace
lea rcx, [rsp + 0xc8]
call fcn.140002e40
nop
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], 7
lea rdx, str.HKEY_LOCAL_MACHINESOFTWAREEqualizerAPO
lea rcx, [rsp + 0x98]
call fcn.140002e40
nop
lea r8, [rsp + 0xc8]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xf0]
call fcn.140008800
mov r8, rax
cmp qword [rax + 0x18], 8
jb 0x1400030ba
mov r8, qword [rax]
cmp qword [rax + 0x10], 5
jne 0x1400030e9
mov edx, 5
lea rcx, str.false
sub r8, rcx
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x1400030e9
add rcx, 2
sub rdx, 1
jne 0x1400030d0
xor sil, sil
jmp 0x1400030ec
mov sil, 1
mov rdx, qword [rsp + 0x108]
cmp rdx, 8
jb 0x140003137
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003132
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003132
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b2eb8
movzx eax, byte [0x14015c3e1]
mov ecx, 1
test sil, sil
cmovne eax, ecx
mov byte [0x14015c3e1], al
jmp 0x140003175
lea rbx, [section..data]
test dil, dil
je 0x140003187
cmp byte [0x14015c3e1], 0
je 0x14000331b
mov rax, qword [0x14015c3e8]
test rax, rax
jne 0x1400031c2
cmp qword [0x140155018], 8
cmovae rbx, qword [section..data]
lea r8, [0x1400c366c]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
test eax, eax
jne 0x14000331b
jmp 0x1400031c7
mov qword [rsp + 0x70], rax
cmp byte [0x14015c3e3], 0
je 0x1400031f3
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test dil, dil
mov edx, 2
jne 0x1400031ed
mov edx, 0xc
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp byte [0x14015c3e2], 0
jne 0x14000328a
lea rcx, [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [rsp + 0xc6]
movzx edx, word [rsp + 0xc4]
movzx r10d, word [rsp + 0xc2]
movzx r11d, word [rsp + 0xc0]
movzx ebx, word [rsp + 0xbe]
movzx r9d, word [rsp + 0xba]
movzx r8d, word [rsp + 0xb8]
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
lea rdx, str._04d__02d__02d__02d:_02d:_02d._03d__d__08X___S:_d_:
mov rcx, qword [rsp + 0x70]
call fcn.140003380
test dil, dil
je 0x1400032a0
lea rdx, str._TRACE_
mov rcx, qword [rsp + 0x70]
call fcn.140003380
lea rbx, [rsp + 0x3a8]
call fcn.140003370
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, qword [rsp + 0x3a0]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfwprintf]
lea rdx, [0x1400c3704]
mov rcx, qword [rsp + 0x70]
call fcn.140003380
cmp byte [0x14015c3e3], 0
je 0x1400032fe
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rcx, qword [rsp + 0x70]
cmp qword [0x14015c3e8], 0
jne 0x140003315
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14000331b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.1400b2f50
add rsp, 0x348
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret