Function at 0x140001910
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x250
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov bpl, 1
cmp qword [0x1400b0ea0], 0
jne 0x140001cc3
mov rdi, qword [0x1400b0e80]
test rdi, rdi
je 0x14000195e
test byte [0x1400af078], 1
jne 0x140001ae4
jmp 0x140001cc3
mov ecx, 0x20
call fcn.140065764
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140067c70
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rdi], 0
movaps xmm0, xmmword [0x140092950]
movups xmmword [rdi + 8], xmm0
mov qword [rdi + 0x18], 7
mov word [rdi], 0
mov rcx, rbx
call fcn.14006f73c
mov rbx, rax
cmp rax, 7
jbe 0x1400019d3
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
call fcn.140003a20
jmp 0x1400019f0
mov qword [rdi + 0x10], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400675c0
mov word [rdi + rbx*2], 0
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov rdx, rdi
cmp rcx, 7
jbe 0x140001a04
mov rdx, qword [rdi]
test rax, rax
je 0x140001a21
mov rbx, rax
add rbx, 0xffffffffffffffff
cmovae rbx, rax
cmp word [rdx + rbx*2], 0x5c
jne 0x140001a25
lea rsi, [rdx + rbx*2]
jmp 0x140001a47
xor eax, eax
jmp 0x140001a73
add rbx, rbx
nop dword [rax + rax]
test rbx, rbx
je 0x140001a73
lea rsi, [rbx - 2]
cmp word [rdx + rbx - 2], 0x5c
mov rbx, rsi
jne 0x140001a30
add rsi, rdx
sub rsi, rdx
cmp rsi, 0xfffffffffffffffe
je 0x140001a73
sar rsi, 1
lea rcx, [rsi + 1]
cmp rax, rcx
jb 0x140001ce3
mov qword [rdi + 0x10], rcx
mov word [rdx + rsi*2 + 2], 0
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov rdx, rcx
sub rdx, rax
cmp rdx, 9
jae 0x140001a9e
mov qword [rsp + 0x20], 9
lea r9, str.debug.log
mov edx, 9
mov rcx, rdi
call fcn.140003be0
jmp 0x140001ad0
lea rdx, [rax + 9]
mov qword [rdi + 0x10], rdx
mov rdx, rdi
cmp rcx, 7
jbe 0x140001ab2
mov rdx, qword [rdi]
movzx ecx, word [0x140092a0e]
mov word [rdx + rax*2 + 0x10], cx
movups xmm0, xmmword [str.debug.log]
movups xmmword [rdx + rax*2], xmm0
mov word [rdx + rax*2 + 0x12], 0
mov qword [0x1400b0e80], rdi
test byte [0x1400af078], 1
je 0x140001cc3
cmp qword [rdi + 0x18], 8
jb 0x140001aee
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400b0ea0], rax
add rax, 1
cmp rax, 1
ja 0x140001cc3
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140067c70
mov word [rsp + 0x40], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140001cc1
cmp eax, 0x104
ja 0x140001cc1
mov rdi, qword [0x1400b0e80]
lea rcx, [rsp + 0x40]
call fcn.14006f73c
mov rbx, rax
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x140001ba9
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
call fcn.140003a20
mov rdx, qword [0x1400b0e80]
mov rdi, rdx
jmp 0x140001bd6
mov r14, rdi
cmp rax, 8
jb 0x140001bb5
mov r14, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400675c0
mov word [r14 + rbx*2], 0
mov rdx, rdi
mov rcx, qword [rdi + 0x18]
cmp rcx, 8
jb 0x140001be3
mov rdx, qword [rdi]
mov rax, qword [rdi + 0x10]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x140001c0d
lea rdx, [0x1400929fa]
mov rcx, rdi
call fcn.140003b60
mov rdi, qword [0x1400b0e80]
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov rdx, rcx
sub rdx, rax
cmp rdx, 9
jae 0x140001c38
mov qword [rsp + 0x20], 9
lea r9, str.debug.log
mov edx, 9
mov rcx, rdi
call fcn.140003be0
jmp 0x140001c67
lea rdx, [rax + 9]
mov qword [rdi + 0x10], rdx
cmp rcx, 8
jb 0x140001c49
mov rdi, qword [rdi]
movzx ecx, word [0x140092a0e]
mov word [rdi + rax*2 + 0x10], cx
movups xmm0, xmmword [str.debug.log]
movups xmmword [rdi + rax*2], xmm0
mov word [rdi + rax*2 + 0x12], 0
mov rcx, qword [0x1400b0e80]
cmp qword [rcx + 0x18], 8
jb 0x140001c78
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400b0ea0], rax
add rax, 1
cmp rax, 1
ja 0x140001cc3
mov qword [0x1400b0ea0], 0
xor ebp, ebp
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140065b10
mov eax, ebp
add rsp, 0x250
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.14005def0
int3