Function at 0x14003bfd0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x1401e3a68]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r15b, 1
cmp qword [0x1401e6818], 0
jne 0x14003c3b6
mov rdi, qword [0x1401e67d0]
test rdi, rdi
je 0x14003c0d8
test byte [0x1401e2280], 1
je 0x14003c3b6
cmp qword [rdi + 0x18], 7
jbe 0x14003c029
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 [0x1401e6818], rax
add rax, 1
cmp rax, 1
ja 0x14003c3b6
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14003c3b3
cmp eax, 0x104
ja 0x14003c3b3
mov rdi, qword [0x1401e67d0]
lea rcx, [rsp + 0x40]
call fcn.140185cb0
mov rbx, rax
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x14003c268
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
call fcn.140006120
mov rbp, qword [0x1401e67d0]
mov rdi, rbp
jmp 0x14003c295
mov ecx, 0x20
call fcn.14014a810
mov rdi, rax
lea rbx, [rsp + 0x40]
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
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.140185cb0
mov rbx, rax
cmp rax, 7
jbe 0x14003c137
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
call fcn.140006120
jmp 0x14003c154
mov qword [rdi + 0x10], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14016e8e0
mov word [rdi + rbx*2], 0
mov rbp, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov rdx, rdi
cmp rcx, 7
jbe 0x14003c168
mov rdx, qword [rdi]
mov rax, rbp
sub rax, 1
jae 0x14003c175
xor ebp, ebp
jmp 0x14003c1f0
cmp rax, rbp
cmovae rax, rbp
lea rbx, [rdx + rax*2]
cmp word [rdx + rax*2], 0x5c
je 0x14003c1c4
mov rax, rbp
neg rax
mov rsi, rbp
not rsi
cmp rax, rsi
cmova rsi, rax
add rsi, rsi
add rsi, 2
nop word cs:[rax + rax]
nop dword [rax + rax]
test rsi, rsi
je 0x14003c1f0
add rsi, 2
cmp word [rbx - 2], 0x5c
lea rbx, [rbx - 2]
jne 0x14003c1b0
sub rbx, rdx
cmp rbx, 0xfffffffffffffffe
je 0x14003c1f0
sar rbx, 1
lea rax, [rbx + 1]
cmp rbp, rax
jb 0x14003c3d9
mov qword [rdi + 0x10], rax
mov word [rdx + rbx*2 + 2], 0
mov rbp, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, rbp
cmp rax, 9
jae 0x14003c21b
mov qword [rsp + 0x20], 9
lea r9, str.debug.log
mov edx, 9
mov rcx, rdi
call fcn.14000a090
jmp 0x14003c24f
lea rax, [rbp + 9]
mov qword [rdi + 0x10], rax
mov rdx, rdi
cmp rcx, 7
jbe 0x14003c22f
mov rdx, qword [rdi]
movzx eax, word [0x14019d396]
mov word [rdx + rbp*2 + 0x10], ax
movdqu xmm0, xmmword [str.debug.log]
movdqu xmmword [rdx + rbp*2], xmm0
mov word [rdx + rbp*2 + 0x12], 0
mov qword [0x1401e67d0], rdi
test byte [0x1401e2280], 1
jne 0x14003c01f
jmp 0x14003c3b6
mov r14, rdi
cmp rax, 8
jb 0x14003c274
mov r14, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.14016e8e0
mov word [r14 + rbx*2], 0
mov rbp, rdi
mov rcx, qword [rdi + 0x18]
mov rax, rbp
cmp rcx, 8
jb 0x14003c2a5
mov rax, qword [rdi]
mov rdx, qword [rdi + 0x10]
cmp word [rax + rdx*2 - 2], 0x5c
je 0x14003c2f5
cmp rcx, rdx
jne 0x14003c2dc
mov qword [rsp + 0x20], 1
lea r9, [0x140197fc0]
mov edx, 1
mov rcx, rdi
call fcn.14000a090
mov rdi, qword [0x1401e67d0]
jmp 0x14003c2f5
lea rax, [rdx + 1]
mov qword [rdi + 0x10], rax
cmp rcx, 8
jb 0x14003c2ed
mov rbp, qword [rdi]
mov dword [rbp + rdx*2], 0x5c
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov rdx, rcx
sub rdx, rax
cmp rdx, 9
jae 0x14003c328
mov qword [rsp + 0x20], 9
lea r9, str.debug.log
mov edx, 9
mov rcx, rdi
call fcn.14000a090
jmp 0x14003c359
lea rdx, [rax + 9]
mov qword [rdi + 0x10], rdx
cmp rcx, 8
jb 0x14003c339
mov rdi, qword [rdi]
movzx ecx, word [0x14019d396]
mov word [rdi + rax*2 + 0x10], cx
movdqu xmm0, xmmword [str.debug.log]
movdqu xmmword [rdi + rax*2], xmm0
mov word [rdi + rax*2 + 0x12], 0
mov rcx, qword [0x1401e67d0]
cmp qword [rcx + 0x18], 7
jbe 0x14003c36a
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 [0x1401e6818], rax
add rax, 1
cmp rax, 1
ja 0x14003c3b6
mov qword [0x1401e6818], 0
xor r15d, r15d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14014ac50
mov eax, r15d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400064b0
ud2