Function at 0x14005e880
Capabilities:
Get common file path
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x988]
sub rsp, 0xa60
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14015b010]
xor rax, rsp
mov qword [rbp + 0x950], rax
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov qword [rsp + 0x50], r13
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
lea rdx, str.DebugLogFilePath
lea rcx, [rsp + 0x38]
call fcn.140004520
mov rbx, rax
lea r8, str.General
lea rdx, [rsp + 0x40]
call fcn.140005570
nop
mov r9, rbx
mov r8, rax
mov rdx, qword [0x140164318]
lea rcx, [rsp + 0x50]
call fcn.140080150
mov dword [rsp + 0x20], 1
mov rax, qword [rsp + 0x50]
lea rdi, [r13 - 1]
cmp dword [rax - 0x10], r13d
jne 0x14005ee39
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.1400c71e0
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x14005ef3b
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x58], rax
xor edx, edx
mov r8d, 0x7ce
lea rcx, [rbp + 0x180]
call fcn.1400c71e0
mov r8d, 0x3e6
lea rdx, [rbp + 0x180]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea rcx, [rbp + 0x180]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x14005e994
mov r8d, eax
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x58]
call fcn.1400048e0
mov rbx, qword [rsp + 0x58]
mov esi, dword [rbx - 0x10]
mov edx, 0x5c
mov rcx, rbx
call fcn.1400c6afc
test rax, rax
jne 0x14005e9d0
mov eax, edi
jmp 0x14005e9d6
sub rax, rbx
sar rax, 1
sub esi, eax
lea eax, [rsi - 1]
mov r14d, r13d
test eax, eax
cmovns r14d, eax
movsxd r12, dword [rbx - 0x10]
lea rsi, [rbx - 0x18]
cmp r14d, r12d
jl 0x14005ea07
mov rcx, rsi
call fcn.140006b40
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
jmp 0x14005eaa2
mov rcx, qword [rsi]
test rcx, rcx
je 0x14005ea1d
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r9, rax
test rax, rax
jne 0x14005ea2e
call fcn.140004ea0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov r9, rax
movsxd r15, r14d
mov rcx, r12
sub rcx, r15
lea r12, [rbx + rcx*2]
test r9, r9
je 0x14005ef46
test r12, r12
jne 0x14005ea52
test r14d, r14d
jne 0x14005ef51
mov rax, qword [r9]
mov r8d, 2
mov edx, r14d
mov rcx, r9
call qword [rax]
test rax, rax
je 0x14005ef5c
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
test r14d, r14d
js 0x14005ef30
cmp r14d, dword [rbx - 0xc]
jg 0x14005ef30
mov dword [rbx - 0x10], r14d
mov word [rbx + r15*2], r13w
mov r9d, r14d
mov r8, r12
mov rdx, r15
mov rcx, rbx
call fcn.140004850
mov dword [rsp + 0x20], 5
lea r14, [rbx - 0x18]
cmp r14, rsi
je 0x14005eb02
cmp dword [rsi + 0x10], 0
jl 0x14005eaf0
mov rax, qword [rsi]
cmp qword [r14], rax
jne 0x14005eaf0
mov rcx, r14
call fcn.140006b40
mov rbx, rax
mov ecx, edi
lock xadd dword [rsi + 0x10], ecx
sub ecx, 1
jg 0x14005eae5
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x58], rax
jmp 0x14005eb02
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400048e0
nop
mov eax, edi
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x14005eb1b
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str..log
lea rdx, str..exe
lea rcx, [rsp + 0x58]
call fcn.14000bb30
xor r9d, r9d
lea rdx, [rsp + 0x70]
xor ecx, ecx
cmp dword [0x140164320], ecx
je 0x14005eb9c
lea r8d, [r9 + 0x24]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetSpecialFolderPathW]
lea rcx, [rsp + 0x70]
mov rax, rdi
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14005eb60
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x14005eb8d
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x14005ef62
mov word [rsp + rax + 0x70], r13w
lea rcx, [rsp + 0x70]
call fcn.14002dee0
jmp 0x14005ec51
cmp dword [0x140164324], 0
je 0x14005ebef
mov r8d, SafeArrayCopy
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetSpecialFolderPathW]
lea rcx, [rsp + 0x70]
mov rax, rdi
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14005ebc0
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x14005ec51
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x14005ef68
mov word [rsp + rax + 0x70], r13w
jmp 0x14005ec51
mov r8d, 0x10
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetSpecialFolderPathW]
lea rcx, [rsp + 0x70]
mov rax, rdi
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x14005ec03
cmp word [rsp + rax*2 + 0x6e], 0x5c
jne 0x14005ec30
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x14005ef6e
mov word [rsp + rax + 0x70], r13w
cmp dword [0x140164328], 0
je 0x14005ec51
lea r8, str.RtkAudUService64_COMServer
lea rdx, str.RtkAudUService64
lea rcx, [rsp + 0x58]
call fcn.14000bb30
mov rbx, qword [rsp + 0x58]
mov r9, rbx
lea r8, [rsp + 0x70]
lea rdx, [0x1400e4b68]
lea rcx, [rsp + 0x50]
call fcn.140006bc0
cmp dword [0x14016432c], 0
je 0x14005ee20
lea rcx, [rbp + 0x180]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x14005ec86
mov r8d, eax
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x50]
call fcn.1400048e0
mov edx, 0x5c
mov rcx, qword [rsp + 0x50]
call fcn.1400c6afc
mov rcx, qword [rsp + 0x50]
test rax, rax
jne 0x14005ecc1
mov eax, edi
jmp 0x14005ecc7
sub rax, rcx
sar rax, 1
mov esi, r13d
test eax, eax
cmovns esi, eax
cmp esi, dword [rcx - 0x10]
jl 0x14005eceb
add rcx, 0xffffffffffffffe8
call fcn.140006b40
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x14005ed77
mov rcx, qword [rcx - 0x18]
test rcx, rcx
je 0x14005ed02
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x14005ed13
call fcn.140004ea0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
mov r14, qword [rsp + 0x50]
test rcx, rcx
je 0x14005ef74
test r14, r14
jne 0x14005ed2e
test esi, esi
jne 0x14005ef7f
mov rax, qword [rcx]
mov r8d, 2
mov edx, esi
call qword [rax]
test rax, rax
je 0x14005ef8a
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
test esi, esi
js 0x14005ef9b
cmp esi, dword [rbx - 0xc]
jg 0x14005ef9b
mov dword [rbx - 0x10], esi
movsxd rdx, esi
mov word [rbx + rdx*2], r13w
mov r9d, esi
mov r8, r14
mov rcx, rbx
call fcn.140004850
mov dword [rsp + 0x20], SafeArrayDestroy
lea rsi, [rbx - 0x18]
mov r14, qword [rsp + 0x50]
add r14, 0xffffffffffffffe8
cmp rsi, r14
je 0x14005ede2
cmp dword [r14 + 0x10], 0
jl 0x14005edd0
mov rax, qword [r14]
cmp qword [rsi], rax
jne 0x14005edd0
mov rcx, rsi
call fcn.140006b40
mov rbx, rax
mov ecx, edi
lock xadd dword [r14 + 0x10], ecx
sub ecx, 1
jg 0x14005edc5
mov rcx, qword [r14]
mov r8, qword [rcx]
mov rdx, r14
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x14005ede2
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400048e0
nop
mov eax, edi
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x14005edfa
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.RtkAudUServiceUnitTest64.log
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x14005ee04
mov r8d, eax
lea rcx, [rsp + 0x50]
call fcn.140010000
mov rbx, qword [rsp + 0x58]
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005ee39
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, 0x20
lea rdx, str.atc
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
mov qword [0x140162dc8], rax
test rax, rax
jne 0x14005eec6
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x14005ef90
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x60], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
mov r8, qword [rsp + 0x50]
lea rdx, str.CDebugLog::OpenFile__s_Err_d
lea rcx, [rsp + 0x60]
call fcn.140006bc0
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005eee4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14005eee4
mov rdx, rax
lea rcx, str._nStart_Loging_n
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
mov rcx, qword [0x140162dc8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14005ef00
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x950]
xor rcx, rsp
call fcn.1400c0920
lea r11, [rsp + 0xa60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80070057
call fcn.140004fd0
nop
mov ecx, 0x80004005
call fcn.140004fd0
nop
mov ecx, 0x80004005
call fcn.140004fd0
int3
mov ecx, 0x80070057
call fcn.140004fd0
int3
call fcn.140004840
int3
call fcn.1400c1198
int3
call fcn.1400c1198
int3
call fcn.1400c1198
int3
mov ecx, 0x80004005
call fcn.140004fd0
int3
mov ecx, 0x80070057
call fcn.140004fd0
int3
call fcn.140004840
nop
mov ecx, 0x80004005
call fcn.140004fd0
nop
mov ecx, 0x80070057
call fcn.140004fd0
int3