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

Disassembly:
sub esp, 0x250
mov eax, dword [0x421040]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x52]
push ecx
mov word [esp + 0x54], ax
call fcn.0040c0e0
xor edx, edx
add esp, 0xc
xor eax, eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
mov eax, 0x423b28
mov word [esp + 0x20], dx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x104
lea edx, [eax + 2]
jmp 0x402030
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402030
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
sub eax, edx
sar eax, 1
je 0x40205d
push 0x423b28
push 0
push 0x20000
call esi
test eax, eax
jne 0x402225
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push 0x41dcf8
push closesocket
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4020ce
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0x41dde0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4020c7
lea edx, [esp + 0x20]
push edx
push eax
push 0x20000
call esi
test eax, eax
je 0x4020c7
mov eax, dword [esp + 0xc]
push eax
call ebp
jmp 0x402225
mov ecx, dword [esp + 0xc]
push ecx
call ebp
lea edx, [esp + 0x48]
push edx
push 0x104
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x423b28
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4020f0
sub eax, edx
sar eax, 1
jne 0x402136
push 0x41ddf0
lea eax, [esp + 0x4c]
push 0x104
push eax
call fcn.00408fc5
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x41ddf0]
mov word [esp + eax + 0x20], cx
add eax, 2
test cx, cx
jne 0x402120
jmp 0x402164
push 0x423b28
lea ecx, [esp + 0x4c]
push 0x104
push ecx
call fcn.00408fc5
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + 0x423b28]
mov word [esp + eax + 0x20], cx
add eax, 2
test cx, cx
jne 0x402150
push 0x41dd84
lea edx, [esp + 0x4c]
push 0x104
push edx
call fcn.00408fc5
lea eax, [esp + 0x1c]
add esp, 0xc
push eax
call fcn.00404a30
mov esi, eax
add esp, 4
test esi, esi
je 0x402225
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x48]
push esi
push ecx
call fcn.00404ab0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x41dcd8
lea edx, [esp + 0x54]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esp + 0xc]
push eax
push 3
push 0
push 0x41dcf8
push closesocket
call ebx
test eax, eax
jne 0x40221c
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4021e4
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push 1
push 0
push 0x41dde0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40221c
mov ecx, dword [esp + 0xc]
push ecx
call ebp
push esi
call fcn.004097f3
add esp, 4
mov ecx, dword [esp + 0x254]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00408fb6
add esp, 0x250
ret