Function at 0x460e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10024
call fcn.00488480
push ebx
mov ebx, dword [0x4a09d8]
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4a13a4]
push 0x4916f4
call fcn.004668b0
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004668b0
test esi, esi
je case.0x460e9f.5
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.0x460e9f.5
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push eax
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call edi
test eax, eax
je 0x460e95
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x14]
dec eax
cmp eax, 6
ja case.0x460e9f.5
jmp dword [eax*4 + 0x461118]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push esi
push ecx
mov dword [esp + 0x28], 4
call edi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call fcn.004668b0
mov eax, dword [esp + 0x18]
push 0x18
push 0
push eax
mov eax, ebx
call fcn.004010d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push esi
push edx
mov dword [esp + 0x28], 0
call edi
test eax, eax
jne 0x460ff7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x460ff7
push 1
push 0
add eax, 2
push eax
push 0
mov ecx, ebx
call fcn.004668b0
cmp eax, 1
je 0x460f5e
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
mov ecx, ebx
call fcn.00401230
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
mov eax, dword [esp + 0x10]
push esi
push 0
push 0
push edx
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x460fb5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x460fb5
mov word [eax + esi], di
cmp dword [esp + 0x14], 7
jne 0x460fb8
mov eax, esi
cmp byte [eax], 0
jne 0x460fb2
cmp byte [eax + 1], 0
mov byte [eax], 0xa
je 0x460fb8
inc eax
jmp 0x460fa4
mov byte [esi], 0
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call fcn.004668b0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460fd3
sub eax, edx
mov edi, eax
mov eax, ebx
call fcn.004120b0
push 0
mov eax, ebx
call fcn.00412180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
call fcn.004668b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push esi
push edx
mov dword [esp + 0x28], 0xffff
call edi
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xea
je case.0x460e9f.5
mov ecx, dword [esp + 0x10]
push 1
push 0
lea edx, [ecx + ecx]
push edx
push 0
mov ecx, ebx
call fcn.004668b0
cmp eax, 1
jne 0x460f53
push eax
mov ecx, ebx
call fcn.00401230
mov edi, eax
mov byte [edi], 0
mov eax, dword [str.0123456789ABCDEF]
mov ecx, dword [0x496590]
mov dword [esp + 0x1c], eax
mov eax, dword [0x496594]
xor edx, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [0x496598]
mov dword [esp + 0x24], eax
mov al, byte [0x49659c]
xor esi, esi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2c], al
cmp dword [esp + 0x10], edx
jbe 0x4610e9
lea esp, [esp]
movzx ecx, byte [esp + esi + 0x30]
mov eax, ecx
shr ecx, 4
and eax, 0xf
mov al, byte [esp + eax + 0x1c]
and ecx, 0xf
mov cl, byte [esp + ecx + 0x1c]
mov byte [edx + edi + 1], al
mov byte [edx + edi], cl
inc esi
add edx, 2
cmp esi, dword [esp + 0x10]
jb 0x4610c0
mov ecx, dword [0x4a13a4]
push 1
push 0
push 0xffffffffffffffff
push 0x4900b0
mov byte [edx + edi], 0
call fcn.004668b0
push 0
mov eax, ebx
call fcn.00412180
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8