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

Disassembly:
sub esp, 0x314
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x30c], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x11a]
push ecx
mov word [esp + 0x11c], ax
call fcn.00408070
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, 0x419948
mov word [esp + 0x20], dx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401512
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
sub eax, edx
sar eax, 1
je 0x40153f
push 0x419948
push 0
push 0x20000
call esi
test eax, eax
jne 0x40171f
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push 0x414ed0
push closesocket
call ebp
test eax, eax
jne 0x4015ac
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0x414f3c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4015a1
lea edx, [esp + 0x20]
push edx
push eax
push 0x20000
call esi
test eax, eax
je 0x4015a1
mov eax, dword [esp + 0x10]
push eax
jmp 0x401719
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x110]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x419948
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4015c7
sub eax, edx
sar eax, 1
mov edx, 0x419bc0
jne 0x401607
push 0x414f4c
push 0x414f58
call fcn.00401cf0
add esp, 8
xor eax, eax
movzx ecx, word [eax + str.Hose]
mov word [esp + eax + 0x20], cx
add eax, 2
test cx, cx
jne 0x4015f1
jmp 0x401634
push 0x419948
push 0x414f74
call fcn.00401cf0
add esp, 8
xor eax, eax
jmp 0x401620
movzx ecx, word [eax + 0x419948]
mov word [esp + eax + 0x20], cx
add eax, 2
test cx, cx
jne 0x401620
push 0x419bc0
lea eax, [esp + 0x114]
push 0x104
push eax
call fcn.00404562
add esp, 0xc
cmp dword [0x418070], 3
jne 0x401663
mov ebx, 0x2b66
mov edi, 0x415014
jmp 0x40166d
mov ebx, 0x2b70
mov edi, 0x415024
call fcn.00401800
test eax, eax
jne 0x40171f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x414f84
lea ecx, [esp + 0x11c]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x1a
mov esi, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
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.00408070
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 0x40171f
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4016e3
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 str.TrayKey
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40171f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x31c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00404553
add esp, 0x314
ret