Function at 0x41d010
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.004022d8
add esp, 4
test eax, eax
je 0x41d11b
push 0x42e0a0
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0
je 0x41d11b
xor eax, eax
jmp 0x41d32b
lea ecx, [ebp - 0x30]
push ecx
push 0xf003f
push 0
push 0x429448
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d19c
lea edx, [ebp - 0x46c]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x444]
push ecx
push 0
push 0x4294b4
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d192
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 0x41d192
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41d32b
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x470], 0
lea eax, [ebp - 0x440]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42e0c0
call fcn.004022d8
add esp, 4
test eax, eax
jne 0x41d1ff
push 0x4294fc
push 0x104
lea ecx, [ebp - 0x440]
push ecx
call fcn.004013e0
add esp, 0xc
push 0x429508
lea edx, [ebp - 0x2c]
push edx
call fcn.004013c4
add esp, 8
jmp 0x41d229
push 0x42e0c0
push 0x104
lea eax, [ebp - 0x440]
push eax
call fcn.004013e0
add esp, 0xc
push 0x42e0c0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004013c4
add esp, 8
push 0x429514
push 0x104
lea edx, [ebp - 0x440]
push edx
call fcn.004013e0
add esp, 0xc
lea eax, [ebp - 0x470]
push eax
push 0x429520
push 0x83
call fcn.0041a970
add esp, 0xc
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0
jne 0x41d274
jmp 0x41d305
mov ecx, dword [ebp - 0x470]
push ecx
mov edx, dword [ebp - 0x474]
push edx
lea eax, [ebp - 0x440]
push eax
call fcn.0041cef0
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x429538
lea ecx, [ebp - 0x440]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea edx, [ebp - 0x30]
push edx
push 3
push 0
push 0x429540
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d305
lea eax, [ebp - 0x2c]
push eax
call fcn.004022d8
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 1
push 0
push 0x4295ac
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41d305
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x474], 0
je 0x41d329
mov edx, dword [ebp - 0x474]
mov dword [ebp - 0x478], edx
mov eax, dword [ebp - 0x478]
push eax
call fcn.004023ab
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012de
mov esp, ebp
pop ebp
ret