Function at 0x180005920
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
cmp qword [0x1800fa308], 0
je 0x180005d4e
lea rdx, [rbp - 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
mov esi, 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x50], di
lea rax, [rbp - 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180005982
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x50]
call fcn.180008ed0
nop
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
mov r12, qword [rsp + 0x60]
sub rax, r12
cmp rax, 1
jb 0x180005d75
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
setae byte [rbp + 0x210]
mov r15, qword [rsp + 0x50]
cmovae rdx, r15
mov qword [rbp + 0x218], rdx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea r13, [r12 + 1]
mov rbx, rsi
lea r14, [rsp + 0x30]
movabs r8, 0x7fffffffffffffff
cmp r13, rbx
jbe 0x180005a9a
mov rbx, r13
or rbx, 7
cmp rbx, rcx
jbe 0x180005a24
mov rbx, rcx
mov rcx, 0xfffffffffffffffe
jmp 0x180005a49
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, r8
ja 0x180005d7b
add rcx, rcx
cmp rcx, 0x1000
jb 0x180005a7c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180005d7b
mov rcx, rax
call fcn.18000c984
test rax, rax
je 0x180005d87
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
mov rdx, qword [rbp + 0x218]
jmp 0x180005a95
test rcx, rcx
je 0x180005a92
call fcn.18000c984
mov r14, rax
mov rdx, qword [rbp + 0x218]
jmp 0x180005a95
mov r14, rdi
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], rbx
lea rbx, [r12 + r12]
mov r8, rbx
mov rcx, r14
call fcn.18000e9c0
mov eax, 0x5c
mov word [rbx + r14], ax
mov word [r14 + r13*2], di
mov r14, qword [0x1800fa308]
lea r9, [0x1800fa2f8]
cmp qword [0x1800fa310], 8
cmovae r9, qword [0x1800fa2f8]
mov r12, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, r12
cmp r14, rax
ja 0x180005b2c
lea rax, [r12 + r14]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rcx, 8
cmovae rbx, qword [rsp + 0x30]
lea rcx, [rbx + r12*2]
lea r8, [r14 + r14]
mov rdx, r9
call fcn.18000e9c0
lea rax, [r14 + r12]
mov word [rbx + rax*2], di
lea rax, [rsp + 0x30]
jmp 0x180005b46
mov qword [rsp + 0x20], r14
movzx r8d, byte [rbp + 0x210]
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.180009670
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rsi
mov word [rax], di
cmp byte [rbp + 0x210], 0
je 0x180005bb5
mov rdx, qword [rsp + 0x68]
lea rdx, [rdx*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x180005ba4
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005d81
mov rcx, r15
call fcn.18000c97c
movups xmm0, xmmword [rbp - 0x50]
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180005c01
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005bfc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005d87
call fcn.18000c97c
lea rax, [rsp + 0x70]
mov qword [rbp + 0x210], rax
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rsi
xor r8d, r8d
lea rdx, [0x180037378]
lea rcx, [rsp + 0x70]
call fcn.180008ed0
nop
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea r15, [rsp + 0x50]
mov r12, qword [rbp - 0x58]
cmp r12, 8
setae r13b
mov rbx, qword [rbp - 0x70]
cmovae r15, rbx
mov r14, qword [rbp - 0x60]
cmp r14, 8
jae 0x180005c6f
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x30], xmm0
jmp 0x180005cfb
mov rsi, r14
or rsi, 7
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
cmova rsi, rax
lea rcx, [rsi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x180005d6f
add rcx, rcx
cmp rcx, 0x1000
jb 0x180005cd6
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180005d6f
mov rcx, rax
call fcn.18000c984
test rax, rax
je 0x180005d8d
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x180005ce3
test rcx, rcx
je 0x180005ce3
call fcn.18000c984
mov rdi, rax
mov qword [rsp + 0x30], rdi
lea r8, [r14*2 + 2]
mov rdx, r15
mov rcx, rdi
call fcn.18000e9c0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rsi
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.180005400
nop
test r13b, r13b
je 0x180005d4e
lea rdx, [r12*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x180005d46
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005d69
mov rcx, rbx
call fcn.18000c97c
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18001448c
nop
call fcn.180001b10
nop
call fcn.180001bb0
int3
call fcn.180001b10
nop
call fcn.18001448c
nop
call fcn.18001448c
nop
call fcn.18001448c
int3