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

Disassembly:
sub esp, 0x310
mov eax, dword [0x433c20]
xor eax, esp
mov dword [esp + 0x30c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x10e]
push ecx
mov word [esp + 0x110], ax
call fcn.004158a0
xor edx, edx
add esp, 0xc
xor eax, 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 dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov eax, 0x438640
mov word [esp + 0x14], dx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x104
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f40
sub eax, edx
sar eax, 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
je 0x401f6e
push 0x438640
push 0
push 0x20000
call esi
test eax, eax
jne 0x40219d
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push 0x42eb88
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401ff2
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0x42ebf4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401fe7
lea edx, [esp + 0x18]
push edx
push eax
push 0x20000
call esi
test eax, eax
je 0x401fe7
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.00413473
add esp, 0x310
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x108]
push edx
push 0x104
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x438640
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402015
sub eax, edx
sar eax, 1
jne 0x402066
push 0x42ec04
lea eax, [esp + 0x10c]
push 0x104
push eax
call fcn.00413482
add esp, 0xc
xor eax, eax
jmp 0x402050
movzx ecx, word [eax + str.sege]
mov word [esp + eax + 0x18], cx
add eax, 2
test cx, cx
jne 0x402050
jmp 0x4020a4
push 0x438640
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call fcn.00413482
add esp, 0xc
xor eax, eax
jmp 0x402090
movzx ecx, word [eax + 0x438640]
mov word [esp + eax + 0x18], cx
add eax, 2
test cx, cx
jne 0x402090
push ebx
push 0x42ec1c
lea edx, [esp + 0x110]
push 0x104
push edx
call fcn.00413482
lea eax, [esp + 0x18]
push eax
call fcn.00404a50
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x40219c
mov eax, dword [esp + 0xc]
push edi
lea ecx, [esp + 0x110]
push ebx
push ecx
call fcn.00404ad0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x42ec40
lea edx, [esp + 0x11c]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x1a
mov esi, 0x42ec48
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
push 0x5e
lea eax, [esp + 0xb6]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.004158a0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 3
push 0
lea edx, [esp + 0x54]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
test eax, eax
jne 0x402193
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402157
sub eax, edx
mov edx, dword [esp + 8]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x20]
push ecx
push 1
push 0
push str.TrayKey
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402193
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00409041
add esp, 4
pop ebx
mov ecx, dword [esp + 0x310]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00413473
add esp, 0x310
ret