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

Disassembly:
sub esp, 0x30c
mov eax, dword [0x41a04c]
xor eax, esp
mov dword [esp + 0x308], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x10a]
push ecx
mov word [esp + 0x10c], ax
call fcn.004092d0
xor edx, edx
add esp, 0xc
xor eax, eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], 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 word [esp + 0x36], ax
mov eax, 0x41c9c8
mov word [esp + 0x10], dx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x104
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4011b0
sub eax, edx
sar eax, 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
je 0x4011de
push 0x41c9c8
push 0
push 0x20000
call esi
test eax, eax
jne 0x4013d4
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push 0x418108
push closesocket
call ebp
test eax, eax
jne 0x401252
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0x418174
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401247
lea edx, [esp + 0x18]
push edx
push eax
push 0x20000
call esi
test eax, eax
je 0x401247
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4013d3
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x108]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x41c9c8
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401270
sub eax, edx
sar eax, 1
mov edx, 0x41cc40
jne 0x4012b6
push 0x418184
push 0x418190
call fcn.00401c30
add esp, 8
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x4181a0]
mov word [esp + eax + 0x18], cx
add eax, 2
test cx, cx
jne 0x4012a0
jmp 0x4012e4
push 0x41c9c8
push 0x4181ac
call fcn.00401c30
add esp, 8
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x41c9c8]
mov word [esp + eax + 0x18], cx
add eax, 2
test cx, cx
jne 0x4012d0
push ebx
push edi
push 0x41cc40
lea eax, [esp + 0x114]
push 0x104
push eax
call fcn.00405832
add esp, 0xc
cmp dword [0x41b070], 3
jne 0x401315
mov ebx, 0x2b66
mov edi, 0x4180e4
jmp 0x40131f
mov ebx, 0x2b70
mov edi, 0x4180f4
call section..text
test eax, eax
jne 0x4013d1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x4181bc
lea ecx, [esp + 0x11c]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x1a
mov esi, 0x4181c0
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
push 0x5e
lea edx, [esp + 0xb6]
push 0
push edx
movsw word es:[edi], word [esi]
call fcn.004092d0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 3
push 0
lea ecx, [esp + 0x54]
push ecx
push closesocket
call ebp
test eax, eax
jne 0x4013d1
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401395
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x24]
push eax
push 1
push 0
push 0x41822c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4013d1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop ebp
mov ecx, dword [esp + 0x30c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004057b4
add esp, 0x30c
ret