Function at 0x180007480
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 [0x1800c0ef0]
movdqu xmmword [rbp - 0x80], xmm1
mov byte [rsp + 0x70], sil
lea rcx, [0x1800c09f8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1800076ce
lea rax, [0x1800bfcb8]
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, [0x1800bfcd8]
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.18000bd00
nop
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea r14, [0x1800bfef8]
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.18000b970
nop
lea r8d, [rsi + 1]
lea rdx, [0x1800c09f8]
lea rcx, [rbp - 0x40]
call fcn.18000b810
lea ebx, [rsi + 6]
lea edi, [rsi + 2]
test rax, rax
jne 0x18000759c
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 0x180007916
cmp qword [rbp + 0x40], 0
je 0x1800075e7
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.180010a60
lea rcx, [rbp - 0x40]
call fcn.18000b700
test rax, rax
jne 0x1800075e7
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 0x18000796d
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, [0x1800c0a18]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x180007670
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, [0x1800c0a38]
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.18000aec0
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, [0x1800bf888]
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x60]
call fcn.18003ef40
nop
jmp 0x1800078c1
lea rdx, [rbp + 0x110]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1800078c1
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 0x180007710
lea rdx, [rbp + 0x110]
lea rcx, [rsp + 0x50]
call fcn.18000d8a0
nop
mov r8d, 0x18
lea rdx, [0x1800c0a50]
lea rcx, [rsp + 0x50]
call fcn.18000baf0
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 0x1800077ad
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800077a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800079c3
call fcn.18003f7ac
movdqa xmm0, xmmword [0x1800c0ef0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.18000a0e0
nop
cmp qword [rbp + 0x38], 0
je 0x18000781e
lea rcx, [rbp - 0x50]
call fcn.18000d250
lea rcx, [rbp - 0x48]
call fcn.18000b700
test rax, rax
jne 0x18000781e
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 0x1800079c9
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [0x1800bfa38]
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.18000aec0
mov rax, qword [rbp - 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [0x1800bff18]
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, [0x1800bf888]
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
call fcn.18003ef40
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x1800078c1
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800078bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007a20
call fcn.18003f7ac
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x1800078f9
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800078f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007910
call fcn.18003f7ac
mov rbx, qword [rsp + 0x360]
add rsp, 0x320
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18004805c
nop
test dl, 4
je 0x180007924
lea rbx, [0x1800c0048]
jmp 0x180007939
test dil, dl
lea rbx, [0x1800c0060]
lea rax, [0x1800c0078]
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, [0x1800c5dd8]
lea rcx, [rbp + 0xe8]
call fcn.18004176c
nop
test al, 4
je 0x18000797a
lea rbx, [0x1800c0048]
jmp 0x18000798e
test al, 2
lea rbx, [0x1800c0060]
lea rax, [0x1800c0078]
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, [0x1800c5dd8]
lea rcx, [rbp + 0xc0]
call fcn.18004176c
nop
call fcn.18004805c
nop
test al, 4
je 0x1800079d6
lea rbx, [0x1800c0048]
jmp 0x1800079eb
test dil, al
lea rbx, [0x1800c0060]
lea rax, [0x1800c0078]
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, [0x1800c5dd8]
lea rcx, [rbp + 0xc0]
call fcn.18004176c
nop
call fcn.18004805c
int3