Function at 0x4062f2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x45c
mov eax, 0x4accd2
call fcn.0046c36c
mov esi, ecx
push str.ProcessOnDemandResult...
lea ecx, [ebp - 0x434]
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x434]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.004174d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x434]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [esi + 0xf4], ebx
je 0x4064d1
mov eax, dword [esi + 0x58c]
sub eax, 0x10
push eax
call fcn.00402d9f
add eax, 0x10
pop ecx
mov dword [ebp - 0x428], eax
mov esi, 0x4cf2d0
mov dword [ebp - 4], 1
push esi
push 0x4cf2d4
lea ecx, [ebp - 0x428]
call fcn.00409868
push esi
push str._Svc
lea ecx, [ebp - 0x428]
call fcn.00409868
push str._ProcessOnDemandResult
push ebx
lea ecx, [ebp - 0x428]
call fcn.004099ef
push str.Final_command_line:
lea ecx, [ebp - 0x42c]
call fcn.00402829
push ebx
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 2
push eax
push 2
lea edx, [ebp - 0x42c]
pop ecx
call fcn.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x42c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, 0x208
mov dword [ebp - 0x434], ebx
push esi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.004847f0
push esi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004847f0
lea eax, [ebp - 0x218]
push eax
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0x434]
call fcn.0043be09
add esp, 0x1c
test eax, eax
je 0x40648b
call fcn.004524e1
push eax
lea ecx, [ebp - 0x424]
call fcn.00402899
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 3
call fcn.004456f4
test eax, eax
jne 0x406499
push str.iExitCode
lea ecx, [ebp - 0x42c]
call fcn.00402829
push ebx
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x42c]
call fcn.0044d08f
pop ecx
mov ecx, dword [ebp - 0x42c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
jmp 0x4069ff
lea eax, [ebp - 0x434]
push eax
lea edx, [ebp - 0x428]
lea ecx, [ebp - 0x424]
call fcn.0043b9a3
mov esi, eax
pop ecx
test esi, esi
je 0x40647d
push str.iExitCode
lea ecx, [ebp - 0x42c]
call fcn.00402829
mov byte [ebp - 4], 5
mov edx, esi
push ebx
jmp 0x406463
call fcn.004524e1
push eax
lea ecx, [ebp - 0x434]
call fcn.00402899
lea eax, [ebp - 0x434]
mov dword [ebp - 4], 6
push eax
lea ecx, [esi + 0x588]
call fcn.00419fc2
mov esi, dword [ebp - 0x434]
cmp dword [esi - 0xc], 0
jne 0x406536
push str.Error___missing_OnDemandID
lea ecx, [ebp - 0x424]
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x424]
mov byte [ebp - 4], 7
pop ecx
call fcn.004174d1
pop ecx
mov ecx, dword [ebp - 0x424]
jmp 0x4069f4
push 0x4ce868
lea ecx, [ebp - 0x438]
call fcn.00402829
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x430]
push 0x4d0aa0
push eax
call fcn.004023f1
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x438]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004025c6
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x430]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push ebx
push dword [ebp - 0x438]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x406604
push str.RegOpenKeyEx_failed_for_HKEY_LOCAL_MACHINE:
lea ecx, [ebp - 0x424]
call fcn.00402829
push ebx
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xa
push eax
push 2
lea edx, [ebp - 0x424]
pop ecx
call fcn.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.iExitCode
lea ecx, [ebp - 0x424]
call fcn.00402829
mov byte [ebp - 4], 0xb
jmp 0x406677
push ebx
push ebx
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x468]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
je 0x406691
push str.RegQueryInfoKey_to_read_results_failed:
lea ecx, [ebp - 0x424]
call fcn.00402829
push edi
push 2
lea edx, [ebp - 0x424]
mov byte [ebp - 4], 0xc
pop ecx
call fcn.00417582
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.iExitCode
lea ecx, [ebp - 0x424]
call fcn.00402829
mov byte [ebp - 4], 0xd
push ebx
mov edx, edi
lea ecx, [ebp - 0x424]
call fcn.0044d08f
pop ecx
mov ecx, dword [ebp - 0x424]
jmp 0x4069e6
call fcn.004524e1
push eax
lea ecx, [ebp - 0x428]
call fcn.00402899
mov byte [ebp - 4], 0xe
call fcn.004524e1
push eax
lea ecx, [ebp - 0x424]
call fcn.00402899
mov byte [ebp - 4], 0xf
call fcn.004524e1
push eax
lea ecx, [ebp - 0x458]
call fcn.00402899
mov eax, 0x104
mov byte [ebp - 4], 0x10
and dword [ebp - 0x430], 0
lea ecx, [ebp - 0x424]
push eax
mov dword [ebp - 0x454], ebx
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x440], eax
call fcn.00402bd2
push dword [ebp - 0x43c]
lea ecx, [ebp - 0x428]
mov edi, eax
call fcn.00402bd2
lea ecx, [ebp - 0x440]
push ecx
push edi
lea ecx, [ebp - 0x448]
xor edi, edi
push ecx
push edi
lea ecx, [ebp - 0x43c]
push ecx
push eax
push edi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4069c4
mov esi, dword [ebp - 0x430]
push 0xffffffffffffffff
lea ecx, [ebp - 0x428]
call fcn.00409d68
push 0xffffffffffffffff
lea ecx, [ebp - 0x424]
call fcn.00409d68
mov eax, 0x104
lea ecx, [ebp - 0x428]
push str.iExitCode
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x440], eax
call fcn.00409b05
test eax, eax
jne 0x406805
mov edx, dword [ebp - 0x438]
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x454]
mov dword [ebp - 0x444], edi
push eax
push dword [ebp - 0x428]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0044448e
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4067fe
push str.GetRegKeyDW_failed_for:
lea ecx, [ebp - 0x44c]
call fcn.00402829
push 0
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 0x11
push eax
push 2
lea edx, [ebp - 0x44c]
pop ecx
call fcn.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x44c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov edx, edi
jmp 0x4068a3
mov bl, 1
jmp 0x4068f1
cmp dword [ebp - 0x448], 1
jne 0x40681b
push dword [ebp - 0x424]
xor edx, edx
jmp 0x4068a5
cmp dword [ebp - 0x448], 4
jne 0x4068b3
mov edx, dword [ebp - 0x438]
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x444], edi
push eax
push dword [ebp - 0x428]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x45c], edi
call fcn.0044448e
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40689d
push str.GetRegKeyDW_failed_for:
lea ecx, [ebp - 0x450]
call fcn.00402829
push 0
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 0x12
push eax
push 2
lea edx, [ebp - 0x450]
pop ecx
call fcn.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x450]
jmp 0x4067ef
mov edx, dword [ebp - 0x444]
push 0
lea ecx, [ebp - 0x428]
call fcn.0044d08f
pop ecx
jmp 0x4068f1
push str.Not_supported_reg_value_type_for:
lea ecx, [ebp - 0x430]
call fcn.00402829
push edi
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 0x13
push eax
push 2
lea edx, [ebp - 0x430]
pop ecx
call fcn.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x430]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push dword [ebp - 0x440]
lea ecx, [ebp - 0x424]
inc esi
call fcn.00402bd2
push dword [ebp - 0x43c]
lea ecx, [ebp - 0x428]
mov edi, eax
call fcn.00402bd2
lea ecx, [ebp - 0x440]
push ecx
push edi
lea ecx, [ebp - 0x448]
xor edi, edi
push ecx
push edi
lea ecx, [ebp - 0x43c]
push ecx
push eax
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x406742
mov esi, dword [ebp - 0x434]
test bl, bl
je 0x4069c4
push str.iExitCode
lea ecx, [ebp - 0x430]
call fcn.00402829
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x430]
mov edx, dword [ebp - 0x454]
push edi
call fcn.0044d08f
pop ecx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x430]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push edi
call fcn.0048ab6e
lea ecx, [ebp - 0x430]
mov dword [esp], str.iFinishTime
mov edi, eax
call fcn.00402829
push 0
mov edx, edi
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x430]
call fcn.0044d08f
pop ecx
mov ecx, dword [ebp - 0x430]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x458]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x424]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x438]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
call fcn.00402e64
call fcn.0046c316
ret