Function at 0x140159590
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r14, rcx
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [rbp - 0x30]
call fcn.140155ea0
mov rbx, rax
test rax, rax
je 0x140159bcc
xor r12d, r12d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
call fcn.14000a340
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
mov rdx, qword [r14 + 8]
mov rcx, rbx
call fcn.140156550
cmp qword [rsp + 0x58], r12
jbe 0x140159b6f
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
call fcn.14012bf50
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140159645
mov qword [rsp + 0x78], r12
lea r13, [0x140348ca0]
test ebx, ebx
jne 0x140159666
mov qword [rsp + 0x70], r13
jmp 0x14015968c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x70]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.140200570
nop
lea rdx, [rsp + 0x70]
mov rcx, qword [r14 + 8]
call fcn.1400f9c50
mov r15, rax
cmp dword [rsp + 0x78], 0
jle 0x1401596bb
mov rcx, qword [rsp + 0x70]
call fcn.1402b9c20
mov rcx, qword [rsp + 0x50]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x1401599d9
nop dword [rax]
mov rsi, qword [rbx + 0x20]
test rsi, rsi
jne 0x1401596e3
mov edi, r12d
mov qword [rsp + 0x38], r12
jmp 0x140159703
or rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x1401596f0
mov qword [rsp + 0x38], r12
test edi, edi
jne 0x14015970a
mov qword [rsp + 0x30], r13
jmp 0x14015972f
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1401ff260
movsxd r9, edi
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
mov r8d, 1
lea rdx, [0x140347f58]
lea rcx, [rsp + 0x30]
call fcn.1401ff110
test al, al
je 0x14015992f
mov rdi, qword [rsp + 0x40]
mov r8, qword [rdi + 8]
mov r11, rdi
cmp byte [r8 + 0x19], 0
jne 0x1401597e3
mov r10, qword [rsp + 0x30]
mov rax, qword [r8 + 0x20]
mov r9, r10
sub r9, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r9]
sub edx, ecx
jne 0x140159794
add rax, 2
test ecx, ecx
jne 0x140159780
test edx, edx
jns 0x14015979e
mov r8, qword [r8 + 0x10]
jmp 0x1401597a4
mov r11, r8
mov r8, qword [r8]
cmp byte [r8 + 0x19], 0
je 0x140159773
cmp r11, rdi
je 0x1401597e3
mov rdx, qword [r11 + 0x20]
sub rdx, r10
nop word [rax + rax]
movzx ecx, word [r10]
movzx eax, word [r10 + rdx]
sub ecx, eax
jne 0x1401597d5
add r10, 2
test eax, eax
jne 0x1401597c0
test ecx, ecx
js 0x1401597e3
mov qword [rbp - 0x58], r11
lea rax, [rbp - 0x58]
jmp 0x1401597eb
mov qword [rbp - 0x60], rdi
lea rax, [rbp - 0x60]
cmp qword [rax], rdi
jne 0x14015988a
mov qword [rbp - 0x78], r12
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x140159806
mov qword [rbp - 0x80], r13
jmp 0x14015982e
lea rcx, [rbp - 0x80]
call fcn.1401ff260
movsxd r9, dword [rsp + 0x3c]
mov eax, dword [rbp - 0x78]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x30]
mov rcx, qword [rbp - 0x80]
call fcn.1402bd21c
mov edx, dword [rsp + 0x3c]
lea rcx, [rbp - 0x80]
call fcn.140200570
nop
mov rdx, qword [rbx + 0x28]
lea rcx, [rbp - 0x70]
call fcn.1401fd200
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.14015a570
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x40]
call fcn.14015a5d0
nop
cmp dword [rbp - 0x68], 0
jle 0x14015987b
mov rcx, qword [rbp - 0x70]
call fcn.1402b9c20
cmp dword [rbp - 0x78], 0
jle 0x14015988a
mov rcx, qword [rbp - 0x80]
call fcn.1402b9c20
test r15, r15
je 0x14015995d
mov rsi, qword [rbx + 0x28]
test rsi, rsi
jne 0x1401598a6
mov edi, r12d
mov qword [rsp + 0x68], r12
jmp 0x1401598c3
or rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x1401598b0
mov qword [rsp + 0x68], r12
test edi, edi
jne 0x1401598ca
mov qword [rsp + 0x60], r13
jmp 0x1401598ef
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.1401ff260
movsxd r9, edi
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
mov r8, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1402bd21c
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140200570
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x30]
mov rdx, r15
mov rcx, r14
call fcn.140159c30
nop
cmp dword [rsp + 0x68], 0
jle 0x14015995d
mov rcx, qword [rsp + 0x60]
call fcn.1402b9c20
jmp 0x14015995d
mov r8b, 1
lea rdx, [rsp + 0x30]
mov rcx, qword [r14 + 8]
call fcn.1400f92f0
mov rdi, rax
mov rdx, qword [rbx + 0x28]
mov rcx, rax
call fcn.1400e3fa0
mov r8, qword [rdi]
mov rdx, qword [r14 + 8]
mov rcx, rdi
call qword [r8 + 0x70]
mov rcx, qword [rbx + 0x20]
call fcn.1402b9c20
mov rcx, qword [rbx + 0x28]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x38], 0
jle 0x140159981
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
cmp byte [rbx + 0x19], 0
jne 0x1401599ce
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1401599ae
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1401599ce
nop dword [rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1401599a0
jmp 0x1401599ce
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1401599cb
cmp rbx, qword [rax + 0x10]
jne 0x1401599cb
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1401599b8
mov rbx, rax
cmp rbx, qword [rsp + 0x50]
jne 0x1401596d0
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140159a7c
nop word [rax + rax]
lea rdx, [rbx + 0x20]
mov r8b, 1
mov rcx, qword [r14 + 8]
call fcn.1400f92f0
mov rdi, rax
mov rdx, qword [rbx + 0x30]
mov rcx, rax
call fcn.1400e3fa0
mov r8, qword [rdi]
mov rdx, qword [r14 + 8]
mov rcx, rdi
call qword [r8 + 0x70]
cmp byte [rbx + 0x19], 0
jne 0x140159a6e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140159a4e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140159a6e
nop dword [rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140159a40
jmp 0x140159a6e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140159a6b
cmp rbx, qword [rax + 0x10]
jne 0x140159a6b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140159a58
mov rbx, rax
mov rdi, qword [rsp + 0x40]
cmp rbx, rdi
jne 0x1401599f0
mov rbx, qword [rdi]
cmp rbx, rbx
jne 0x140159af2
mov rbx, qword [rdi + 8]
mov rsi, rbx
cmp byte [rbx + 0x19], 0
jne 0x140159ad6
mov rdx, qword [rsi + 0x10]
lea rcx, [rsp + 0x40]
call fcn.14015a500
mov rsi, qword [rsi]
cmp dword [rbx + 0x38], 0
jle 0x140159ab1
mov rcx, qword [rbx + 0x30]
call fcn.1402b9c20
cmp dword [rbx + 0x28], 0
jle 0x140159ac0
mov rcx, qword [rbx + 0x20]
call fcn.1402b9c20
mov rcx, rbx
call fcn.1402177e0
mov rbx, rsi
cmp byte [rsi + 0x19], 0
je 0x140159a91
mov rdi, qword [rsp + 0x40]
mov qword [rdi + 8], rdi
mov rax, qword [rsp + 0x40]
mov qword [rax], rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x48], r12
jmp 0x140159b61
cmp rbx, rdi
je 0x140159b66
mov r8, rbx
cmp byte [rbx + 0x19], 0
jne 0x140159b4e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140159b2e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140159b4e
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140159b20
jmp 0x140159b4e
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140159b4b
cmp rbx, qword [rax + 0x10]
jne 0x140159b4b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140159b38
mov rbx, rax
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.14015a190
cmp rbx, rdi
jne 0x140159af7
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.1402177e0
nop
mov rax, qword [rsp + 0x50]
mov rdi, qword [rax + 8]
mov rbx, rdi
cmp byte [rdi + 0x19], 0
jne 0x140159ba8
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x50]
call fcn.140009de0
mov rbx, qword [rbx]
mov rcx, rdi
call fcn.1402177e0
mov rdi, rbx
cmp byte [rbx + 0x19], 0
je 0x140159b81
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x50]
mov qword [rax], rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x58], r12
mov rcx, qword [rsp + 0x50]
call fcn.1402177e0
mov al, 1
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret