Function at 0x4026e5
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, 0x24c
mov eax, dword [0x434c24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x238], ax
xor esi, esi
lea eax, [ebp - 0x236]
push esi
push eax
call fcn.00416400
add esp, 0xc
xor eax, eax
push 9
mov word [ebp - 0x2c], ax
pop ecx
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x439b18
mov ebx, 0x104
mov eax, ecx
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x248], ebx
lea edi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x402746
sub eax, edi
sar eax, 1
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
je 0x402778
push ecx
push esi
push 0x20000
call edi
test eax, eax
je 0x402778
push 0x42db34
call fcn.00401000
jmp 0x40293f
lea eax, [ebp - 0x23c]
push eax
push 0xf003f
push esi
push 0x42da50
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4027f9
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x244]
push eax
push esi
push 0x42db6c
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4027ed
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x20000
call edi
test eax, eax
je 0x4027ed
push 0x42db34
call fcn.00401000
pop ecx
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402940
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x238]
push eax
push ebx
mov dword [ebp - 0x240], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x439b38
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x402817
sub eax, edi
sar eax, 1
lea eax, [ebp - 0x238]
jne 0x402853
push 0x42db7c
push ebx
push eax
call fcn.00413fb9
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x42db7c]
mov word [ebp + eax - 0x2c], cx
inc eax
inc eax
cmp cx, si
jne 0x40283e
jmp 0x402873
push ecx
push ebx
push eax
call fcn.00413fb9
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x439b38]
mov word [ebp + eax - 0x2c], cx
inc eax
inc eax
cmp cx, si
jne 0x402860
push 0x42d830
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.00413fb9
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push 0x87
call fcn.00403239
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x402940
push dword [ebp - 0x240]
lea eax, [ebp - 0x238]
push edi
push eax
call fcn.00402508
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push 0x42dca8
lea eax, [ebp - 0x238]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x23c]
push eax
push 3
push esi
push 0x42da50
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402939
lea eax, [ebp - 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4028fe
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
push 0x42db6c
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402939
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00409960
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00413d9b
leave
ret