Function at 0x140016af0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x140125058]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r15b, 1
cmp qword [0x140128aa8], 0
jne 0x140016ed9
mov rdi, qword [0x140128a60]
test rdi, rdi
je 0x140016bf8
test byte [section..data], 1
je 0x140016ed9
cmp qword [rdi + 0x18], 8
jb 0x140016b49
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 [0x140128aa8], rax
add rax, 1
cmp rax, 1
ja 0x140016ed9
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140016ed6
cmp eax, 0x104
ja 0x140016ed6
mov rdi, qword [0x140128a60]
lea rcx, [rsp + 0x40]
call fcn.1400de470
mov rbx, rax
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x140016d8c
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
call fcn.140003250
mov rbx, qword [0x140128a60]
mov rdi, rbx
jmp 0x140016db9
mov ecx, 0x20
call fcn.1400a6840
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.1400de470
mov rbx, rax
cmp rax, 7
jbe 0x140016c57
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
call fcn.140003250
jmp 0x140016c74
mov qword [rdi + 0x10], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400ca590
mov word [rdi + rbx*2], 0
mov rcx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
mov rdx, rdi
cmp r8, 7
jbe 0x140016c88
mov rdx, qword [rdi]
test rcx, rcx
je 0x140016d12
mov rax, rcx
add rax, 0xffffffffffffffff
cmovae rax, rcx
lea rbx, [rdx + rax*2]
cmp word [rdx + rax*2], 0x5c
je 0x140016ce4
mov rax, rcx
neg rax
mov rbp, rcx
not rbp
cmp rax, rbp
cmova rbp, rax
lea rsi, [rbp + 2]
add rsi, rbp
nop word cs:[rax + rax]
nop
test rsi, rsi
je 0x140016d14
add rsi, 2
cmp word [rbx - 2], 0x5c
lea rbx, [rbx - 2]
jne 0x140016cd0
sub rbx, rdx
cmp rbx, 0xfffffffffffffffe
je 0x140016d14
sar rbx, 1
lea rax, [rbx + 1]
cmp rcx, rax
jb 0x140016efc
mov qword [rdi + 0x10], rax
mov word [rdx + rbx*2 + 2], 0
mov rcx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
jmp 0x140016d14
xor ecx, ecx
mov rax, r8
sub rax, rcx
cmp rax, 9
jae 0x140016d3f
mov qword [rsp + 0x20], 9
lea r9, [0x1400f37dc]
mov edx, 9
mov rcx, rdi
call fcn.140011370
jmp 0x140016d73
lea rax, [rcx + 9]
mov qword [rdi + 0x10], rax
mov rdx, rdi
cmp r8, 7
jbe 0x140016d53
mov rdx, qword [rdi]
movzx eax, word [0x1400f37ec]
mov word [rdx + rcx*2 + 0x10], ax
movdqu xmm0, xmmword [0x1400f37dc]
movdqu xmmword [rdx + rcx*2], xmm0
mov word [rdx + rcx*2 + 0x12], 0
mov qword [0x140128a60], rdi
test byte [section..data], 1
jne 0x140016b3f
jmp 0x140016ed9
mov r14, rdi
cmp rax, 8
jb 0x140016d98
mov r14, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400ca590
mov word [r14 + rbx*2], 0
mov rbx, rdi
mov rcx, qword [rdi + 0x18]
mov rax, rbx
cmp rcx, 8
jb 0x140016dc9
mov rax, qword [rdi]
mov rdx, qword [rdi + 0x10]
cmp word [rax + rdx*2 - 2], 0x5c
je 0x140016e18
cmp rcx, rdx
jne 0x140016e00
mov qword [rsp + 0x20], 1
lea r9, [0x1400f37d8]
mov edx, 1
mov rcx, rdi
call fcn.140011370
mov rdi, qword [0x140128a60]
jmp 0x140016e18
lea rax, [rdx + 1]
mov qword [rdi + 0x10], rax
cmp rcx, 8
jb 0x140016e11
mov rbx, qword [rdi]
mov dword [rbx + rdx*2], 0x5c
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov rdx, rcx
sub rdx, rax
cmp rdx, 9
jae 0x140016e4b
mov qword [rsp + 0x20], 9
lea r9, [0x1400f37dc]
mov edx, 9
mov rcx, rdi
call fcn.140011370
jmp 0x140016e7c
lea rdx, [rax + 9]
mov qword [rdi + 0x10], rdx
cmp rcx, 8
jb 0x140016e5c
mov rdi, qword [rdi]
movzx ecx, word [0x1400f37ec]
mov word [rdi + rax*2 + 0x10], cx
movdqu xmm0, xmmword [0x1400f37dc]
movdqu xmmword [rdi + rax*2], xmm0
mov word [rdi + rax*2 + 0x12], 0
mov rcx, qword [0x140128a60]
cmp qword [rcx + 0x18], 8
jb 0x140016e8d
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 [0x140128aa8], rax
add rax, 1
cmp rax, 1
ja 0x140016ed9
mov qword [0x140128aa8], 0
xor r15d, r15d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400a6c00
mov eax, r15d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400088a0
ud2