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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x567fb3
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.00438329
push eax
lea ecx, [esp + 0x28]
call fcn.00402a28
and dword [esp + 0x518], 0
call fcn.00438329
push eax
lea ecx, [esp + 0x1c]
call fcn.00402a28
mov byte [esp + 0x518], 1
call fcn.00438329
push eax
lea ecx, [esp + 0x20]
call fcn.00402a28
cmp dword [ebp + 8], 0
mov byte [esp + 0x518], 2
je 0x421ffa
mov edi, 0x599168
push edi
call fcn.0053894e
pop ecx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.004026d0
jmp 0x422004
push edi
lea ecx, [esp + 0x1c]
call fcn.0040279f
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.0040b999
mov byte [esp + 0x518], 3
mov ecx, dword [esp + 0x6c]
call fcn.00421796
mov bl, al
lea eax, [esp + 0x70]
mov byte [esp + 0x518], 2
cmp dword [esp + 0x6c], eax
je 0x42204a
push dword [esp + 0x6c]
call fcn.0053823b
pop ecx
test bl, bl
je 0x422130
xor edi, edi
cmp dword [ebp + 8], edi
je 0x42207d
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
jmp 0x42228b
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push dword [esi]
push str._TEMP_DNAME___s__IP__s
push eax
call fcn.0040ab0a
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push 0x20019
push edi
push 0x59d3cc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422222
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 0x422121
push 0xffffffffffffffff
push str.Corees2utility.exe
lea eax, [esp + 0xfc]
push 0x208
push eax
call fcn.0053cf09
lea eax, [esp + 0x104]
push eax
call fcn.0053894e
add esp, 0x14
push eax
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x24]
call fcn.004026d0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x422222
push dword [esp + 0x18]
mov esi, dword [esi]
push esi
lea eax, [esp + 0x2c]
push str._T:__s___s
push eax
call fcn.0040ab0a
add esp, 0x10
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsestcfg.exe
lea ecx, [esp + 0x2c]
call fcn.0040266d
mov byte [esp + 0x518], 4
call fcn.00438329
push eax
lea ecx, [esp + 0x18]
call fcn.00402a28
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.00402741
add eax, 0x10
mov dword [esi], eax
pop ecx
lea eax, [esp + 0x18]
push eax
call fcn.00436358
pop ecx
pop ecx
test eax, eax
je 0x4221b0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.0040279f
jmp 0x42220a
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsescfg.exe
lea ecx, [esp + 0x24]
call fcn.0040266d
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.00402741
add eax, 0x10
mov dword [esi], eax
pop ecx
lea eax, [esp + 0x18]
push eax
call fcn.00436358
pop ecx
pop ecx
test eax, eax
je 0x4221fe
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.0040279f
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.00402a50
push 0x38
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00538860
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.00402a50
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402a50
lea ecx, [edi - 0x10]
call fcn.00402a50
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.005381db
mov esp, ebp
pop ebp
ret