Function at 0x1400d4c30
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140186028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14019e6f8], 0
je 0x1400d4c76
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14009c2d0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [0x14019e6d0]
test rcx, rcx
je 0x1400d4d14
test byte [0x1401940a8], 1
je 0x1400d4c59
cmp byte [rcx + 0x17], 0
jns 0x1400d4c98
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 [0x14019e6f8], rax
inc rax
cmp rax, 1
ja 0x1400d4c59
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14009e420
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400d4df5
xor esi, esi
jmp 0x1400d4c59
mov ecx, 0x18
call fcn.14009ae10
mov rsi, rax
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14009e420
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x140157be0]
movups xmmword [rsi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsi + 0x10], rax
mov rcx, rsi
mov rdx, rdi
call fcn.14005ba90
movzx ecx, byte [rsi + 0x17]
mov r9d, ecx
and r9d, 0x7f
test cl, cl
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
cmovs r9, rdx
mov r10, rsi
cmovs r10, rax
test r9, r9
je 0x1400d4dd0
add r9, r9
test r9, r9
je 0x1400d4dd0
lea r8, [r9 - 2]
cmp word [r10 + r9 - 2], 0x5c
mov r9, r8
jne 0x1400d4d91
cmp r8, 0xfffffffffffffffe
je 0x1400d4dd0
sar r8, 1
lea r9, [r8 + 1]
test cl, cl
jns 0x1400d4ece
cmp rdx, r8
jbe 0x1400d4ef0
mov qword [rsi + 8], r9
mov word [rax + r8*2 + 2], 0
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rsi
call fcn.14003f0d4
mov qword [0x14019e6d0], 0
jmp 0x1400d4d0d
mov rdi, qword [0x14019e6d0]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400b8054
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.1400602c6
mov rcx, qword [0x14019e6d0]
movzx eax, byte [rcx + 0x17]
test al, al
jns 0x1400d4ee3
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400d4ef8
mov rdx, qword [rcx]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400d4e5b
lea rdx, [0x14015e258]
mov r8d, 1
call fcn.14003f0d4
mov rcx, qword [0x14019e6d0]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14003f0d4
mov rcx, qword [0x14019e6d0]
cmp byte [rcx + 0x17], 0
jns 0x1400d4e7d
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 [0x14019e6f8], rax
inc rax
cmp rax, 1
ja 0x1400d4c59
mov qword [0x14019e6f8], 0
jmp 0x1400d4d0d
cmp r8, rcx
jae 0x1400d4ef0
and r9b, 0x7f
mov byte [rsi + 0x17], r9b
mov rax, rsi
jmp 0x1400d4dc8
test rax, rax
je 0x1400d4ef8
mov rdx, rcx
jmp 0x1400d4e3a
mov rcx, rsi
call fcn.1400dcf26
lea rax, str.string::back__:_string_is_empty
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string
lea r9, str._empty__
mov r8d, 0x525
call fcn.1400e5794
int3