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

Disassembly:
sub esp, 0x310
mov eax, dword [0x438c20]
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.0041a170
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, 0x43d640
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 0x401f60
sub eax, edx
sar eax, 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
je 0x401f8e
push 0x43d640
push 0
push 0x20000
call esi
test eax, eax
jne 0x4021c8
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push 0x433b98
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402012
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 0x433c04
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402007
lea edx, [esp + 0x18]
push edx
push eax
push 0x20000
call esi
test eax, eax
je 0x402007
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.00417d45
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, 0x43d640
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402035
sub eax, edx
sar eax, 1
jne 0x402086
push 0x433c14
lea eax, [esp + 0x10c]
push 0x104
push eax
call fcn.00417d54
add esp, 0xc
xor eax, eax
jmp 0x402070
movzx ecx, word [eax + 0x433c20]
mov word [esp + eax + 0x18], cx
add eax, 2
test cx, cx
jne 0x402070
jmp 0x4020c4
push 0x43d640
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call fcn.00417d54
add esp, 0xc
xor eax, eax
jmp 0x4020b0
movzx ecx, word [eax + 0x43d640]
mov word [esp + eax + 0x18], cx
add eax, 2
test cx, cx
jne 0x4020b0
push ebx
push 0x433c2c
lea edx, [esp + 0x110]
push 0x104
push edx
call fcn.00417d54
lea eax, [esp + 0x18]
push eax
push 0x433c38
push 0x81
call fcn.00405af0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4021c7
mov ecx, dword [esp + 0xc]
push edi
push ecx
lea edx, [esp + 0x114]
push ebx
push edx
call fcn.00405bd0
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x433c50
lea eax, [esp + 0x11c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x1a
mov esi, 0x433c58
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
push 0x5e
lea ecx, [esp + 0xb6]
push 0
push ecx
movsw word es:[edi], word [esi]
call fcn.0041a170
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 3
push 0
lea eax, [esp + 0x54]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
test eax, eax
jne 0x4021be
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402182
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 8]
push ecx
lea edx, [esp + 0x20]
push edx
push 1
push 0
push 0x433cc4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4021be
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0040d910
add esp, 4
pop ebx
mov ecx, dword [esp + 0x310]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00417d45
add esp, 0x310
ret