Function at 0x140013cb0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x1400512d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r15, rdx
mov r12, rcx
mov qword [rsp + 0x38], rdx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov eax, dword [0x140055284]
test al, 1
jne 0x140013d49
or eax, 1
mov dword [0x140055284], eax
call fcn.1400011d0
mov rcx, rax
mov eax, r13d
test rcx, rcx
setne al
test eax, eax
jne 0x140013d2c
mov ecx, 0x80004005
call fcn.1400047a0
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x140055288], rax
lea rcx, [0x1400374c0]
call fcn.140021820
mov rax, qword [0x140055288]
or rsi, 0xffffffffffffffff
cmp dword [rax - 0x10], 0
jne 0x140013ea7
mov word [rsp + 0x40], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.140024640
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rax, [rsp + 0x40]
mov rbx, rsi
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140013d90
test ebx, ebx
jne 0x140013e0a
mov rax, qword [0x140055288]
lea rdx, [rax - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140013ea7
cmp dword [rdx + 0x10], 0
jge 0x140013de1
cmp dword [rax - 0xc], 0
jge 0x140013dcd
mov ecx, 0x80070057
call fcn.1400047a0
int3
mov dword [rax - 0x10], r13d
mov rax, qword [0x140055288]
mov word [rax], r13w
jmp 0x140013ea7
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140013df1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x140055288], rax
jmp 0x140013ea7
mov rcx, qword [0x140055288]
mov ebp, dword [rcx - 0x10]
lea rdi, [rsp + 0x40]
sub rdi, rcx
sar rdi, 1
test ebx, ebx
jns 0x140013e2e
mov ecx, 0x80070057
call fcn.1400047a0
int3
mov edx, 1
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, ebx
or eax, edx
jge 0x140013e54
mov edx, ebx
lea rcx, [0x140055288]
call fcn.14000e980
mov rcx, qword [0x140055288]
movsxd rax, ebx
movsxd rdx, dword [rcx - 0xc]
lea r14, [rax + rax]
add rdx, rdx
mov r9, r14
cmp rdi, rbp
ja 0x140013e75
lea r8, [rcx + rdi*2]
call fcn.14002205c
jmp 0x140013e7f
lea r8, [rsp + 0x40]
call fcn.140022da0
mov rax, qword [0x140055288]
cmp ebx, dword [rax - 0xc]
jg 0x140013e9c
mov dword [rax - 0x10], ebx
mov rax, qword [0x140055288]
mov word [r14 + rax], r13w
jmp 0x140013ea7
mov ecx, 0x80070057
call fcn.1400047a0
int3
test byte [0x1400512b0], 2
je 0x140013efa
mov r8, r15
lea rdx, [0x140055288]
lea rcx, [rsp + 0x28]
call fcn.14000cea0
nop
mov r9, qword [rax]
lea r8, [0x140041dc0]
mov edx, 2
lea rcx, str.GetWindowsPath
call fcn.1400206a0
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140013efa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r8, r15
lea rdx, [0x140055288]
mov rcx, r12
call fcn.14000cea0
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140013f25
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rax, r12
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140021670
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret