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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56782f
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x5c9030]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
push esi
push edi
mov eax, dword [0x5c9030]
xor eax, esp
push eax
lea eax, [esp + 0x510]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
call fcn.00437a9e
push eax
lea ecx, [esp + 0x28]
call fcn.00402723
and dword [esp + 0x518], 0
call fcn.00437a9e
push eax
lea ecx, [esp + 0x1c]
call fcn.00402723
mov byte [esp + 0x518], 1
call fcn.00437a9e
push eax
lea ecx, [esp + 0x20]
call fcn.00402723
cmp dword [ebp + 8], 0
mov byte [esp + 0x518], 2
je 0x421876
mov edi, 0x598e70
push edi
call fcn.00537ff9
pop ecx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.004023c0
jmp 0x421880
push edi
lea ecx, [esp + 0x1c]
call fcn.0040248f
mov eax, dword [esi]
push 3
push eax
lea eax, [esp + 0x74]
lea ecx, [esp + 0x78]
push eax
mov dword [esp + 0x78], ecx
call fcn.0040affe
mov byte [esp + 0x518], 3
mov ecx, dword [esp + 0x6c]
call fcn.00421012
mov bl, al
lea eax, [esp + 0x70]
mov byte [esp + 0x518], 2
cmp dword [esp + 0x6c], eax
je 0x4218c6
push dword [esp + 0x6c]
call fcn.0053798d
pop ecx
test bl, bl
je 0x4219ac
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4218f9
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
jmp 0x421b07
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push dword [esi]
push str._TEMP_DNAME___s__IP__s
push eax
call fcn.0040a0e9
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push 0x20019
push edi
push 0x59d0bc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421a9e
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x28]
push eax
push edi
push str.BaseModulePath
push dword [esp + 0x28]
mov dword [esp + 0x40], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42199d
push 0xffffffffffffffff
push str.Corees2utility.exe
lea eax, [esp + 0xfc]
push 0x208
push eax
call fcn.0053c669
lea eax, [esp + 0x104]
push eax
call fcn.00537ff9
add esp, 0x14
push eax
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x24]
call fcn.004023c0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421a9e
push dword [esp + 0x18]
mov esi, dword [esi]
push esi
lea eax, [esp + 0x2c]
push str._T:__s___s
push eax
call fcn.0040a0e9
add esp, 0x10
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsestcfg.exe
lea ecx, [esp + 0x2c]
call fcn.0040235d
mov byte [esp + 0x518], 4
call fcn.00437a9e
push eax
lea ecx, [esp + 0x18]
call fcn.00402723
mov byte [esp + 0x518], 5
mov eax, dword [esp + 0x28]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00402431
add eax, 0x10
mov dword [esi], eax
pop ecx
lea eax, [esp + 0x18]
push eax
call fcn.00435bb2
pop ecx
pop ecx
test eax, eax
je 0x421a2c
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.0040248f
jmp 0x421a86
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsescfg.exe
lea ecx, [esp + 0x24]
call fcn.0040235d
mov byte [esp + 0x518], 6
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.00402431
add eax, 0x10
mov dword [esi], eax
pop ecx
lea eax, [esp + 0x18]
push eax
call fcn.00435bb2
pop ecx
pop ecx
test eax, eax
je 0x421a7a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.0040248f
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.0040274b
push 0x38
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00538530
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
add esp, 0xc
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 0x3c
mov dword [esp + 0x38], 0x40
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [esp + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.0040274b
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040274b
lea ecx, [edi - 0x10]
call fcn.0040274b
mov ecx, dword [esp + 0x510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.0053792d
mov esp, ebp
pop ebp
ret