Function at 0x41c410
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42ab00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov al, byte [esp + 0x68]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x17], 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x40], al
call fcn.00402000
mov edi, 0x431f30
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x40]
push ebp
call fcn.004020f0
test al, al
je 0x41c49e
mov edi, dword [esp + 0x40]
mov ecx, ebp
mov edx, ecx
mov esi, 0x431f30
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 [esp + 0x40]
mov dword [esp + 0x44], ebp
mov byte [eax + ebp], bl
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x64], ebx
cmp edi, ebx
jne 0x41c4bb
push str.hRegKey__0
push str.Error______s
push 0x32a
jmp 0x41c52f
mov ecx, dword [esp + 0x70]
cmp dword [ecx + 8], ebx
jne 0x41c4d5
push str.sPath.empty__
push str.Error______s
push 0x32b
jmp 0x41c52f
mov esi, dword [esp + 0x74]
cmp dword [esi + 8], ebx
jne 0x41c4ef
push str.sValueName.empty__
push str.Error______s
push 0x32c
jmp 0x41c52f
cmp dword [esp + 0x7c], ebx
jne 0x41c506
push str.psLocation__0
push str.Error______s
push 0x32d
jmp 0x41c52f
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push ebx
push edx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x41c547
push str._lResult__RegQueryInfoKey__hRegKey__0__0__0__nSubkeys__0__0__0__0__0__0__0______ERROR_SUCCESS
push str.Error______s
push 0x32f
push str.....includehpzgluehpzglue_registry.cpp
push ebx
push 0x4321c8
call fcn.00418600
add esp, 0x18
jmp 0x41c783
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x41c553
mov eax, 0x42b144
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push ebx
push edx
push ebx
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
jne 0x41c7fb
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x41c583
cmp eax, 7
jne 0x41c7fb
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41c7fb
push eax
call fcn.00422872
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x24], esi
jne 0x41c5b6
push str.pbData__0
push str.Error______s
push 0x337
jmp 0x41c983
mov eax, dword [esp + 0x74]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x41c5c6
mov eax, 0x42b144
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push esi
push edx
push ebx
push eax
mov eax, dword [esp + 0x80]
push eax
call edi
cmp eax, ebx
je 0x41c5f5
push str._lResult__RegQueryValueEx__hRegKey__sValueName.c_str____0__dwType__pbData__cbData______ERROR_SUCCESS
push str.Error______s
push 0x33a
jmp 0x41c983
mov ebp, dword [esp + 0x78]
mov edx, dword [ebp + 8]
cmp edx, ebx
jne 0x41c623
mov ecx, dword [0x42b140]
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x80]
push ebx
push edx
call fcn.00401e00
mov byte [esp + 0x13], 1
jmp 0x41c772
mov al, byte [esp + 0x80]
test al, al
jne 0x41c66f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push edx
push ebx
mov ecx, ebp
call fcn.00402e10
cmp eax, ebx
jne 0x41c7ff
mov eax, dword [0x42b140]
mov ecx, dword [esp + 0x70]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x88]
call fcn.00401e00
mov byte [esp + 0x13], 1
jmp 0x41c772
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x2c], dl
push ecx
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.00402050
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov byte [esp + 0x64], 1
mov dword [esp + 0x28], ecx
mov ebx, 0x42b144
je 0x41c6b4
mov ebx, eax
test ecx, ecx
jne 0x41c6bc
xor esi, esi
jmp 0x41c71d
mov edi, dword [esp + 0x34]
test edi, edi
jbe 0x41c717
cmp ecx, edi
ja 0x41c717
mov ebp, dword [esp + 0x30]
mov eax, 1
sub eax, ecx
push ebx
add edi, eax
push edi
push ebp
call fcn.0041ccd0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41c713
mov ecx, dword [esp + 0x28]
push ecx
push ebx
push esi
call fcn.00410ab0
add esp, 0xc
test eax, eax
je 0x41c75a
sub ebp, esi
push ebx
lea edi, [edi + ebp - 1]
lea ebp, [esi + 1]
push edi
push ebp
call fcn.0041ccd0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41c6e6
mov ebp, dword [esp + 0x78]
mov esi, dword [0x42b140]
mov eax, dword [0x42b140]
cmp esi, eax
je 0x41c7cd
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x7c]
push eax
push 0
push edx
call fcn.00401e00
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x13], 1
test ecx, ecx
je 0x41c770
mov al, byte [ecx - 1]
test al, al
je 0x41c766
cmp al, 0xff
je 0x41c766
dec al
mov byte [ecx - 1], al
jmp 0x41c770
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x78]
sub esi, eax
jmp 0x41c71d
dec ecx
push ecx
call fcn.0042213c
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x41c783
push eax
call fcn.0042213c
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41c792
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
cmp ecx, ebx
pop ebx
je 0x41ca13
mov al, byte [ecx - 1]
test al, al
je 0x41ca09
cmp al, 0xff
je 0x41ca09
dec al
mov byte [ecx - 1], al
mov al, byte [esp + 3]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x64], 0
test ecx, ecx
je 0x41c7f7
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x41c7ee
cmp al, 0xff
je 0x41c7ee
dec al
xor ebx, ebx
mov byte [ecx], al
jmp 0x41c7ff
push ecx
call fcn.0042213c
add esp, 4
xor ebx, ebx
jmp 0x41c7ff
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, ebx
jbe 0x41c772
push 0x105
call fcn.00422872
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41c974
mov eax, dword [esp + 0x6c]
push 0x105
push esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x41c99b
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x41c9ac
cmp dword [esp + 0x14], ebx
je 0x41c9bd
mov eax, dword [esp + 0x70]
push 0x42d8ac
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.004023f0
push esi
lea edx, [esp + 0x3c]
push eax
push edx
mov byte [esp + 0x7c], 2
call fcn.004023f0
add esp, 0x18
mov ecx, dword [0x42b140]
mov byte [esp + 0x64], 3
push ecx
push ebx
push eax
lea ecx, [esp + 0x48]
call fcn.00401e00
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x41c8cb
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41c8c2
cmp al, 0xff
je 0x41c8c2
dec al
mov byte [ecx], al
jmp 0x41c8cb
push ecx
call fcn.0042213c
add esp, 4
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], ebx
cmp eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x64], 0
je 0x41c901
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41c8f8
cmp al, 0xff
je 0x41c8f8
dec al
mov byte [ecx], al
jmp 0x41c901
push ecx
call fcn.0042213c
add esp, 4
push esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.0042213c
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, ebx
je 0x41c9f5
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x74]
push edx
push eax
mov eax, dword [esp + 0x1c]
push ebp
lea edx, [esp + 0x48]
push ecx
push edx
push eax
call fcn.0041c410
add esp, 0x18
cmp al, 1
mov byte [esp + 0x13], al
je 0x41c772
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
mov dword [esp + 0x14], ebx
jb 0x41c80d
jmp 0x41c772
push str.pszSubkeyName__0
push str.Error______s
push 0x35a
push str.....includehpzgluehpzglue_registry.cpp
push ebx
push 0x4321c8
call fcn.00418600
add esp, 0x18
jmp 0x41c772
push str._lResult__RegEnumKey__hRegKey__iSubkey__pszSubkeyName___MAX_PATH__1______ERROR_SUCCESS
push str.Error______s
push 0x35c
jmp 0x41c9cc
push str._lResult__RegOpenKeyEx__hRegKey__pszSubkeyName__0__KEY_READ__hRegSubkey______ERROR_SUCCESS
push str.Error______s
push 0x35e
jmp 0x41c9cc
push str.hRegSubkey__0
push str.Error______s
push 0x35f
push str.....includehpzgluehpzglue_registry.cpp
push ebx
push 0x4321c8
call fcn.00418600
add esp, 0x18
cmp esi, ebx
je 0x41c772
push esi
call fcn.0042213c
add esp, 4
jmp 0x41c772
push str.sNewPath.empty__
push str.Error______s
push 0x363
jmp 0x41c983
dec ecx
push ecx
call fcn.0042213c
add esp, 4
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 3]
mov dword fs:[0], ecx
add esp, 0x58
ret