Function at 0x1800070f0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
xor esi, esi
mov dword [rbp + 0x250], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1800c5210]
movdqu xmmword [rbp - 0x80], xmm1
mov byte [rsp + 0x70], sil
lea rcx, [0x1800c4ae0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18000733e
lea rax, [0x1800c3c58]
mov qword [rbp - 0x50], rax
mov qword [rbp + 0x68], rsi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], rsi
mov dword [rbp + 0x250], 1
lea r15, [0x1800c3c78]
mov qword [rbp + 0x60], r15
mov dword [rbp + 0x5c], 0x98
mov qword [rbp - 0x48], rsi
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x60]
call fcn.18000b9a0
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea r14, [0x1800c3e98]
mov qword [rbp + rcx - 0x50], r14
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], r8d
lea rcx, [rbp - 0x40]
call fcn.18000b610
nop
lea r8d, [rsi + 1]
lea rdx, [0x1800c4ae0]
lea rcx, [rbp - 0x40]
call fcn.18000b4b0
lea ebx, [rsi + 6]
lea edi, [rsi + 2]
test rax, rax
jne 0x18000720c
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov eax, ebx
cmp qword [rbp + rcx - 8], rsi
cmovne eax, edi
or eax, dword [rbp + rcx - 0x40]
and eax, 0x17
mov dword [rbp + rcx - 0x40], eax
mov edx, dword [rbp + rcx - 0x3c]
and edx, eax
jne 0x180007586
cmp qword [rbp + 0x40], 0
je 0x180007257
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.180010c90
lea rcx, [rbp - 0x40]
call fcn.18000b3a0
test rax, rax
jne 0x180007257
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx - 8], 0
cmovne ebx, edi
or ebx, dword [rbp + rcx - 0x40]
and ebx, 0x17
mov dword [rbp + rcx - 0x40], ebx
mov eax, dword [rbp + rcx - 0x3c]
and eax, ebx
jne 0x1800075dd
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x258]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1800c4af8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1800072e0
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rcx, qword [rsp + 0x70]
mov eax, dword [rbp - 0x80]
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x1800c4b18]
mov rcx, qword [rbp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r14
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x40]
call fcn.18000ab60
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x50], r15
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x54], edx
lea rax, [0x1800c3828]
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x60]
call fcn.180043070
nop
jmp 0x180007531
lea rdx, [rbp + 0x110]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x180007531
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [rbp + 0x110]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180007380
lea rdx, [rbp + 0x110]
lea rcx, [rsp + 0x50]
call fcn.18000e200
nop
mov r8d, 0x1f
lea rdx, [0x1800c4b30]
lea rcx, [rsp + 0x50]
call fcn.18000b790
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x18000741d
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007418
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007633
call fcn.1800438dc
movdqa xmm0, xmmword [0x1800c5210]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.180009d80
nop
cmp qword [rbp + 0x38], 0
je 0x18000748e
lea rcx, [rbp - 0x50]
call fcn.18000d500
lea rcx, [rbp - 0x48]
call fcn.18000b3a0
test rax, rax
jne 0x18000748e
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
mov ebx, 6
mov edi, 2
cmp qword [rbp + rcx - 8], 0
cmovne ebx, edi
or ebx, dword [rbp + rcx - 0x40]
and ebx, 0x17
mov dword [rbp + rcx - 0x40], ebx
mov eax, dword [rbp + rcx - 0x3c]
and eax, ebx
jne 0x180007639
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [0x1800c39d8]
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x54], edx
lea rcx, [rbp - 0x48]
call fcn.18000ab60
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [0x1800c3eb8]
mov qword [rbp + rcx - 0x50], rax
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x54], edx
lea rax, [0x1800c3828]
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
call fcn.180043070
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x180007531
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000752b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007690
call fcn.1800438dc
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x180007569
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007564
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007580
call fcn.1800438dc
mov rbx, qword [rsp + 0x360]
add rsp, 0x320
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18004c18c
nop
test dl, 4
je 0x180007594
lea rbx, [0x1800c3fe8]
jmp 0x1800075a9
test dil, dl
lea rbx, [0x1800c4000]
lea rax, [0x1800c4018]
cmove rbx, rax
mov edx, 1
lea rcx, [rbp - 0x70]
call fcn.180001640
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0xe8]
call fcn.180001ef0
lea rdx, [0x1800ca1b8]
lea rcx, [rbp + 0xe8]
call fcn.18004589c
nop
test al, 4
je 0x1800075ea
lea rbx, [0x1800c3fe8]
jmp 0x1800075fe
test al, 2
lea rbx, [0x1800c4000]
lea rax, [0x1800c4018]
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.180001640
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0xc0]
call fcn.180001ef0
lea rdx, [0x1800ca1b8]
lea rcx, [rbp + 0xc0]
call fcn.18004589c
nop
call fcn.18004c18c
nop
test al, 4
je 0x180007646
lea rbx, [0x1800c3fe8]
jmp 0x18000765b
test dil, al
lea rbx, [0x1800c4000]
lea rax, [0x1800c4018]
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.180001640
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0xc0]
call fcn.180001ef0
lea rdx, [0x1800ca1b8]
lea rcx, [rbp + 0xc0]
call fcn.18004589c
nop
call fcn.18004c18c
int3