Function at 0x14002ea70
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14016e028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x140175ab8], 0
jne 0x14002ecbb
mov rcx, qword [0x140175ab0]
test rcx, rcx
je 0x14002eb80
test byte [0x14016ff48], 1
je 0x14002ecbb
cmp byte [rcx + 0x17], 0
jns 0x14002eac7
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 [0x140175ab8], rax
inc rax
cmp rax, 1
ja 0x14002ecbb
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007f940
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14002ecb9
cmp eax, 0x104
ja 0x14002ecb9
mov rdi, qword [0x140175ab0]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.14007adcc
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.14004772c
mov rcx, qword [0x140175ab0]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x14002ecdc
mov rdx, rcx
jmp 0x14002ece3
movabs r14, 0x7fffffffffffffef
mov ecx, 0x18
call fcn.14007a994
mov rsi, rax
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007f940
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x140147b90]
movups xmmword [rsi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsi + 0x10], rax
mov rcx, rdi
call fcn.14007adcc
cmp rax, r14
ja 0x14002ed77
mov rdi, rax
cmp rax, 0xb
jae 0x14002ebfd
mov byte [rsi + 0x17], dil
mov r15, rsi
test rdi, rdi
jne 0x14002ec23
jmp 0x14002ec36
lea rbx, [rdi + 8]
and rbx, 0xfffffffffffffff8
lea rcx, [rbx + rbx]
call fcn.14007a994
mov r15, rax
mov qword [rsi], rax
add r14, 0x11
or r14, rbx
mov qword [rsi + 0x10], r14
mov qword [rsi + 8], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14007f530
mov word [r15 + rdi*2], 0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14002ec4b
mov r8, qword [rsi + 8]
mov rcx, rsi
mov dx, 0x5c
call fcn.14004a50e
cmp rax, 0xffffffffffffffff
je 0x14002ec99
movzx ecx, byte [rsi + 0x17]
mov rdx, rcx
test cl, cl
jns 0x14002ec6c
mov rdx, qword [rsi + 8]
cmp rdx, rax
jbe 0x14002ed7f
mov rdx, rax
inc rdx
test cl, cl
js 0x14002ec8b
mov word [rsi + rax*2 + 2], 0
mov byte [rsi + 0x17], dl
jmp 0x14002ec99
mov rcx, qword [rsi]
mov word [rcx + rax*2 + 2], 0
mov qword [rsi + 8], rdx
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rsi
call fcn.14004a704
mov qword [0x140175ab0], 0
xor esi, esi
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14007d5a0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x14002ed04
lea rdx, [0x14014e2a6]
mov r8d, 1
call fcn.14004a704
mov rcx, qword [0x140175ab0]
or eax, 0x146dac
lea rdx, str.debug.log
mov r8d, 9
call fcn.14004a704
mov rcx, qword [0x140175ab0]
cmp byte [rcx + 0x17], 0
jns 0x14002ed26
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 [0x140175ab8], rax
inc rax
cmp rax, 1
ja 0x14002ecbb
mov qword [0x140175ab8], 0
jmp 0x14002ecb9
mov rcx, rsi
call fcn.1400da168
mov rcx, rsi
call fcn.1400f4ae0
int3