Function at 0x140009470
Capabilities:
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10e0]
mov eax, 0x11e0
call fcn.14007db80
sub rsp, rax
mov rax, qword [0x14009d010]
xor rax, rsp
mov qword [rbp + 0x10d0], rax
mov rsi, rcx
call fcn.140009130
xor r14d, r14d
mov qword [rbp + 0x10], r14
movabs r12, 0xbcdacc0c0d66a6eb
mov qword [rbp + 0x80], r12
movabs r15, 0x4707b145e59e4e8c
mov qword [rbp + 0x88], r15
movabs rax, 0x13da996e2d65b35
mov qword [rbp + 0x90], rax
movabs r13, 0xd2b6590f1cf2147e
mov qword [rbp + 0x98], r13
movabs rax, 0x1b84add8f07c19bf
mov qword [rbp + 0xa0], rax
movabs rax, 0xe38b7b1182bf6a20
mov qword [rbp + 0xa8], rax
movabs rax, 0x436981e2f3c7aaa9
mov qword [rbp + 0xb0], rax
movabs rax, 0x7330c02bc3ab6d82
mov qword [rbp + 0xb8], rax
movabs rax, 0x366d339408cbfb73
mov qword [rbp + 0xc0], rax
movabs rcx, 0x6f6b9eedbddd9bf4
mov qword [rbp + 0xc8], rcx
movabs rax, 0xbcaecc7f0d1fa6b8
mov qword [rbp - 0x80], rax
movabs rax, 0x4744b119e5f34ee9
mov qword [rbp - 0x78], rax
movabs rax, 0x158a9e4e2a45b40
mov qword [rbp - 0x70], rax
movabs rax, 0xd2d9594c1c861410
mov qword [rbp - 0x68], rax
movabs rax, 0x1bebadaaf00819d1
mov qword [rbp - 0x60], rax
movabs rax, 0xe3ff7b7482ec6a4c
mov qword [rbp - 0x58], rax
movabs rax, 0x431b8187f394aaf5
mov qword [rbp - 0x50], rax
movabs rax, 0x7355c048c3c26df4
mov qword [rbp - 0x48], rax
movabs rax, 0x366d33940897fb00
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rcx
movdqa xmm0, xmmword [rbp - 0x80]
pxor xmm0, xmmword [rbp + 0x80]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [rbp - 0x70]
pxor xmm1, xmmword [rbp + 0x90]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmm0, xmmword [rbp - 0x60]
pxor xmm0, xmmword [rbp + 0xa0]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [rbp - 0x50]
pxor xmm1, xmmword [rbp + 0xb0]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmm0, xmmword [rbp - 0x40]
pxor xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
lea rax, [rbp - 0x80]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140009670
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.140004a70
nop
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x140009690
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140004ba0
mov qword [rbp + 0x20], r14
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140009715
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009710
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009b72
call fcn.140052aa4
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
cmp qword [rbp + 0x30], 0
je 0x140009b23
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140009b23
mov rbx, qword [rbp + 0x10]
lea rdx, [rbp + 0xd0]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], r15
movabs rax, 0xbca9cc750d15a6c5
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r15
movdqa xmm0, xmmword [rsp + 0x70]
pxor xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rbp + 0x60], r14
movdqa xmm0, xmmword [0x1400927c0]
movdqu xmmword [rbp + 0x70], xmm0
mov word [rbp + 0x60], r14w
lea rax, [rbp + 0xd0]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x1400097e0
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x60]
call fcn.140004a70
nop
mov qword [rsp + 0x50], r14
movdqa xmm0, xmmword [0x1400927c0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
mov r8d, 4
lea rdx, [0x1400918a8]
lea rcx, [rsp + 0x50]
call fcn.140004a70
nop
lea r9, [rbp + 0x60]
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x10]
call fcn.14000a410
nop
mov r8, rdi
inc r8
cmp word [rsi + r8*2], 0
jne 0x140009843
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.140004ba0
mov qword [rbp - 0x30], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rax, [rsp + 0x70]
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140009890
mov r8, rdi
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.140004ba0
mov qword [rbp + 0x40], r14
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x50], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rcx, [rbp - 0x30]
call fcn.1400049c0
nop
lea rcx, [rbp - 0x10]
call fcn.1400049c0
nop
lea rcx, [rsp + 0x50]
call fcn.1400049c0
nop
lea rcx, [rbp + 0x60]
call fcn.1400049c0
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], r15
movabs r14, 0x13da996e2d65b35
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x78], r13
movabs rax, 0xbcbdcc6d0d0ba6a2
mov qword [rsp + 0x50], rax
movabs rax, 0x4773b124e5ce4ee9
mov qword [rsp + 0x58], rax
movabs rax, 0x13da996e2d65b5d
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r13
movdqa xmm0, xmmword [rsp + 0x50]
pxor xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [rsp + 0x60]
pxor xmm1, xmmword [rbp + 0x70]
movdqa xmmword [rsp + 0x60], xmm1
mov eax, dword [rbp + 0x50]
add eax, eax
lea rcx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rcx, qword [rbp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], r15
movabs rax, 0xbcbfcc7c0d1fa6bf
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r15
movdqa xmm0, xmmword [rsp + 0x70]
pxor xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rsp + 0x70], xmm0
mov dword [rbp + 0x18], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or edi, eax
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x78], r13
movabs rax, 0xbcb5cc7e0d14a6ae
mov qword [rsp + 0x50], rax
movabs rax, 0x4769b12ae5dd4efe
mov qword [rsp + 0x58], rax
movabs rax, 0x151a9f9e2a45b41
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r13
movdqa xmm0, xmmword [rsp + 0x50]
pxor xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [rsp + 0x60]
pxor xmm1, xmmword [rbp + 0x70]
movdqa xmmword [rsp + 0x60], xmm1
mov dword [rbp + 0x18], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or edi, eax
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], r15
movabs rax, 0xbca8cc6d0d12a6b8
mov qword [rsp + 0x70], rax
movabs rax, 0x4707b145e59e4ef8
mov qword [rsp + 0x78], rax
movdqa xmm0, xmmword [rsp + 0x70]
pxor xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rsp + 0x70], xmm0
mov dword [rbp + 0x18], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or edi, eax
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x140009b16
mov rcx, rsi
call fcn.140009130
xor bl, bl
jmp 0x140009b18
mov bl, 1
lea rcx, [rbp + 0x40]
call fcn.1400049c0
jmp 0x140009b25
xor bl, bl
mov r8, qword [rbp + 0x38]
cmp r8, 8
jb 0x140009b3f
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.140004ca0
movzx eax, bl
mov rcx, qword [rbp + 0x10d0]
xor rcx, rsp
call fcn.140052a40
lea r11, [rsp + 0x11e0]
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
call fcn.14005ee60
nop
int3