Function at 0x180031170
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 [0x1804cd010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.180155f30
test al, al
jne 0x1800311c3
mov eax, 1
jmp 0x1800314b8
lea rbx, [rsi + 0x20]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800311d4
mov rcx, qword [rbx]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x1800311e1
mov r8, qword [rdi]
lea r14, [rdi + 0x10]
mov rdx, qword [r14]
cmp rdx, qword [rbx + 0x10]
jne 0x180031218
test rdx, rdx
je 0x18003120a
sub r8, rcx
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x180031218
add rcx, 2
sub rdx, 1
jne 0x1800311f6
mov rax, qword [rsi + 0x50]
cmp qword [rsi + 0x48], rax
jne 0x1800314b6
mov dword [rsi + 0x44], 0xffffffff
cmp qword [r14], 0
je 0x18003123b
mov rcx, rdi
call fcn.1801561c0
test al, al
jne 0x18003123b
mov eax, 0x80004005
jmp 0x1800314b8
cmp rbx, rdi
je 0x180031258
cmp qword [rdi + 0x18], 8
jb 0x18003124a
mov rdi, qword [rdi]
mov r8, qword [r14]
mov rdx, rdi
mov rcx, rbx
call fcn.180004ea0
lea rcx, [rsi + 0x48]
call fcn.1800320e0
xor edi, edi
cmp qword [rsi + 0x30], rdi
jne 0x1800313bd
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803e8770]
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 0x180031311
mov word [rbp + 0x3b0], di
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1800312d0
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x28]
call fcn.180004ea0
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x180031311
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180004ea0
cmp qword [rsi + 0x30], 0
je 0x180031365
mov rax, rbx
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180031328
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x10]
cmp word [rax + rcx*2 - 2], 0x5c
je 0x180031365
cmp rcx, rdx
jae 0x180031356
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 8
jb 0x18003134d
mov rax, qword [rbx]
mov dword [rax + rcx*2], 0x5c
jmp 0x180031365
mov r9d, 0x5c
mov rcx, rbx
call fcn.1800328a0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1800313aa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800313a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800313a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
cmp qword [rsi + 0xb0], 0
je 0x1800314b6
mov rax, rdi
xchg qword [rsi + 0x130], rax
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1803e8770]
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 0x180031432
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180031424
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x50]
call fcn.180004ea0
movzx eax, byte [rsi + 0x98]
mov byte [rbp - 0x6f], al
lea r8, [rsi + 0x68]
lea rax, [rsp + 0x70]
cmp rax, r8
je 0x180031465
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x180031457
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rsp + 0x70]
call fcn.180004ea0
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.180056880
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0xb8]
call fcn.180056a80
nop
lea rcx, [rsp + 0x70]
call fcn.180004e20
nop
lea rcx, [rsp + 0x50]
call fcn.180004e20
xor eax, eax
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.180388400
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret