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

Disassembly:
sub esp, 0x254
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x206
lea eax, [esp + 0x56]
push esi
push eax
mov word [esp + 0x5c], si
call fcn.0040ef00
add esp, 0xc
xor eax, 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 dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov word [esp + 0x4e], ax
mov eax, 0x4250c0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x104
mov word [esp + 0x28], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402846
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
sub eax, edx
sar eax, 1
je 0x402872
push 0x4250c0
push esi
push 0x20000
call edi
test eax, eax
jne 0x402a30
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push esi
push 0x41dcb8
push closesocket
call ebx
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4028e1
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
push 0x41dd3c
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4028da
lea eax, [esp + 0x28]
push eax
push esi
push 0x20000
call edi
test eax, eax
je 0x4028da
mov ecx, dword [esp + 0x14]
push ecx
call ebp
jmp 0x402a30
mov edx, dword [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x50]
push eax
push 0x104
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x4250e0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402900
sub eax, edx
sar eax, 1
jne 0x402946
push 0x41dd4c
lea ecx, [esp + 0x54]
push 0x104
push ecx
call fcn.0040ab8d
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x41dd4c]
mov word [esp + eax + 0x28], cx
add eax, 2
cmp cx, si
jne 0x402930
jmp 0x402974
push 0x4250e0
lea edx, [esp + 0x54]
push 0x104
push edx
call fcn.0040ab8d
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + 0x4250e0]
mov word [esp + eax + 0x28], cx
add eax, 2
cmp cx, si
jne 0x402960
push 0x41dc28
lea eax, [esp + 0x54]
push 0x104
push eax
call fcn.0040ab8d
lea ecx, [esp + 0x24]
add esp, 0xc
push ecx
call fcn.004030b0
mov edi, eax
add esp, 4
cmp edi, esi
je 0x402a30
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x50]
push edi
push edx
call fcn.00402520
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push 0x41dd90
lea eax, [esp + 0x5c]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x14]
push ecx
push 3
push esi
push 0x41dcb8
push closesocket
call ebx
test eax, eax
jne 0x402a27
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4029f0
mov ecx, dword [esp + 0x14]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x2c]
push eax
push 1
push esi
push 0x41dd3c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402a27
mov edx, dword [esp + 0x14]
push edx
call ebp
push edi
call fcn.0040b7d7
add esp, 4
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040ab4e
add esp, 0x254
ret