Function at 0x180030a50
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 [0x1804cc010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.180155880
test al, al
jne 0x180030aa3
mov eax, 1
jmp 0x180030d98
lea rbx, [rsi + 0x20]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180030ab4
mov rcx, qword [rbx]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x180030ac1
mov r8, qword [rdi]
lea r14, [rdi + 0x10]
mov rdx, qword [r14]
cmp rdx, qword [rbx + 0x10]
jne 0x180030af8
test rdx, rdx
je 0x180030aea
sub r8, rcx
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x180030af8
add rcx, 2
sub rdx, 1
jne 0x180030ad6
mov rax, qword [rsi + 0x50]
cmp qword [rsi + 0x48], rax
jne 0x180030d96
mov dword [rsi + 0x44], 0xffffffff
cmp qword [r14], 0
je 0x180030b1b
mov rcx, rdi
call fcn.180155b10
test al, al
jne 0x180030b1b
mov eax, 0x80004005
jmp 0x180030d98
cmp rbx, rdi
je 0x180030b38
cmp qword [rdi + 0x18], 8
jb 0x180030b2a
mov rdi, qword [rdi]
mov r8, qword [r14]
mov rdx, rdi
mov rcx, rbx
call fcn.180004ea0
lea rcx, [rsi + 0x48]
call fcn.1800319c0
xor edi, edi
cmp qword [rsi + 0x30], rdi
jne 0x180030c9d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803e7600]
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 0x180030bf1
mov word [rbp + 0x3b0], di
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180030bb0
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x28]
call fcn.180004ea0
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x180030bf1
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 0x180030c45
mov rax, rbx
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180030c08
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x10]
cmp word [rax + rcx*2 - 2], 0x5c
je 0x180030c45
cmp rcx, rdx
jae 0x180030c36
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 8
jb 0x180030c2d
mov rax, qword [rbx]
mov dword [rax + rcx*2], 0x5c
jmp 0x180030c45
mov r9d, 0x5c
mov rcx, rbx
call fcn.180032180
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180030c8a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180030c85
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180030c85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], di
cmp qword [rsi + 0xb0], 0
je 0x180030d96
mov rax, rdi
xchg qword [rsi + 0x130], rax
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1803e7600]
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 0x180030d12
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180030d04
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 0x180030d45
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x180030d37
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.180056160
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0xb8]
call fcn.180056360
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.1803868f0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret