Function at 0x41d000
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, 0x478
mov eax, dword [0x42b044]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x440], 0
push 0x206
push 0
lea eax, [ebp - 0x43e]
push eax
call fcn.004012f0
add esp, 0xc
mov word [ebp - 0x238], 0
push 0x206
push 0
lea ecx, [ebp - 0x236]
push ecx
call fcn.004012f0
add esp, 0xc
mov word [ebp - 0x464], 0
xor edx, edx
mov dword [ebp - 0x462], edx
mov dword [ebp - 0x45e], edx
mov dword [ebp - 0x45a], edx
mov dword [ebp - 0x456], edx
mov dword [ebp - 0x452], edx
mov dword [ebp - 0x44e], edx
mov dword [ebp - 0x44a], edx
mov word [ebp - 0x446], dx
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x46c], 0x104
mov word [ebp - 0x2c], 0
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
push 0x42e0a0
call fcn.0040234b
add esp, 4
test eax, eax
je 0x41d10b
push 0x42e0a0
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0
je 0x41d10b
xor eax, eax
jmp 0x41d36a
lea ecx, [ebp - 0x30]
push ecx
push 0xf003f
push 0
push 0x4295e0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d18c
lea edx, [ebp - 0x46c]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x444]
push ecx
push 0
push 0x42964c
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d182
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0
je 0x41d182
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41d36a
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x238]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x429694
push 0x104
lea ecx, [ebp - 0x238]
push ecx
call fcn.00401412
add esp, 0xc
mov edx, dword [0x42de0a]
push edx
mov eax, dword [0x42de06]
push eax
push 0x42de0e
lea ecx, [ebp - 0x238]
push ecx
call fcn.0041b330
add esp, 0x10
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x470], 0
lea edx, [ebp - 0x440]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42e0c0
call fcn.0040234b
add esp, 4
test eax, eax
jne 0x41d23b
push 0x4296a8
push 0x104
lea eax, [ebp - 0x440]
push eax
call fcn.00401412
add esp, 0xc
push 0x4296b4
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004013c4
add esp, 8
jmp 0x41d265
push 0x42e0c0
push 0x104
lea edx, [ebp - 0x440]
push edx
call fcn.00401412
add esp, 0xc
push 0x42e0c0
lea eax, [ebp - 0x2c]
push eax
call fcn.004013c4
add esp, 8
push 0x4296c0
push 0x104
lea ecx, [ebp - 0x440]
push ecx
call fcn.00401412
add esp, 0xc
lea edx, [ebp - 0x470]
push edx
push 0x4296cc
push 0x83
call fcn.0041a9c0
add esp, 0xc
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0
jne 0x41d2b0
jmp 0x41d344
mov eax, dword [ebp - 0x470]
push eax
mov ecx, dword [ebp - 0x474]
push ecx
lea edx, [ebp - 0x440]
push edx
call fcn.0041cee0
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x4296e4
lea eax, [ebp - 0x440]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x30]
push ecx
push 3
push 0
push 0x4296e8
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d344
lea edx, [ebp - 0x2c]
push edx
call fcn.0040234b
add esp, 4
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 1
push 0
push 0x429754
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41d344
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x474], 0
je 0x41d368
mov ecx, dword [ebp - 0x474]
mov dword [ebp - 0x478], ecx
mov edx, dword [ebp - 0x478]
push edx
call fcn.00403b09
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012d2
mov esp, ebp
pop ebp
ret