Function at 0x140005160
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 [0x14007d150]
xor rax, rsp
mov qword [rsp + 0x330], rax
movzx esi, r9b
mov r12, r8
mov r15d, edx
mov r14, rcx
mov qword [rsp + 0x80], rcx
mov dword [rsp + 0x78], edx
mov qword [rsp + 0x88], r8
cmp byte [0x14007fc83], 0
jne 0x14000538e
mov byte [0x14007fc83], 1
lea rdx, [rsp + 0x130]
mov ecx, 0xff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rax, [rsp + 0x130]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400051e0
lea rdx, [rsp + 0x130]
lea rdi, [0x14007d188]
mov rcx, rdi
call fcn.140004cc0
mov r8d, Ordinal_19
lea rdx, str.EqualizerAPO.log
mov rcx, rdi
call fcn.140005740
nop
lea rax, [rsp + 0x90]
mov qword [rsp + 0xb0], rax
xor ebx, ebx
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], 7
lea r8d, [rbx + 0xb]
lea rdx, str.EnableTrace
lea rcx, [rsp + 0x90]
call fcn.140004cc0
nop
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], 7
lea r8d, [rbx + 0x28]
lea rdx, str.HKEY_LOCAL_MACHINESOFTWAREEqualizerAPO
lea rcx, [rsp + 0xc8]
call fcn.140004cc0
nop
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xf0]
call fcn.140005820
mov r9, rax
mov rax, qword [rax + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x1400052c2
mov r9, qword [r9]
cmp rax, 5
jne 0x140005307
mov rdx, rax
lea rax, str.false
movzx ecx, word [r9]
mov r8d, 0x66
cmp cx, r8w
jb 0x140005307
sub r9, rax
cmp cx, r8w
ja 0x140005307
cmp rdx, 1
je 0x14000534f
dec rdx
add rax, 2
movzx ecx, word [rax + r9]
movzx r8d, word [rax]
cmp cx, r8w
jae 0x1400052e9
mov bl, 1
mov rdx, qword [rsp + 0x108]
cmp rdx, 8
jb 0x140005358
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005353
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005353
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor bl, bl
jmp 0x140005309
call fcn.140056818
movzx eax, byte [0x14007fc82]
mov ecx, 1
test bl, bl
cmovne eax, ecx
mov byte [0x14007fc82], al
jmp 0x140005395
lea rdi, [0x14007d188]
test sil, sil
je 0x1400053a7
cmp byte [0x14007fc82], 0
je 0x14000553b
mov rax, qword [0x14007fc88]
test rax, rax
jne 0x1400053e2
cmp qword [0x14007d1a0], 8
cmovae rdi, qword [0x14007d188]
lea r8, [0x140065684]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
test eax, eax
jne 0x14000553b
jmp 0x1400053e7
mov qword [rsp + 0x70], rax
cmp byte [0x14007fc80], 0
je 0x140005413
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
test sil, sil
mov edx, 2
jne 0x14000540d
mov edx, 0xc
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp byte [0x14007fc81], 0
jne 0x1400054aa
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.1400057d0
test sil, sil
je 0x1400054c0
lea rdx, str._TRACE_
mov rcx, qword [rsp + 0x70]
call fcn.1400057d0
lea rbx, [rsp + 0x3a8]
call fcn.1400057c0
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, [0x140065714]
mov rcx, qword [rsp + 0x70]
call fcn.1400057d0
cmp byte [0x14007fc80], 0
je 0x14000551e
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 [0x14007fc88], 0
jne 0x140005535
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14000553b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.140056790
add rsp, 0x348
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret