Function at 0x14005133b
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x158
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], 0xfffffffffffffffe
cmp qword [0x1401aeaa0], 0
jne 0x1400515e2
mov ecx, 0x18
call fcn.1400e7770
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401aeaa0], rax
mov rdi, qword [0x14019f918]
cmp qword [rdi + 0x10], 0
je 0x1400513f9
cmp qword [rdi + 0x18], 0x10
jb 0x1400513a1
mov rdi, qword [rdi]
lea rbx, [rbp - 0x60]
mov qword [rbx], 0
movaps xmm0, xmmword [section..rdata]
movups xmmword [rbx + 0x10], xmm0
mov byte [rbx], 0
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, rbx
mov rdx, rdi
mov r8, rax
call fcn.14000136e
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x14005148c
mov qword [rdx], 0
xorps xmm0, xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
jmp 0x140051584
mov rcx, rsi
call fcn.1400516c9
lea rcx, [rbp - 0x60]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x140051529
mov rsi, qword [0x1401aeaa0]
lea rdi, [rbp + 0xb0]
mov qword [rdi], 0
movaps xmm0, xmmword [section..rdata]
movups xmmword [rdi + 0x10], xmm0
mov byte [rdi], 0
lea rbx, [rbp - 0x60]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.14000136e
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x1400514d5
mov qword [rdx], 0
xorps xmm0, xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmm0, xmmword [rbp + 0xb0]
movups xmm1, xmmword [rbp + 0xc0]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
add qword [rsi + 8], 0x20
jmp 0x140051529
lea r8, [rbp - 0x60]
mov rcx, rsi
call fcn.14000c6e8
mov rax, qword [rbp - 0x48]
cmp rax, 0x10
jb 0x1400515e2
mov rcx, qword [rbp - 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400515dd
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jb 0x1400515d3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
lea r8, [rbp + 0xb0]
mov rcx, rsi
call fcn.14000c6e8
mov rax, qword [rbp + 0xc8]
cmp rax, 0x10
jb 0x140051529
mov rcx, qword [rbp + 0xb0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140051524
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x1400515fa
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.1400e7768
mov rsi, qword [0x1401aeaa0]
lea rcx, [rbp + 0xb0]
mov qword [rcx], 0
movaps xmm0, xmmword [section..rdata]
movups xmmword [rcx + 0x10], xmm0
mov byte [rcx], 0
lea rdx, [0x140140db6]
mov r8d, 2
call fcn.14000136e
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x140051592
mov qword [rdx], 0
xorps xmm0, xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmm0, xmmword [rbp + 0xb0]
movups xmm1, xmmword [rbp + 0xc0]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
add qword [rsi + 8], 0x20
jmp 0x1400515e2
lea r8, [rbp + 0xb0]
mov rcx, rsi
call fcn.14000c6e8
mov rax, qword [rbp + 0xc8]
cmp rax, 0x10
jb 0x1400515e2
mov rcx, qword [rbp + 0xb0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400515dd
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x1400515f5
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.1400e7768
mov rax, qword [0x1401aeaa0]
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3