Function at 0x407a07
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x48
mov eax, 0x4ad468
call fcn.0046c418
mov esi, ecx
push str.ProcessOnDemandResultInUserContext...
lea ecx, [ebp - 0x24]
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x24]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.00414d4f
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00402e64
call fcn.00452601
push eax
lea ecx, [ebp - 0x24]
call fcn.00402899
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 1
push eax
lea ecx, [esi + 0x580]
call fcn.00417932
mov esi, dword [ebp - 0x24]
cmp dword [esi - 0xc], ebx
jne 0x407a95
push str.Error___missing_OnDemandID
lea ecx, [ebp - 0x1c]
call fcn.00402829
push ebx
push 2
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 2
pop ecx
call fcn.00414d4f
pop ecx
mov ecx, dword [ebp - 0x1c]
jmp 0x407e37
push 0x4ce610
lea ecx, [ebp - 0x14]
call fcn.00402829
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x3c]
push 0x4d1898
push eax
call fcn.004023f1
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004025c6
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push dword [ebp - 0x14]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x407b51
push str.RegOpenKeyEx_failed_for_HKEY_LOCAL_MACHINE:
lea ecx, [ebp - 0x1c]
call fcn.00402829
push ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
push 2
lea edx, [ebp - 0x1c]
pop ecx
call fcn.00414600
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.iExitCode
lea ecx, [ebp - 0x1c]
call fcn.00402829
mov byte [ebp - 4], 6
push ebx
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.0044be79
pop ecx
mov ecx, dword [ebp - 0x1c]
jmp 0x407e2c
push ebx
push ebx
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
je 0x407bb1
push str.RegQueryInfoKey_to_read_results_failed:
lea ecx, [ebp - 0x1c]
call fcn.00402829
push edi
push 2
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 7
pop ecx
call fcn.00414e00
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.iExitCode
lea ecx, [ebp - 0x1c]
call fcn.00402829
mov byte [ebp - 4], 8
jmp 0x407b3d
call fcn.00452601
push eax
lea ecx, [ebp - 0x10]
call fcn.00402899
mov byte [ebp - 4], 9
call fcn.00452601
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402899
mov byte [ebp - 4], 0xa
call fcn.00452601
push eax
lea ecx, [ebp - 0x4c]
call fcn.00402899
mov eax, 0x104
mov byte [ebp - 4], 0xb
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x1c]
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
call fcn.00402bd2
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00402bd2
lea ecx, [ebp - 0x20]
push ecx
push edi
lea ecx, [ebp - 0x28]
xor edi, edi
push ecx
push edi
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x407e13
mov esi, dword [ebp - 0x3c]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ae39
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040ae39
mov eax, 0x104
lea ecx, [ebp - 0x10]
push str.iExitCode
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
call fcn.0040ac4f
test eax, eax
jne 0x407cc7
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], edi
push eax
push dword [ebp - 0x10]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004418af
mov edi, eax
add esp, 0xc
test edi, edi
je 0x407cc0
push str.GetRegKeyDW_failed_for:
lea ecx, [ebp - 0x30]
call fcn.00402829
push 0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xc
push eax
push 2
lea edx, [ebp - 0x30]
pop ecx
call fcn.00414600
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov edx, edi
jmp 0x407d31
mov bl, 1
jmp 0x407d70
cmp dword [ebp - 0x28], 1
jne 0x407cd4
push dword [ebp - 0x1c]
xor edx, edx
jmp 0x407d33
cmp dword [ebp - 0x28], 4
jne 0x407d3e
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
push eax
push dword [ebp - 0x10]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x44], edi
call fcn.004418af
mov edi, eax
add esp, 0xc
test edi, edi
je 0x407d2e
push str.GetRegKeyDW_failed_for:
lea ecx, [ebp - 0x34]
call fcn.00402829
push 0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xd
push eax
push 2
lea edx, [ebp - 0x34]
pop ecx
call fcn.00414600
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x34]
jmp 0x407cb4
mov edx, dword [ebp - 0x38]
push 0
lea ecx, [ebp - 0x10]
call fcn.0044be79
pop ecx
jmp 0x407d70
push str.Not_supported_reg_value_type_for:
lea ecx, [ebp - 0x3c]
call fcn.00402829
push edi
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xe
push eax
push 2
lea edx, [ebp - 0x3c]
pop ecx
call fcn.00414600
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
inc esi
call fcn.00402bd2
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00402bd2
lea ecx, [ebp - 0x20]
push ecx
push edi
lea ecx, [ebp - 0x28]
xor edi, edi
push ecx
push edi
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x407c35
mov esi, dword [ebp - 0x24]
test bl, bl
je 0x407e13
push str.iExitCode
lea ecx, [ebp - 0x3c]
call fcn.00402829
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
push edi
call fcn.0044be79
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push edi
call fcn.0048af3e
lea ecx, [ebp - 0x3c]
mov dword [esp], str.iFinishTime
mov edi, eax
call fcn.00402829
push 0
mov edx, edi
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x3c]
call fcn.0044be79
pop ecx
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x4c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
call fcn.00402e64
call fcn.0046c3e1
ret