Function at 0x417220
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c873d
mov eax, dword fs:[0]
push eax
sub esp, 0x4d4
mov eax, dword [0x4f4320]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x4d13e0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x20
ja 0x4175a2
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x250], 0
mov word [ebp - 0x484], 0
push 0x206
push 0
lea ecx, [ebp - 0x482]
push ecx
call fcn.00479a10
add esp, 0xc
mov word [ebp - 0x24c], 0
push 0x206
push 0
lea edx, [ebp - 0x24a]
push edx
call fcn.00479a10
add esp, 0xc
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x490], 1
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push 0x4d13ec
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
je 0x41732f
xor eax, eax
jmp 0x4175a7
lea ecx, [ebp - 0x254]
push ecx
push 0x20019
push 0
push str.shell
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
je 0x417362
xor eax, eax
jmp 0x4175a7
lea eax, [ebp - 0x25c]
push eax
push 0x20019
push 0
push str.opencommand
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
je 0x417398
xor eax, eax
jmp 0x4175a7
mov dword [ebp - 0x250], 0x104
mov dword [ebp - 0x18], 1
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x4d1420
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x250], 0
ja 0x4173f9
xor eax, eax
jmp 0x4175a7
lea edx, [ebp - 0x484]
push edx
lea ecx, [ebp - 0x40]
call fcn.00401600
mov dword [ebp - 4], 0
push 0
push 0x4d1424
lea ecx, [ebp - 0x40]
call fcn.004041b0
mov dword [ebp - 0x48c], eax
mov eax, dword [ebp - 0x48c]
cmp eax, dword [0x4e234c]
jne 0x417456
mov dword [ebp - 0x494], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401640
mov eax, dword [ebp - 0x494]
jmp 0x4175a7
push 0
push 0x4d1430
lea ecx, [ebp - 0x40]
call fcn.004041b0
mov dword [ebp - 0x488], eax
push 0x4d1434
lea ecx, [ebp - 0x278]
call fcn.00401600
mov byte [ebp - 4], 1
cmp dword [ebp - 0x488], 0
jne 0x4174dc
mov ecx, dword [ebp - 0x48c]
add ecx, 5
push ecx
push 0
lea edx, [ebp - 0x4b0]
push edx
lea ecx, [ebp - 0x40]
call fcn.00403790
mov dword [ebp - 0x4d4], eax
mov eax, dword [ebp - 0x4d4]
mov dword [ebp - 0x4d8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4d8]
push ecx
lea ecx, [ebp - 0x278]
call fcn.00403640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4b0]
call fcn.00401640
jmp 0x41752e
mov edx, dword [ebp - 0x48c]
add edx, 4
push edx
push 0
lea eax, [ebp - 0x4cc]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403790
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x4e0], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x4e0]
push edx
lea ecx, [ebp - 0x278]
call fcn.00403640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4cc]
call fcn.00401640
push 1
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x278]
call fcn.00401670
push eax
push 0x4d1438
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x417584
mov dword [ebp - 0x4d0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x278]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401640
mov eax, dword [ebp - 0x4d0]
jmp 0x4175a7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x278]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401640
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0047a020
mov esp, ebp
pop ebp
ret