Function at 0x471530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [0x4ae1b8]
push edi
mov ecx, esi
mov edi, eax
mov dword [esp + 0x1c], esi
call fcn.00414da0
test edi, edi
jne 0x47157e
mov ebx, 0x57
mov eax, ebx
mov ecx, dword [0x4aa988]
test ebx, ebx
mov dword [ecx + 0x30], eax
mov ecx, dword [ebp + 8]
setne dl
movzx eax, dl
push eax
push ecx
call fcn.0042f880
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x4aa988]
mov edx, dword [ecx + 0xb0]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
or edx, 0x20019
push edx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x47161e
mov edx, dword [ebp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push eax
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call edi
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
jne 0x471613
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 6
ja case.0x4715d8.5
jmp dword [eax*4 + 0x47183c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
mov dword [esp + 0x2c], 4
call edi
mov ebx, eax
test ebx, ebx
jne 0x471613
push 0x18
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, esi
call fcn.00401130
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 0xffffffff
jne 0x471558
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x47155a
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x14]
push edx
push ecx
push ecx
push ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call edi
mov ebx, eax
test ebx, ebx
jne 0x471613
mov eax, dword [esp + 0x14]
test eax, eax
je 0x471613
push 1
push ebx
add eax, 2
push eax
push ebx
push esi
call fcn.00477bd0
cmp eax, 1
je 0x471680
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 1
mov ecx, esi
call fcn.00401270
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0
push 0
push ecx
push edx
call edi
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4716f6
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4716f6
cmp byte [esi + ecx - 1], bl
jne 0x4716c4
dec ecx
jmp 0x4716c8
mov byte [esi + ecx], 0
cmp dword [esp + 0x18], 7
jne 0x4716f9
test ecx, ecx
je 0x4716da
cmp byte [esi + ecx - 1], 0
je 0x4716df
inc ecx
mov byte [esi + ecx], 0
xor eax, eax
test ecx, ecx
je 0x4716f9
cmp byte [eax + esi], 0
jne 0x4716ef
mov byte [eax + esi], 0xa
inc eax
cmp eax, ecx
jb 0x4716e5
jmp 0x4716f9
mov byte [esi], 0
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x471700
sub esi, ecx
mov edi, esi
mov esi, dword [esp + 0x1c]
mov eax, esi
call fcn.004151b0
push 0
mov eax, esi
call fcn.00415280
test eax, eax
jne 0x47161e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x14]
push edx
push ecx
push ecx
push ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call edi
mov ebx, eax
test ebx, ebx
jne 0x471613
mov eax, dword [esp + 0x14]
test eax, eax
je 0x471613
push 1
push ebx
lea edx, [eax + eax]
push edx
push ebx
push esi
call fcn.00477bd0
cmp eax, 1
je 0x471786
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 1
mov ecx, esi
call fcn.00401270
mov esi, eax
mov byte [esi], 0
mov ecx, dword [esp + 0x14]
lea eax, [esi + ecx]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push 0
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
push 0
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x47161e
xor ecx, ecx
xor edi, edi
cmp dword [esp + 0x14], ecx
jbe 0x471805
mov eax, dword [esp + 0x24]
movzx eax, byte [edi + eax]
mov edx, eax
and edx, 0xf
mov dl, byte [edx + str.0123456789ABCDEF]
shr eax, 4
mov byte [ecx + esi + 1], dl
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ecx + esi], al
inc edi
add ecx, 2
cmp edi, dword [esp + 0x14]
jb 0x4717d5
mov eax, dword [esp + 0x1c]
push 0
mov byte [ecx + esi], 0
call fcn.00415280
test eax, eax
jne 0x471558
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0x65e
jmp 0x471558