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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd20
push esi
push edi
mov eax, 0x4d8724
call fcn.004b9d54
push dword [ebp + 8]
call fcn.00421538
pop ecx
xor edx, edx
mov dword [ebp - 0x84], edx
mov word [ebp - 0x70], 0x18
push 0x4d7f26
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402448
add esp, 8
inc dword [ebp - 0x64]
mov word [ebp - 0x70], 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
call fcn.00407380
add esp, 8
lea edx, [ebp - 0x84]
push edx
push 1
push 0
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402628
pop ecx
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x421c47
push 0x188
push 0x4d7f76
push 0x4d7f5c
call fcn.004c3638
add esp, 0xc
mov esi, 0x4d6d3a
lea edi, [ebp - 0x2a4]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x70], 0x24
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0x90], 0x104
lea eax, [ebp - 0x90]
push eax
lea edx, [ebp - 0x2a4]
push edx
lea ecx, [ebp - 0x8c]
push ecx
push 0
push 0x4d7f88
push dword [ebp - 0x84]
call sub.ADVAPI32.DLL_RegQueryValueExW
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x421cc0
push 0x193
push 0x4d7fb6
push str.lRegRval__ERROR_SUCCESS
call fcn.004c3638
add esp, 0xc
push dword [ebp - 0x84]
call sub.ADVAPI32.DLL_RegCloseKey
push 0x3c
push 0
lea eax, [ebp - 0x2e0]
push eax
call fcn.004b9850
add esp, 0xc
mov dword [ebp - 0x2e0], 0x3c
mov dword [ebp - 0x2dc], 0x40
mov dword [ebp - 0x2d4], str.Open
lea edx, [ebp - 0x2a4]
mov dword [ebp - 0x2d0], edx
mov word [ebp - 0x70], 0x30
lea eax, [ebp - 0x2c]
call fcn.00406534
push eax
inc dword [ebp - 0x64]
lea edx, [ebp - 0x2a4]
lea eax, [ebp - 0x58]
call fcn.004c7754
inc dword [ebp - 0x64]
mov eax, dword [eax]
pop edx
call fcn.00445548
dec dword [ebp - 0x64]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.004c7828
mov word [ebp - 0x70], 0x24
mov word [ebp - 0x70], 0x3c
mov edx, str.setup.iss
lea eax, [ebp - 0x5c]
call fcn.004c7754
inc dword [ebp - 0x64]
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x2c]
call fcn.004c7864
dec dword [ebp - 0x64]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004c7828
mov word [ebp - 0x70], 0x48
push str._s__u
lea ecx, [ebp - 0x54]
push ecx
call fcn.00402448
add esp, 8
inc dword [ebp - 0x64]
mov word [ebp - 0x70], 0x24
cmp byte [ebp + 0x10], 0
je 0x421db1
push str._removeall
lea eax, [ebp - 0x54]
push eax
call fcn.00407380
add esp, 8
push str._f1_
lea edx, [ebp - 0x54]
push edx
call fcn.00407380
add esp, 8
lea eax, [ebp - 0x2c]
call fcn.0040ba88
push eax
lea edx, [ebp - 0x54]
push edx
call fcn.00407380
add esp, 8
push 0x4d8016
lea ecx, [ebp - 0x54]
push ecx
call fcn.00407380
add esp, 8
lea eax, [ebp - 0x54]
push eax
call fcn.00402628
pop ecx
mov dword [ebp - 0x2cc], eax
xor edx, edx
mov dword [ebp - 0x2c4], edx
lea ecx, [ebp - 0x2e0]
push ecx
call sub.SHELL32.DLL_ShellExecuteExW
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x421e32
push 0x1a8
push 0x4d8028
push str.bRet___FALSE
call fcn.004c3638
add esp, 0xc
push 0xffffffffffffffff
push dword [ebp - 0x2a8]
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x421e65
push 0x1ab
push 0x4d8050
push str.dwRet__WAIT_OBJECT_0
call fcn.004c3638
add esp, 0xc
push dword [ebp + 8]
call fcn.004212c0
pop ecx
mov byte [ebp - 0x99], al
cmp byte [ebp - 0x99], 0
jne 0x421ec5
mov eax, 2
push eax
dec dword [ebp - 0x64]
push 2
lea edx, [ebp - 0x54]
push edx
call fcn.00402370
add esp, 8
dec dword [ebp - 0x64]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004c7828
dec dword [ebp - 0x64]
push 2
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402370
add esp, 8
pop eax
mov edx, dword [ebp - 0x80]
mov dword fs:[0], edx
jmp 0x421f70
lea eax, [ebp - 0x2c]
call fcn.0040ba88
push eax
push dword [ebp + 8]
call fcn.0042121c
add esp, 8
mov byte [ebp - 0x99], al
cmp byte [ebp - 0x99], 0
jne 0x421f2d
mov eax, 3
push eax
dec dword [ebp - 0x64]
push 2
lea edx, [ebp - 0x54]
push edx
call fcn.00402370
add esp, 8
dec dword [ebp - 0x64]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004c7828
dec dword [ebp - 0x64]
push 2
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402370
add esp, 8
pop eax
mov edx, dword [ebp - 0x80]
mov dword fs:[0], edx
jmp 0x421f70
mov eax, 1
push eax
dec dword [ebp - 0x64]
push 2
lea edx, [ebp - 0x54]
push edx
call fcn.00402370
add esp, 8
dec dword [ebp - 0x64]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004c7828
dec dword [ebp - 0x64]
push 2
lea ecx, [ebp - 0x28]
push ecx
call fcn.00402370
add esp, 8
pop eax
mov edx, dword [ebp - 0x80]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret