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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x236]
push ecx
mov word [ebp - 0x238], ax
call fcn.00411f50
xor edx, edx
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov eax, 0x425508
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], 0x104
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a4a6
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
sub eax, edx
sar eax, 1
je 0x40a4d3
push 0x425508
push 0
push 0x20000
call esi
test eax, eax
jne 0x40a6c9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x23c]
push eax
push 0xf003f
push 0
push 0x41c788
push connect
call ebx
test eax, eax
jne 0x40a55d
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp - 0x23c]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x244]
push eax
push 0
push 0x41c76c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a550
lea edx, [ebp - 0x2c]
push edx
push eax
push 0x20000
call esi
test eax, eax
je 0x40a550
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x238]
push edx
push 0x104
mov dword [ebp - 0x240], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x425528
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a581
sub eax, edx
sar eax, 1
jne 0x40a5c6
push 0x41c77c
lea eax, [ebp - 0x238]
push 0x104
push eax
call fcn.0040b2c5
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x41c82c]
mov word [ebp + eax - 0x2c], cx
add eax, 2
test cx, cx
jne 0x40a5b0
jmp 0x40a5f5
push 0x425528
lea ecx, [ebp - 0x238]
push 0x104
push ecx
call fcn.0040b2c5
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x425528]
mov word [ebp + eax - 0x2c], cx
add eax, 2
test cx, cx
jne 0x40a5e1
push 0x41c838
lea edx, [ebp - 0x238]
push 0x104
push edx
call fcn.0040b2c5
lea eax, [ebp - 0x240]
add esp, 0xc
push eax
call fcn.00401130
mov esi, eax
add esp, 4
test esi, esi
je 0x40a6c9
mov ecx, dword [ebp - 0x240]
push ecx
lea edx, [ebp - 0x238]
push esi
push edx
call fcn.0040a6e0
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x41c85c
lea eax, [ebp - 0x238]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x23c]
push ecx
push 3
push 0
push 0x41c860
push connect
call ebx
test eax, eax
jne 0x40a6c0
lea eax, [ebp - 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a681
mov ecx, dword [ebp - 0x23c]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push 0x41c8cc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40a6c0
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040b25b
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040a82f
mov esp, ebp
pop ebp
ret