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

Disassembly:
push 0xffffffffffffffff
push 0x437ef7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
mov eax, dword [0x44a1e0]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
mov dword [esp + 0x32c], eax
push 0x104
lea eax, [esp + 0x128]
push eax
call esi
push 0x104
lea ecx, [esp + 0x24]
push ecx
call esi
lea edi, [esp + 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406a42
mov dx, word [0x43ac14]
push ebx
push ebp
mov ebp, dword [esp + 0x348]
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, ebx
mov word [edi], dx
mov ecx, eax
jmp 0x406a70
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406a70
lea edi, [esp + 0x12c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406a83
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406aa0
mov ax, word [0x43ac14]
mov word [edi], ax
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406ab5
lea edi, [esp + 0x28]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406ac3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406ae0
mov cx, word [0x43b1c4]
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp + 0x3c]
mov word [edi], cx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00406370
mov edi, dword [esp + 0x10]
push edi
push eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x34c], 0
call fcn.00406370
mov eax, dword [eax]
push 0
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or esi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x340], esi
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 5
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edx, dword [0x44b18c]
mov eax, dword [edx + 0x14]
add eax, 4
push eax
push 0x43b28c
lea ecx, [esp + 0x2c]
push ecx
call fcn.00406420
lea edx, [ebp + 0x34]
push edx
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x34c], 1
call fcn.00406370
push 0x43b288
push eax
lea ecx, [esp + 0x20]
mov bl, 2
push ecx
mov byte [esp + 0x34c], bl
call fcn.00404b60
add ebp, 0x38
push ebp
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x34c], 3
call fcn.00406370
mov eax, dword [eax]
lea ecx, [esp + 0x230]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x406bf7
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x340], bl
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebp
pop ebx
jg 0x406c44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x338], 1
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x338], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x406c8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x406cf0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push eax
push str.RunOnce
push edx
call esi
test eax, eax
je 0x406cf7
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.RunOnce
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x406cf7
xor eax, eax
jmp 0x406dc4
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00401f20
add eax, 0x10
add esp, 4
mov dword [esp + 8], eax
push 0x43aa4f
push 0x43b250
lea ecx, [esp + 0x10]
mov dword [esp + 0x340], 4
call fcn.00406170
add eax, str.OneSetup
jne 0x406d35
xor ecx, ecx
jmp 0x406d49
mov ecx, eax
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x406d40
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.00402330
lea eax, [esp + 0x228]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406d60
mov esi, dword [esp + 8]
sub eax, edx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x22c]
push edx
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call edi
lea eax, [esi - 0x10]
mov dword [esp + 0x338], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406dbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x330]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x328]
pop esi
call fcn.0041c40e
add esp, 0x334
ret 4