Function at 0x14003b080
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x258
mov rax, qword [0x1405bdab8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov sil, 1
cmp qword [0x140754830], 0
jne 0x14003b42d
mov rdi, qword [0x140754808]
test rdi, rdi
je 0x14003b0cd
test byte [0x1405bd868], 1
jne 0x14003b261
jmp 0x14003b42d
mov ecx, 0x20
call fcn.14031dc78
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1403224b0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 8], rax
mov qword [rdi], 0
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 7
mov word [rdi], 0
mov rcx, rbx
call fcn.1403326e0
mov rbx, rax
cmp rax, 7
jbe 0x14003b14d
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
call fcn.14003d850
jmp 0x14003b16a
mov qword [rdi + 0x10], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140320ff0
mov word [rdi + rbx*2], 0
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov rdx, rdi
cmp rcx, 8
jb 0x14003b17e
mov rdx, qword [rdi]
test rax, rax
je 0x14003b19c
lea r9, [rax - 1]
cmp r9, rax
cmovae r9, rax
cmp word [rdx + r9*2], 0x5c
jne 0x14003b1a0
lea r8, [rdx + r9*2]
jmp 0x14003b1c8
xor eax, eax
jmp 0x14003b1f5
add r9, r9
nop word cs:[rax + rax]
test r9, r9
je 0x14003b1f5
lea r8, [r9 - 2]
cmp word [rdx + r9 - 2], 0x5c
mov r9, r8
jne 0x14003b1b0
add r8, rdx
sub r8, rdx
cmp r8, 0xfffffffffffffffe
je 0x14003b1f5
sar r8, 1
lea rcx, [r8 + 1]
cmp rax, rcx
jb 0x14003b44c
mov qword [rdi + 0x10], rcx
mov word [rdx + r8*2 + 2], 0
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov rdx, rcx
sub rdx, rax
cmp rdx, 9
jae 0x14003b220
mov qword [rsp + 0x20], 9
lea r9, str.debug.log
mov edx, 9
mov rcx, rdi
call fcn.14003da10
jmp 0x14003b24d
lea rdx, [rax + 9]
mov qword [rdi + 0x10], rdx
mov rdx, rdi
cmp rcx, 8
jb 0x14003b234
mov rdx, qword [rdi]
movups xmm0, xmmword [str.debug.log]
movups xmmword [rdx + rax*2], xmm0
mov word [rdx + rax*2 + 0x10], 0x67
mov word [rdx + rax*2 + 0x12], 0
mov qword [0x140754808], rdi
test byte [0x1405bd868], 1
je 0x14003b42d
cmp qword [rdi + 0x18], 8
jb 0x14003b26b
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 [0x140754830], rax
inc rax
cmp rax, 1
ja 0x14003b42d
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1403224b0
mov word [rsp + 0x40], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x14003b42b
mov rdi, qword [0x140754808]
lea rcx, [rsp + 0x40]
call fcn.1403326e0
mov rbx, rax
mov rax, qword [rdi + 0x18]
cmp rax, rbx
jae 0x14003b31f
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
call fcn.14003d850
mov rdi, qword [0x140754808]
jmp 0x14003b349
mov r14, rdi
cmp rax, 8
jb 0x14003b32b
mov r14, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140320ff0
mov word [r14 + rbx*2], 0
mov rcx, qword [rdi + 0x18]
mov rdx, rdi
cmp rcx, 8
jb 0x14003b359
mov rdx, qword [rdi]
mov rax, qword [rdi + 0x10]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x14003b383
lea rdx, [0x1404c2452]
mov rcx, rdi
call fcn.14003d990
mov rdi, qword [0x140754808]
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov rdx, rcx
sub rdx, rax
cmp rdx, 9
jae 0x14003b3ae
mov qword [rsp + 0x20], 9
lea r9, str.debug.log
mov edx, 9
mov rcx, rdi
call fcn.14003da10
jmp 0x14003b3d2
lea rdx, [rax + 9]
mov qword [rdi + 0x10], rdx
cmp rcx, 8
jb 0x14003b3bf
mov rdi, qword [rdi]
movups xmm0, xmmword [str.debug.log]
movups xmmword [rdi + rax*2], xmm0
mov dword [rdi + rax*2 + 0x10], 0x67
mov rcx, qword [0x140754808]
cmp qword [rcx + 0x18], 8
jb 0x14003b3e3
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 [0x140754830], rax
inc rax
cmp rax, 1
ja 0x14003b42d
mov qword [0x140754830], 0
xor esi, esi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14031e660
mov eax, esi
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140279ea0
int3