Function at 0x14005a040
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x380
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140180518]
xor rax, rsp
mov qword [rsp + 0x378], rax
lea r12, [rsp + 0x270]
mov qword [rsp + 0x258], r12
mov qword [rsp + 0x260], 0
mov qword [rsp + 0x268], 0x104
lea rdx, [rsp + 0x258]
mov rcx, r14
call fcn.140020b00
mov rax, qword [rsp + 0x260]
cmp rax, 4
jb 0x14005a0df
mov rcx, qword [rsp + 0x258]
cmp dword [rcx], 0x2f3f2f2f
jne 0x14005a0df
lea rcx, [rsp + 0x258]
mov edx, 3
call fcn.1400567a0
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x258]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x38]
mov rcx, rsi
mov edx, 0xfde9
mov r9, rdi
call fcn.14005d1a0
cmp dword [rsi], 0
jne 0x14005a353
xor r15d, r15d
mov rcx, r14
xor edx, edx
call fcn.140057350
mov ebp, eax
test al, al
jne 0x14005a137
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14005a21d
mov r15d, eax
add r15, qword [rdi + 8]
cmp r15, rbx
jae 0x14005a17b
mov dword [rsi], 0
mov eax, dword [0x1401bc758]
mov ecx, dword [0x1401bd448]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005a38b
lea rax, section..data
mov qword [rsi + 8], rax
jmp 0x14005a353
cmp qword [rsp + 0x260], 4
jb 0x14005a196
mov rax, qword [rsp + 0x258]
cmp dword [rax], 0x5c3f5c5c
je 0x14005a140
test bpl, bpl
jne 0x14005a1b4
lea rdx, [rsp + 0x258]
mov rcx, rsi
call fcn.140059100
cmp dword [rsi], 0
jne 0x14005a353
lea rbx, [rsp + 0x258]
mov rcx, rbx
mov edx, 3
call fcn.1400567a0
mov rcx, rbx
mov dl, 1
mov r8d, 3
call fcn.1400574b0
movups xmm0, xmmword [rsp + 0x258]
movups xmmword [rsp + 0x28], xmm0
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x28]
xor r8d, r8d
call fcn.140054ad0
mov rax, qword [rsp + 0x50]
cmp rax, 3
jb 0x14005a232
mov rcx, qword [rsp + 0x48]
movzx edx, byte [rcx]
cmp edx, 0x5c
je 0x14005a215
cmp edx, 0x2f
jne 0x14005a237
cmp byte [rcx + 1], dl
sete dl
jmp 0x14005a239
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.1400660f0
jmp 0x14005a353
mov rcx, qword [rsp + 0x48]
xor edx, edx
xor r8d, r8d
cmp byte [rcx + rax - 1], 0x3a
cmove r8, rcx
test dl, dl
cmovne r8, rcx
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], 0x208
mov dword [rsp + 0x50], 0x5c3f5c5c
mov qword [rsp + 0x40], 4
cmp byte [r8 + 1], 0x3a
jne 0x14005a2a8
mov r15, qword [rsp + 0x258]
mov r14, qword [rsp + 0x260]
lea r8, [r14 + 4]
cmp r8, 0x209
jb 0x14005a2ef
lea rcx, [rsp + 0x38]
mov r9d, 1
mov rdx, rbx
call fcn.14001dc70
jmp 0x14005a300
mov r15, qword [rsp + 0x258]
mov rax, qword [rsp + 0x260]
mov dword [rsp + 0x54], 0x5c434e55
mov qword [rsp + 0x40], 8
lea r14, [rax - 2]
lea r8, [rax + 6]
cmp r8, 0x209
jb 0x14005a2f6
lea rcx, [rsp + 0x38]
mov r9d, 1
mov rdx, rbx
call fcn.14001dc70
jmp 0x14005a2fc
test r14, r14
jne 0x14005a300
jmp 0x14005a315
cmp rax, 2
je 0x14005a315
add r15, 2
mov rcx, qword [rsp + 0x38]
add rcx, qword [rsp + 0x40]
mov rdx, r15
mov r8, r14
call fcn.140122c80
add r14, qword [rsp + 0x40]
mov qword [rsp + 0x40], r14
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x28]
mov rcx, rsi
mov edx, 0xfde9
mov r9, rdi
call fcn.14005d1a0
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x14005a353
call qword [0x14017cb20]
mov rcx, qword [rsp + 0x258]
cmp rcx, r12
je 0x14005a366
call qword [0x14017cb20]
mov rcx, qword [rsp + 0x378]
xor rcx, rsp
call fcn.1401213e0
mov rax, rsi
add rsp, 0x380
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1401bc758]
call fcn.140121230
cmp dword [0x1401bc758], 0xffffffff
jne 0x14005a16b
lea rcx, [fcn.1400055a0]
call fcn.140121400
lea rcx, [0x1401bc758]
call fcn.140121298
jmp 0x14005a16b