Function at 0x1800310e0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x3e8]
sub rsp, 0x4d0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.180155970
test al, al
jne 0x180031133
mov eax, 1
jmp 0x180031428
lea rbx, [rsi + 0x20]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180031144
mov rcx, qword [rbx]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x180031151
mov r8, qword [rdi]
lea r14, [rdi + 0x10]
mov rdx, qword [r14]
cmp rdx, qword [rbx + 0x10]
jne 0x180031188
test rdx, rdx
je 0x18003117a
sub r8, rcx
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x180031188
add rcx, 2
sub rdx, 1
jne 0x180031166
mov rax, qword [rsi + 0x50]
cmp qword [rsi + 0x48], rax
jne 0x180031426
mov dword [rsi + 0x44], 0xffffffff
cmp qword [r14], 0
je 0x1800311ab
mov rcx, rdi
call fcn.180155c00
test al, al
jne 0x1800311ab
mov eax, 0x80004005
jmp 0x180031428
cmp rbx, rdi
je 0x1800311c8
cmp qword [rdi + 0x18], 8
jb 0x1800311ba
mov rdi, qword [rdi]
mov r8, qword [r14]
mov rdx, rdi
mov rcx, rbx
call fcn.180004e70
lea rcx, [rsi + 0x48]
call fcn.180032050
xor edi, edi
cmp qword [rsi + 0x30], rdi
jne 0x18003132d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x38], xmm1
mov word [rsp + 0x28], di
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x60]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x206
ja 0x180031281
mov word [rbp + 0x3b0], di
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180031240
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x28]
call fcn.180004e70
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x180031281
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180004e70
cmp qword [rsi + 0x30], 0
je 0x1800312d5
mov rax, rbx
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180031298
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x10]
cmp word [rax + rcx*2 - 2], 0x5c
je 0x1800312d5
cmp rcx, rdx
jae 0x1800312c6
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 8
jb 0x1800312bd
mov rax, qword [rbx]
mov dword [rax + rcx*2], 0x5c
jmp 0x1800312d5
mov r9d, 0x5c
mov rcx, rbx
call fcn.180032810
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18003131a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180031315
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180031315
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
cmp qword [rsi + 0xb0], 0
je 0x180031426
mov rax, rdi
xchg qword [rsi + 0x130], rax
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1803e6740]
movdqa xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x50], di
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmmword [rbp - 0x80], xmm1
mov word [rsp + 0x70], di
mov word [rbp - 0x70], 0
mov byte [rbp - 0x6e], 0
mov dword [rbp - 0x6c], edi
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x1800313a2
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180031394
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x50]
call fcn.180004e70
movzx eax, byte [rsi + 0x98]
mov byte [rbp - 0x6f], al
lea r8, [rsi + 0x68]
lea rax, [rsp + 0x70]
cmp rax, r8
je 0x1800313d5
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1800313c7
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rsp + 0x70]
call fcn.180004e70
mov rcx, qword [rsi + 0xb0]
mov rax, qword [rcx]
call qword [rax + 0xc8]
mov byte [rbp - 0x70], al
lea rdx, [rsi + 0x18]
test rsi, rsi
cmove rdx, rdi
lea rcx, [rsi + 0xb8]
call fcn.1800567f0
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0xb8]
call fcn.1800569f0
nop
lea rcx, [rsp + 0x70]
call fcn.180004df0
nop
lea rcx, [rsp + 0x50]
call fcn.180004df0
xor eax, eax
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.180385c10
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret