Function at 0x4024fb
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x238], ax
xor ebx, ebx
lea eax, [ebp - 0x236]
push ebx
push eax
call fcn.00408de0
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x43e]
push ebx
push eax
call fcn.00408de0
add esp, 0xc
xor eax, eax
push 9
mov word [ebp - 0x2c], ax
pop ecx
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x425018
mov esi, 0x104
push edi
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x450], esi
call fcn.00409eec
pop ecx
test eax, eax
je 0x402592
push edi
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
jne 0x402753
lea eax, [ebp - 0x444]
push eax
push 0xf003f
push ebx
push 0x41dd58
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40260c
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44c]
push eax
push ebx
push 0x41ddd4
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402600
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402600
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402753
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x440]
push eax
push esi
call edi
push 0x41dde4
lea eax, [ebp - 0x440]
push esi
push eax
call fcn.00408f0a
add esp, 0xc
push dword [0x424d82]
mov ecx, 0x424d86
push dword [0x424d7e]
lea ebx, [ebp - 0x440]
call fcn.0040227a
pop ecx
pop ecx
lea eax, [ebp - 0x238]
push eax
xor ebx, ebx
push esi
mov dword [ebp - 0x448], ebx
call edi
mov edi, 0x425038
push edi
call fcn.00409eec
test eax, eax
pop ecx
lea eax, [ebp - 0x238]
jne 0x40267c
mov edi, 0x41ddf8
push edi
push esi
push eax
call fcn.00408f0a
add esp, 0xc
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.00408eb4
pop ecx
pop ecx
push 0x41dd08
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.00408f0a
lea eax, [ebp - 0x448]
add esp, 0xc
push eax
call fcn.00402add
mov esi, eax
pop ecx
cmp esi, ebx
je 0x402753
push dword [ebp - 0x448]
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.00402341
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push 0x41de3c
lea eax, [ebp - 0x238]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x444]
push eax
push 3
push ebx
push 0x41dd58
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40274c
lea eax, [ebp - 0x2c]
push eax
call fcn.00409eec
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
push 0x41ddd4
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40274c
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040b6a9
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00408dc8
leave
ret