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

Disassembly:
push 0xffffffffffffffff
push 0x446252
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x638
mov eax, dword [0x45b1e4]
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 0x448e8c
push edx
call fcn.00429220
mov esi, dword [esp + 0x65c]
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
push eax
lea eax, [esp + 0x23c]
push eax
call fcn.00429220
lea ecx, [esp + 0x38]
push 0x448e8c
push ecx
call fcn.00429220
mov eax, dword [edi]
push eax
lea edx, [esp + 0x44]
push edx
call fcn.00429220
lea eax, [esp + 0x48]
push 0x44a21c
push eax
call fcn.00429220
add esp, 0x28
lea ecx, [esi + 0x14]
push ecx
lea edx, [esi + 0x48]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00407c30
push edi
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x658], 0
call fcn.00407c30
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 0x40b69f
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 0x40b6c3
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 [0x45c16c]
mov eax, dword [edx + 0x14]
add eax, 0x1c
push eax
push 0x44a37c
lea ecx, [esp + 0x28]
push ecx
call fcn.00407ce0
lea edx, [esi + 0x40]
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x658], 1
call fcn.00407c30
push 0x44a374
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x658], 2
call fcn.004037a0
add esi, 0x44
push esi
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x658], 3
call fcn.00407c30
mov eax, dword [eax]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0042924a
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 0x40b76d
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 0x40b792
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 0x40b7b7
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 0x40b7db
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 0x40b840
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 0x40b847
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x44a308
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b847
xor eax, eax
jmp 0x40b92b
mov edi, dword [edi]
sub edi, 0x10
push edi
call fcn.00402c10
add eax, 0x10
add esp, 4
mov dword [esp + 0xc], eax
push 0x448de4
push 0x44a304
lea ecx, [esp + 0x14]
mov dword [esp + 0x654], 4
call fcn.0040b1c0
push str.OneSetup
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004037a0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x650], 5
call fcn.004036d0
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 0x40b8c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x438]
push eax
call fcn.004290eb
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 0x40b926
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.00428731
add esp, 0x644
ret 4