Function at 0x14002be90
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x250
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov r12b, 1
cmp qword [0x14017cc08], 0
jne 0x14002c28a
mov rdi, qword [0x14017cbc8]
test rdi, rdi
je 0x14002bf99
test byte [0x14017b508], 1
je 0x14002c28a
cmp qword [rdi + 0x18], 8
jb 0x14002beeb
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14017cc08], rax
add rax, 1
cmp rax, 1
ja 0x14002c28a
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x14002c287
mov rdi, qword [0x14017cbc8]
lea rcx, [rsp + 0x40]
call fcn.140120930
mov rbx, rax
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x14002c12e
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
call fcn.140005da0
mov rsi, qword [0x14017cbc8]
lea r15, [rsi + 0x18]
mov rdi, rsi
jmp 0x14002c15f
mov ecx, 0x20
call fcn.14011a310
mov rdi, rax
lea rbx, [rsp + 0x40]
xor ecx, ecx
mov r8d, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 7
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rdi + 0x10], xmm0
mov word [rdi], 0
mov rcx, rbx
call fcn.140120930
mov rbx, rax
cmp rax, 7
jbe 0x14002bff8
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
call fcn.140005da0
jmp 0x14002c015
mov qword [rdi + 0x10], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14011d3a0
mov word [rdi + rbx*2], 0
mov rcx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
mov rdx, rdi
cmp r8, 7
jbe 0x14002c029
mov rdx, qword [rdi]
test rcx, rcx
je 0x14002c0b4
mov rax, rcx
add rax, 0xffffffffffffffff
cmovae rax, rcx
lea rbx, [rdx + rax*2]
movzx eax, word [rdx + rax*2]
cmp eax, 0x5c
je 0x14002c086
mov rax, rcx
neg rax
mov rbp, rcx
not rbp
cmp rax, rbp
cmova rbp, rax
lea rsi, [rbp + 2]
add rsi, rbp
nop dword [rax + rax]
test rsi, rsi
je 0x14002c0b6
movzx eax, word [rbx - 2]
add rbx, 0xfffffffffffffffe
add rsi, 2
cmp eax, 0x5c
jne 0x14002c070
sub rbx, rdx
cmp rbx, 0xfffffffffffffffe
je 0x14002c0b6
sar rbx, 1
lea rax, [rbx + 1]
cmp rcx, rax
jb 0x14002c2af
mov qword [rdi + 0x10], rax
mov word [rdx + rbx*2 + 2], 0
mov rcx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
jmp 0x14002c0b6
xor ecx, ecx
mov rax, r8
sub rax, rcx
cmp rax, 9
jae 0x14002c0e1
mov qword [rsp + 0x20], 9
lea r9, str.debug.log
mov edx, 9
mov rcx, rdi
call fcn.140009dd0
jmp 0x14002c115
lea rax, [rcx + 9]
mov qword [rdi + 0x10], rax
mov rdx, rdi
cmp r8, 7
jbe 0x14002c0f5
mov rdx, qword [rdi]
movzx eax, word [0x14014eef4]
mov word [rdx + rcx*2 + 0x10], ax
movdqu xmm0, xmmword [str.debug.log]
movdqu xmmword [rdx + rcx*2], xmm0
mov word [rdx + rcx*2 + 0x12], 0
mov qword [0x14017cbc8], rdi
test byte [0x14017b508], 1
jne 0x14002bee1
jmp 0x14002c28a
mov r14, rdi
cmp rax, 8
jb 0x14002c13a
mov r14, qword [rdi]
lea r15, [rdi + 0x18]
mov qword [rdi + 0x10], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.14011d3a0
mov word [r14 + rbx*2], 0
mov rsi, rdi
mov rdx, qword [rdi + 0x18]
mov rcx, rsi
cmp rdx, 8
jb 0x14002c16f
mov rcx, qword [rdi]
lea rax, [rdi + 0x10]
mov rbx, qword [rdi + 0x10]
movzx ecx, word [rcx + rbx*2 - 2]
cmp ecx, 0x5c
je 0x14002c1cb
cmp rdx, rbx
jne 0x14002c1b4
mov qword [rsp + 0x20], 1
lea r9, [0x140149b10]
mov edx, 1
mov rcx, rdi
call fcn.140009dd0
mov rdi, qword [0x14017cbc8]
lea rax, [rdi + 0x10]
lea r15, [rdi + 0x18]
jmp 0x14002c1cb
lea rcx, [rbx + 1]
mov qword [rax], rcx
cmp rdx, 8
jb 0x14002c1c4
mov rsi, qword [rdi]
mov dword [rsi + rbx*2], 0x5c
mov rcx, qword [rdi + 0x10]
mov rbp, qword [r15]
mov rdx, rbp
sub rdx, rcx
cmp rdx, 9
jae 0x14002c1fd
mov qword [rsp + 0x20], 9
lea r9, str.debug.log
mov edx, 9
mov rcx, rdi
call fcn.140009dd0
jmp 0x14002c22d
lea rdx, [rcx + 9]
mov qword [rax], rdx
cmp rbp, 8
jb 0x14002c20d
mov rdi, qword [rdi]
movzx eax, word [0x14014eef4]
mov word [rdi + rcx*2 + 0x10], ax
movdqu xmm0, xmmword [str.debug.log]
movdqu xmmword [rdi + rcx*2], xmm0
mov word [rdi + rcx*2 + 0x12], 0
mov rcx, qword [0x14017cbc8]
cmp qword [rcx + 0x18], 8
jb 0x14002c23e
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 [0x14017cc08], rax
add rax, 1
cmp rax, 1
ja 0x14002c28a
mov qword [0x14017cc08], 0
xor r12d, r12d
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14011a370
mov eax, r12d
add rsp, 0x250
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140008700
ud2