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

Disassembly:
push 0xffffffffffffffff
push 0x44c712
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x638
mov eax, dword [0x46420c]
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 0x44fef0
push edx
call fcn.0042be5b
mov esi, dword [esp + 0x65c]
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
push eax
lea eax, [esp + 0x23c]
push eax
call fcn.0042be5b
lea ecx, [esp + 0x38]
push 0x44fef0
push ecx
call fcn.0042be5b
mov eax, dword [edi]
push eax
lea edx, [esp + 0x44]
push edx
call fcn.0042be5b
lea eax, [esp + 0x48]
push 0x451204
push eax
call fcn.0042be5b
add esp, 0x28
lea ecx, [esi + 0x14]
push ecx
lea edx, [esi + 0x48]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00408560
push edi
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x658], 0
call fcn.00408560
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 0x40babf
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 0x40bae3
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 [0x46532c]
mov eax, dword [edx + 0x14]
add eax, 0x224
push eax
push 0x451364
lea ecx, [esp + 0x28]
push ecx
call fcn.00402830
lea edx, [esi + 0x40]
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x658], 1
call fcn.00408560
push 0x45135c
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x658], 2
call fcn.00403e70
add esi, 0x44
push esi
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x658], 3
call fcn.00408560
mov eax, dword [eax]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0042be85
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 0x40bb8f
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 0x40bbb4
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 0x40bbd9
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 0x40bbfd
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 0x40bc62
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 0x40bc69
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4512f0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40bc69
xor eax, eax
jmp 0x40bd4d
mov edi, dword [edi]
sub edi, 0x10
push edi
call fcn.00402340
add eax, 0x10
add esp, 4
mov dword [esp + 0xc], eax
push 0x44fd64
push 0x4512ec
lea ecx, [esp + 0x14]
mov dword [esp + 0x654], 4
call fcn.0040b5e0
push str.OneSetup
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00403e70
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x650], 5
call fcn.00402760
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 0x40bce7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x438]
push eax
call fcn.0042baa6
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 0x40bd48
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.0042b3a1
add esp, 0x644
ret 4