Function at 0x414210
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x429150
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x10], ebx
push 0x1a
mov esi, 0xf
push str._hpGetRegistryValue__
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401890
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x58], ebx
call fcn.004122d0
mov eax, dword [esp + 0x4c]
or ebp, 0xffffffff
mov edi, 0x10
add esp, 4
cmp eax, edi
mov dword [esp + 0x54], ebp
jb 0x414285
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041aebd
add esp, 4
push 8
push str.Key_Path
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401890
mov edx, dword [esp + 0x60]
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x5c], 1
call fcn.00412300
mov eax, dword [esp + 0x50]
add esp, 8
cmp eax, edi
mov dword [esp + 0x54], ebp
jb 0x4142d4
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041aebd
add esp, 4
push 0xa
push str.Value_Name
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401890
mov edx, dword [esp + 0x64]
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x5c], 2
call fcn.00412300
mov eax, dword [esp + 0x50]
add esp, 8
cmp eax, edi
mov dword [esp + 0x54], ebp
jb 0x414323
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041aebd
add esp, 4
push 0x17
push str.Opening_registry_key...
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401890
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x58], 3
call fcn.004122d0
mov eax, dword [esp + 0x4c]
add esp, 4
cmp eax, edi
mov dword [esp + 0x54], ebp
jb 0x41436d
mov eax, dword [esp + 0x34]
push eax
call fcn.0041aebd
add esp, 4
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x60]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], 1
call fcn.00413fb0
add esp, 0xc
push 0x1a
push str.After_opening_registry_key
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401890
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x58], 4
call fcn.004122d0
mov eax, dword [esp + 0x4c]
add esp, 4
cmp eax, edi
mov dword [esp + 0x54], ebp
jb 0x4143da
mov edx, dword [esp + 0x34]
push edx
call fcn.0041aebd
add esp, 4
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
cmp eax, dword [ecx]
je 0x41456e
push 0x1a
push str.Querying_registry_value...
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401890
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x58], 5
call fcn.004122d0
mov eax, dword [esp + 0x4c]
add esp, 4
cmp eax, edi
mov dword [esp + 0x54], ebp
jb 0x414434
mov eax, dword [esp + 0x34]
push eax
call fcn.0041aebd
add esp, 4
mov eax, dword [esp + 0x64]
cmp dword [eax + 0x18], edi
jb 0x414442
mov eax, dword [eax + 4]
jmp 0x414445
add eax, 4
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
push ecx
push edx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xe
push str.Closing_key...
lea ecx, [esp + 0x38]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00401890
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x58], 6
call fcn.004122d0
mov eax, dword [esp + 0x4c]
add esp, 4
cmp eax, edi
mov dword [esp + 0x54], ebp
jb 0x4144ab
mov edx, dword [esp + 0x34]
push edx
call fcn.0041aebd
add esp, 4
lea eax, [esp + 0x10]
push eax
call fcn.00414120
mov eax, dword [esp + 0x78]
add esp, 4
cmp eax, ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x34], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], esi
jne 0x41452f
push 0x26
push str.Registry_value_retrieved_successfully_
call fcn.00401890
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x58], 7
call fcn.004122d0
mov eax, dword [esp + 0x4c]
add esp, 4
cmp eax, edi
mov dword [esp + 0x54], ebp
jb 0x41450a
mov edx, dword [esp + 0x34]
push edx
call fcn.0041aebd
add esp, 4
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x5c]
push eax
mov ecx, esi
call fcn.00401a90
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
push 0x22
push str.FAILED____lResult_for_Query_Value
call fcn.00401890
mov ecx, dword [esp + 0x74]
push ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x5c], 8
call fcn.00413f20
mov eax, dword [esp + 0x50]
add esp, 8
cmp eax, edi
mov dword [esp + 0x54], ebp
jb 0x41456e
mov eax, dword [esp + 0x34]
push eax
call fcn.0041aebd
add esp, 4
push 0x38
push str.Failed_to_retrieve_registry_value__returning_default_one
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401890
mov ecx, dword [esp + 0x70]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x5c], 9
call fcn.00412300
mov eax, dword [esp + 0x34]
add esp, 8
cmp eax, edi
mov dword [esp + 0x54], ebp
jb 0x4145bd
mov eax, dword [esp + 0x18]
push eax
call fcn.0041aebd
add esp, 4
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x70]
push ebp
push ebx
push ecx
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov ecx, edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov byte [edi + 4], bl
call fcn.004017a0
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret