Function at 0x140060160
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1401fdbb8]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x140201150], 0
jne 0x1400604bd
mov rdi, qword [0x140201158]
test rdi, rdi
je 0x1400601ab
test byte [0x1401fdba0], 1
jne 0x14006035c
jmp 0x1400604bd
mov ecx, 0x18
call fcn.140173ca0
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1401772e0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [section..rdata]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140001990
movzx ecx, byte [rdi]
mov r8d, ecx
shr r8d, 1
lea rax, [rdi + 2]
test cl, 1
mov r10, qword [rdi + 8]
mov rdx, qword [rdi + 0x10]
mov r11, r10
cmove r11, r8
mov rbx, rdx
cmove rbx, rax
test r11, r11
je 0x140060283
add r11, r11
nop
test r11, r11
je 0x140060283
lea r9, [r11 - 2]
cmp word [rbx + r11 - 2], 0x5c
mov r11, r9
jne 0x140060230
cmp r9, 0xfffffffffffffffe
je 0x140060283
sar r9, 1
lea r11, [r9 + 1]
test cl, 1
jne 0x14006026b
cmp r9, r8
jae 0x140060500
add r11b, r11b
mov byte [rdi], r11b
mov rdx, rax
jmp 0x140060278
cmp r10, r9
jbe 0x140060500
mov qword [rdi + 8], r11
mov word [rdx + r9*2 + 2], 0
movzx ecx, byte [rdi]
test cl, 1
jne 0x14006029f
shr cl, 1
movzx r9d, cl
lea rcx, [r9 - 2]
mov edx, 0xa
cmp rcx, 9
jb 0x1400602b9
jmp 0x1400602f4
mov rdx, qword [rdi]
mov r9, qword [rdi + 8]
and rdx, 0xfffffffffffffffe
dec rdx
mov rax, rdx
sub rax, r9
cmp rax, 9
jae 0x1400602f0
mov r8, r9
sub r8, rdx
add r8, 9
lea rax, str.debug.log
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x30], 9
mov qword [rsp + 0x28], 0
mov rcx, rdi
call fcn.14003df50
jmp 0x140060348
mov rax, qword [rdi + 0x10]
lea rcx, [rax + r9*2]
lea rdx, [rax + r9*2]
add rdx, 0x12
lea r8, str.debug.log
cmp rcx, r8
seta r10b
cmp rdx, r8
setbe dl
or dl, r10b
je 0x1400604da
movups xmm0, xmmword [str.debug.log]
movups xmmword [rcx], xmm0
mov word [rcx + 0x10], 0x67
lea rcx, [r9 + 9]
test byte [rdi], 1
jne 0x14006033c
add cl, cl
mov byte [rdi], cl
jmp 0x140060340
mov qword [rdi + 8], rcx
mov word [rax + r9*2 + 0x12], 0
mov qword [0x140201158], rdi
test byte [0x1401fdba0], 1
je 0x1400604bd
test byte [rdi], 1
jne 0x140060367
add rdi, 2
jmp 0x14006036b
mov rdi, qword [rdi + 0x10]
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 [0x140201150], rax
inc rax
cmp rax, 1
ja 0x1400604bd
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401772e0
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 0x1400604bb
mov rcx, qword [0x140201158]
lea rdx, [rsp + 0x40]
call fcn.14003e7c0
mov rcx, qword [0x140201158]
movzx eax, byte [rcx]
test al, 1
jne 0x140060419
test rax, rax
je 0x1400604ed
lea rdx, [rcx + 2]
shr eax, 1
jmp 0x14006042a
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400604ed
mov rdx, qword [rcx + 0x10]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x14006044b
lea rdx, [0x1401b5c98]
mov r8d, 1
call fcn.14003e380
mov rcx, qword [0x140201158]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14003e380
mov rcx, qword [0x140201158]
test byte [rcx], 1
jne 0x14006046f
add rcx, 2
jmp 0x140060473
mov rcx, qword [rcx + 0x10]
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 [0x140201150], rax
inc rax
cmp rax, 1
ja 0x1400604bd
mov qword [0x140201150], 0
xor esi, esi
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140174050
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401b1076]
lea rdx, str....._third_partylibc_srcinclude__stringchar_traits.h:222:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
call fcn.14003f000
lea rcx, [0x1401b1076]
lea rdx, str....._third_partylibc_srcinclude_string:1359:_assertion__empty___failed:_string::back__:_string_is_empty_n
call fcn.14003f000
mov rcx, rdi
call fcn.1400036a0
int3