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

Disassembly:
sub esp, 0x45c
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x454], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x56]
push edi
push eax
mov word [esp + 0x5c], di
call fcn.0040f6e0
add esp, 0xc
push 0x206
lea ecx, [esp + 0x25e]
push edi
push ecx
mov word [esp + 0x264], di
call fcn.0040f6e0
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, 0x4250a0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0x104
mov word [esp + 0x28], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402bd4
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
sub eax, edx
sar eax, 1
je 0x402c00
push 0x4250a0
push edi
push 0x20000
call esi
test eax, eax
jne 0x402e03
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push edi
push 0x41dd10
push connect
call ebx
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x402c6f
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push 0x41dd8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402c68
lea ecx, [esp + 0x28]
push ecx
push edi
push 0x20000
call esi
test eax, eax
je 0x402c68
mov edx, dword [esp + 0x14]
push edx
call ebp
jmp 0x402e03
mov eax, dword [esp + 0x14]
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x258]
push ecx
push 0x104
call esi
push 0x41dd9c
lea edx, [esp + 0x25c]
push 0x104
push edx
call fcn.0040ae31
mov eax, dword [0x424e0a]
mov ecx, dword [0x424e06]
add esp, 0xc
push eax
push ecx
mov edx, 0x424e0e
lea ecx, [esp + 0x260]
call fcn.00402760
add esp, 8
lea edx, [esp + 0x50]
push edx
push 0x104
mov dword [esp + 0x20], edi
call esi
mov eax, 0x4250c0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402cd7
sub eax, edx
sar eax, 1
jne 0x402d17
push 0x41ddb0
lea eax, [esp + 0x54]
push 0x104
push eax
call fcn.0040ae31
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x41ddb0]
mov word [esp + eax + 0x28], cx
add eax, 2
cmp cx, di
jne 0x402d01
jmp 0x402d44
push 0x4250c0
lea ecx, [esp + 0x54]
push 0x104
push ecx
call fcn.0040ae31
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x4250c0]
mov word [esp + eax + 0x28], cx
add eax, 2
cmp cx, di
jne 0x402d30
push 0x41dcc0
lea edx, [esp + 0x54]
push 0x104
push edx
call fcn.0040ae31
lea eax, [esp + 0x24]
add esp, 0xc
push eax
call fcn.00403360
mov esi, eax
add esp, 4
cmp esi, edi
je 0x402e03
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x50]
push esi
push ecx
call fcn.00402890
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push edi
push 0x41ddf4
lea edx, [esp + 0x5c]
push edx
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esp + 0x14]
push eax
push 3
push edi
push 0x41dd10
push connect
call ebx
test eax, eax
jne 0x402dfa
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402dc3
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
push 1
push edi
push 0x41dd8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402dfa
mov ecx, dword [esp + 0x14]
push ecx
call ebp
push esi
call fcn.0040ba8e
add esp, 4
mov ecx, dword [esp + 0x464]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040adf2
add esp, 0x45c
ret