Function at 0x41b4e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
xor ebp, ebp
mov ecx, dword [eax + 8]
push esi
cmp ecx, ebp
push edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
jne 0x41b531
push str.sPath.empty__
push str.Error______s
push 0x26
push str.....includehpzgluehpzglue_registry.cpp
push ebp
push 0x4321c8
call fcn.00418600
add esp, 0x18
jmp 0x41b6ff
mov esi, dword [esp + 0x30]
cmp dword [esi + 8], ebp
jne 0x41b548
push str.sValueName.empty__
push str.Error______s
push 0x27
jmp 0x41b519
mov ebx, dword [esp + 0x34]
cmp ebx, ebp
jne 0x41b55e
push str.psValueData__0
push str.Error______s
push 0x28
jmp 0x41b519
mov ecx, dword [esp + 0x3c]
cmp ecx, ebp
jne 0x41b574
push str.hkRoot__0
push str.Error______s
push 0x29
jmp 0x41b519
mov eax, dword [eax + 4]
cmp eax, ebp
jne 0x41b580
mov eax, 0x42b144
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebp
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x41b5ac
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x2b
jmp 0x41b519
mov eax, dword [esi + 4]
cmp eax, ebp
jne 0x41b5b8
mov eax, 0x42b144
lea ecx, [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea edx, [esp + 0x24]
push ebp
push edx
push ebp
push eax
mov eax, dword [esp + 0x28]
push eax
call edi
cmp eax, ebp
mov dword [esp + 0x18], eax
jne 0x41b6ff
cmp dword [esp + 0x20], 1
je 0x41b5f6
push str.dwType___REG_SZ
push str.Error______s
push 0x2f
jmp 0x41b519
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x41b60f
push str.cbData__0
push str.Error______s
push 0x30
jmp 0x41b519
push eax
call fcn.00422872
mov esi, eax
add esp, 4
cmp esi, ebp
mov dword [esp + 0x24], esi
jne 0x41b633
push str.pbData__0
push str.Error______s
push 0x32
jmp 0x41b519
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
cmp eax, ebp
jne 0x41b643
mov eax, 0x42b144
lea edx, [esp + 0x1c]
push edx
push esi
push ebp
push ebp
push eax
mov eax, dword [esp + 0x28]
push eax
call edi
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x41b66c
push str.lResult___ERROR_SUCCESS
push str.Error______s
push 0x35
jmp 0x41b519
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
call fcn.0041b070
cmp eax, ebp
jae 0x41b68a
call fcn.00422147
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x41b6af
mov al, byte [ecx - 1]
test al, al
je 0x41b6af
cmp al, 0xff
je 0x41b6af
test ebp, ebp
jne 0x41b6d3
dec al
push ebp
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00402000
jmp 0x41b6f8
test ebp, ebp
jne 0x41b6be
push 1
mov ecx, ebx
call fcn.00402000
jmp 0x41b6f8
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x41b6ca
cmp eax, ebp
jae 0x41b6db
push 1
mov ecx, ebx
call fcn.00402000
push ebp
mov ecx, ebx
call fcn.00402210
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov byte [esp + 0x13], 1
xor ebp, ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41b70e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x41b71f
push eax
call fcn.0042213c
add esp, 4
mov edx, dword [esp + 0x18]
cmp edx, ebp
je 0x41b766
cmp byte [esp + 0x38], 1
jne 0x41b766
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
mov ecx, 0x42b144
cmp eax, ebp
je 0x41b740
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
cmp eax, ebp
jne 0x41b750
mov eax, 0x42b144
push edx
push ecx
push eax
push str.RegGetStringValue___s___s__Failed__lResult___d
push ebp
push 0x4321c8
call fcn.004183b0
add esp, 0x18
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret