Function at 0x1400f6030
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x140322778], 0
jne 0x1400f628b
mov rdi, qword [0x140322750]
test rdi, rdi
je 0x1400f607b
test byte [0x14030ebf8], 1
jne 0x1400f6153
jmp 0x1400f628b
mov ecx, 0x18
call fcn.140255d40
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140259320
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14029de10]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400231ae
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x1400f60df
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.1400e9672
cmp rax, 0xffffffffffffffff
je 0x1400f6130
lea rcx, [rax + 1]
movzx edx, byte [rdi + 0x17]
test dl, dl
js 0x1400f6118
cmp rax, rdx
jae 0x1400f631d
cmp rax, 0xa
jae 0x1400f62f1
mov byte [rdi + 0x17], cl
mov rdx, rdi
jmp 0x1400f6129
cmp qword [rdi + 8], rax
jbe 0x1400f631d
mov rdx, qword [rdi]
mov qword [rdi + 8], rcx
mov word [rdx + rax*2 + 2], 0
lea rdx, str.debug.log
mov rcx, rdi
call fcn.1400e99aa
mov qword [0x140322750], rdi
test byte [0x14030ebf8], 1
je 0x1400f628b
cmp byte [rdi + 0x17], 0
jns 0x1400f615c
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 [0x140322778], rax
inc rax
cmp rax, 1
ja 0x1400f628b
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140259320
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 0x1400f6289
mov rcx, qword [0x140322750]
lea rdx, [rsp + 0x40]
call fcn.1400e8c9c
mov rcx, qword [0x140322750]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x1400f62a8
test rax, rax
je 0x1400f62c5
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400f6225
lea rdx, [0x1402a960a]
call fcn.1400e99aa
mov rcx, qword [0x140322750]
lea rdx, str.debug.log
call fcn.1400e99aa
mov rcx, qword [0x140322750]
cmp byte [rcx + 0x17], 0
jns 0x1400f6241
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 [0x140322778], rax
inc rax
cmp rax, 1
ja 0x1400f628b
mov qword [0x140322778], 0
xor esi, esi
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140257200
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400f62c5
mov rdx, qword [rcx]
cmp word [rdx + rax*2 - 2], 0x5c
jne 0x1400f6212
jmp 0x1400f6225
lea rax, str.string::back__:_string_is_empty
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string
lea r9, str._empty__
mov r8d, 0xdd9
call fcn.14004f520
lea rax, str.__s_should_never_be_greater_than_or_equal_to_the_short_string_capacity
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string
lea r9, str.__s_____min_cap
mov r8d, 0x629
call fcn.14004f520
call fcn.14026f3e0
int3