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

Disassembly:
push 0xffffffffffffffff
push 0x446582
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x638
mov eax, dword [0x45c1e4]
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 0x449e8c
push edx
call fcn.004294f0
mov esi, dword [esp + 0x65c]
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
push eax
lea eax, [esp + 0x23c]
push eax
call fcn.004294f0
lea ecx, [esp + 0x38]
push 0x449e8c
push ecx
call fcn.004294f0
mov eax, dword [edi]
push eax
lea edx, [esp + 0x44]
push edx
call fcn.004294f0
lea eax, [esp + 0x48]
push 0x44b254
push eax
call fcn.004294f0
add esp, 0x28
lea ecx, [esi + 0x14]
push ecx
lea edx, [esi + 0x48]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00407ec0
push edi
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x658], 0
call fcn.00407ec0
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 0x40b9af
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 0x40b9d3
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 [0x45d16c]
mov eax, dword [edx + 0x14]
add eax, 0x1c
push eax
push 0x44b3b4
lea ecx, [esp + 0x28]
push ecx
call fcn.00407f70
lea edx, [esi + 0x40]
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x658], 1
call fcn.00407ec0
push 0x44b3ac
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x658], 2
call fcn.00403800
add esi, 0x44
push esi
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x658], 3
call fcn.00407ec0
mov eax, dword [eax]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0042951a
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 0x40ba7d
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 0x40baa2
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 0x40bac7
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 0x40baeb
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 0x40bb50
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 0x40bb57
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x44b340
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40bb57
xor eax, eax
jmp 0x40bc3b
mov edi, dword [edi]
sub edi, 0x10
push edi
call fcn.00402c50
add eax, 0x10
add esp, 4
mov dword [esp + 0xc], eax
push 0x449de4
push 0x44b33c
lea ecx, [esp + 0x14]
mov dword [esp + 0x654], 4
call fcn.0040b4d0
push str.OneSetup
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00403800
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x650], 5
call fcn.00403730
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 0x40bbd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x438]
push eax
call fcn.004293bb
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 0x40bc36
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.00428a01
add esp, 0x644
ret 4