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

Disassembly:
push 0xffffffffffffffff
push 0x4409f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x638
mov eax, dword [0x4551e4]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
mov dword [esp + 0x640], eax
push 0x104
lea eax, [esp + 0x234]
push eax
call esi
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call esi
lea edx, [esp + 0x230]
push 0x443cf8
push edx
call fcn.00423ed7
mov esi, dword [esp + 0x65c]
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
push eax
lea eax, [esp + 0x23c]
push eax
call fcn.00423ed7
lea ecx, [esp + 0x38]
push 0x443cf8
push ecx
call fcn.00423ed7
mov eax, dword [edi]
push eax
lea edx, [esp + 0x44]
push edx
call fcn.00423ed7
lea eax, [esp + 0x48]
push 0x444e44
push eax
call fcn.00423ed7
add esp, 0x28
lea ecx, [esi + 0x14]
push ecx
lea edx, [esi + 0x48]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00407fd0
push edi
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x658], 0
call fcn.00407fd0
mov eax, dword [eax]
push 0
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409abf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x64c], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ae3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 5
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [0x45616c]
mov eax, dword [edx + 0x14]
add eax, 0x1c
push eax
push 0x444fa4
lea ecx, [esp + 0x28]
push ecx
call fcn.00406a70
lea edx, [esi + 0x40]
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x658], 1
call fcn.00407fd0
push 0x444f9c
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x658], 2
call fcn.00403020
add esi, 0x44
push esi
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x658], 3
call fcn.00407fd0
mov eax, dword [eax]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.00423f01
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x64c], 2
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x64c], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x64c], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x409c60
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push eax
push str.RunOnce
push edx
call esi
test eax, eax
je 0x409c67
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x444f30
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x409c67
xor eax, eax
jmp 0x409d4b
mov edi, dword [edi]
sub edi, 0x10
push edi
call fcn.00402510
add eax, 0x10
add esp, 4
mov dword [esp + 0xc], eax
push 0x443d70
push 0x444f2c
lea ecx, [esp + 0x14]
mov dword [esp + 0x654], 4
call fcn.004095e0
push str.OneSetup
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00403020
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x650], 5
call fcn.00402f50
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x64c], 4
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ce5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x438]
push eax
call fcn.00423ded
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
shl eax, 1
push eax
lea ecx, [esp + 0x43c]
push ecx
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
lea eax, [esi - 0x10]
mov dword [esp + 0x64c], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x409d46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x644]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x638]
pop ebp
call fcn.00423492
add esp, 0x644
ret 4