Function at 0x140004a80
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x218]
sub rsp, 0x318
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14017da30]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r13, r9
mov r12, r8
mov r15, rdx
mov r14, rcx
mov rax, qword [rbp + 0x280]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x288]
mov qword [rsp + 0x38], rax
mov rbx, qword [rbp + 0x290]
mov qword [rbp - 0x78], 7
xor esi, esi
mov qword [rbp - 0x80], rsi
mov word [rsp + 0x70], si
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
mov rdx, rcx
lea rcx, [rsp + 0x70]
call fcn.1400069a0
nop
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea r9d, [rsi + 1]
lea rcx, [rsp + 0x70]
call fcn.140006b70
cmp rax, rdi
je 0x140004bb9
lea r9, [rax + 1]
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.140005870
mov rsi, rax
lea rax, [rsp + 0x50]
cmp rax, rsi
je 0x140004b8b
cmp qword [rsp + 0x68], 8
jb 0x140004b69
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x68], 7
xor eax, eax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x50], ax
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140006900
cmp qword [rbp - 0x58], 8
jb 0x140004b9c
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x58], 7
xor esi, esi
mov qword [rbp - 0x60], rsi
mov word [rbp - 0x70], si
cmp qword [rsp + 0x60], rsi
jne 0x140004d04
mov eax, dword [0x140195fc0]
test al, 1
jne 0x140004be2
or eax, 1
mov dword [0x140195fc0], eax
lea rcx, [0x14013d410]
call fcn.1406a99b2
nop
mov qword [0x140195fb0], rax
jmp 0x140004be9
mov rax, qword [0x140195fb0]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x801c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
je 0x140004c15
xor bl, bl
jmp 0x140004df0
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rsi
mov word [rbp - 0x70], si
cmp word [rbp - 0x10], 0
jne 0x140004c31
mov rdi, rsi
jmp 0x140004c3f
lea rax, [rbp - 0x10]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140004c35
mov r8, rdi
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x70]
call fcn.140007670
nop
lea r8, [0x14013d40c]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x30]
call fcn.1400082a0
nop
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400082f0
mov rdi, rax
lea rax, [rsp + 0x70]
cmp rax, rdi
je 0x140004cb1
cmp qword [rbp - 0x78], 8
jb 0x140004c93
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rsi
mov word [rsp + 0x70], si
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140006900
cmp qword [rbp - 0x38], 8
jb 0x140004cc2
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rsi
mov word [rbp - 0x50], si
cmp qword [rbp - 0x18], 8
jb 0x140004ce3
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
cmp qword [rbp - 0x58], 8
jb 0x140004d04
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
test rbx, rbx
jne 0x140004d73
lea ecx, [rbx + 0x18]
call qword [sym.imp.MSVCR120.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rbx, rax
test rax, rax
je 0x140004d3b
lea rax, vtable.Logger::AppLogOption.0
mov qword [rbx], rax
mov byte [rbx + 8], 0
mov qword [rbx + 0xc], 0x100000
mov eax, 0xffff
mov word [rbx + 0x14], ax
jmp 0x140004d3e
mov rbx, rsi
mov rax, qword [rbx]
mov edx, 0x1d
mov rcx, rbx
call qword [rax + gethostname]
mov rax, qword [rbx]
mov edx, 0x100000
mov rcx, rbx
call qword [rax + 0x18]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + 0x28]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, 0x40
call qword [sym.imp.MSVCR120.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140004db2
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9, r13
mov r8, r12
mov rdx, r15
mov rcx, rax
call fcn.140004980
mov rcx, rax
jmp 0x140004db5
mov rcx, rsi
mov rdx, qword [0x140191828]
mov qword [0x140191828], rcx
test rdx, rdx
je 0x140004ddf
lea rcx, vtable.Logger::AppLogger::Deleter.0
mov rax, qword [vtable.Logger::AppLogger::Deleter.0]
call qword [rax]
mov rcx, qword [0x140191828]
mov rax, qword [rcx]
mov r8, rbx
lea rdx, [rsp + 0x70]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx ebx, al
cmp qword [rsp + 0x68], 8
jb 0x140004e03
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
cmp qword [rbp - 0x78], 8
jb 0x140004e28
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
movzx eax, bl
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14010a480
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret