Function at 0x14011afa0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1403e2990], 0
jne 0x14011b238
mov rdi, qword [0x1403e2970]
test rdi, rdi
je 0x14011afeb
test byte [reloc.WS2_32.dll_accept], 1
jne 0x14011b0f4
jmp 0x14011b238
mov ecx, 0x18
call fcn.14020216c
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1402055c0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14026fe30]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.14003f01a
movzx eax, byte [rdi + 0x17]
mov rdx, rax
mov rcx, rdi
test al, al
js 0x14011b056
test rdx, rdx
jne 0x14011b062
jmp 0x14011b0cb
mov rcx, qword [rdi]
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x14011b0cb
add rdx, rdx
nop word cs:[rax + rax]
test rdx, rdx
je 0x14011b0cb
lea r8, [rdx - 2]
cmp word [rcx + rdx - 2], 0x5c
mov rdx, r8
jne 0x14011b070
cmp r8, 0xfffffffffffffffe
je 0x14011b0cb
mov rcx, r8
sar rcx, 1
lea rdx, [rcx + 1]
test al, al
js 0x14011b0b3
cmp rcx, rax
jae 0x14011b2ca
cmp r8, 0x14
jae 0x14011b29e
mov byte [rdi + 0x17], dl
mov rax, rdi
jmp 0x14011b0c4
cmp qword [rdi + 8], rcx
jbe 0x14011b2ca
mov rax, qword [rdi]
mov qword [rdi + 8], rdx
mov word [rax + rcx*2 + 2], 0
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.1400e9650
mov qword [0x1403e2970], rdi
test byte [reloc.WS2_32.dll_accept], 1
je 0x14011b238
cmp byte [rdi + 0x17], 0
jns 0x14011b0fd
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 [0x1403e2990], rax
inc rax
cmp rax, 1
ja 0x14011b238
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1402055c0
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 0x14011b236
mov rcx, qword [0x1403e2970]
lea rdx, [rsp + 0x40]
call fcn.1400e9472
mov rcx, qword [0x1403e2970]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x14011b255
test rax, rax
je 0x14011b272
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
je 0x14011b1cc
lea rdx, [0x14027b6f8]
mov r8d, 1
call fcn.1400e9650
mov rcx, qword [0x1403e2970]
lea rdx, str.debug.log
mov r8d, 9
call fcn.1400e9650
mov rcx, qword [0x1403e2970]
cmp byte [rcx + 0x17], 0
jns 0x14011b1ee
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 [0x1403e2990], rax
inc rax
cmp rax, 1
ja 0x14011b238
mov qword [0x1403e2990], 0
xor esi, esi
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140203460
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rcx + 8]
test rax, rax
je 0x14011b272
mov rdx, qword [rcx]
cmp word [rdx + rax*2 - 2], 0x5c
jne 0x14011b1b3
jmp 0x14011b1cc
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, 0x501
call fcn.14004460c
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, 0x6c6
call fcn.14004460c
mov rcx, rdi
call fcn.14003f634
int3