Function at 0x458430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493cbc
mov eax, dword fs:[0]
push eax
mov eax, 0x10248
call fcn.0047f210
mov eax, dword [0x4b6798]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10214]
push ecx
lea edx, [ebp - 0x10210]
push edx
lea ecx, [ebp - 0x10224]
push ecx
xor esi, esi
push esi
lea edx, [ebp - 0x10218]
push edx
lea ecx, [ebp - 0x810]
push ecx
mov dword [ebp - 0x10220], eax
mov eax, dword [ebp + 0xc]
push esi
push eax
mov dword [ebp - 0x1022c], eax
mov dword [ebp - 0x1021c], esi
mov dword [ebp - 0x10218], 0x400
mov dword [ebp - 0x10214], 0xf9fe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x4587f6
jmp 0x4584d0
mov eax, dword [ebp - 0x10224]
cmp eax, 4
jne 0x458608
mov edx, dword [ebp - 0x10234]
mov eax, dword [ebp - 0x10210]
and edx, 0xffffff01
or edx, 1
mov dword [ebp - 0x10234], edx
cdq
mov ebx, eax
mov dword [ebp - 0x10230], esi
mov dword [ebp - 0x1023c], ebx
mov dword [ebp - 0x10238], edx
lea eax, [ebp - 0x810]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax*4 + 1]
cmp edi, 0x3fffffff
jg 0x458565
mov eax, edi
call fcn.00486070
mov esi, esp
test esi, esi
je 0x458565
push 0
push 0
lea ecx, [edi + edi]
push ecx
push esi
push 0xffffffffffffffff
lea edx, [ebp - 0x810]
push edx
push 0
push 0xfde9
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x458567
xor eax, eax
push eax
mov eax, dword [ebp - 0x10220]
push eax
call fcn.0044f840
mov esi, eax
lea eax, [ebp - 0x1023c]
call fcn.0044ef80
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10234]
movsx eax, cl
cmp eax, 4
je 0x4585e9
add eax, 0xfffffffa
cmp eax, 1
ja 0x458799
mov dword [ebp - 0x10228], ebx
test ebx, ebx
je 0x458799
mov dword [ebp - 4], 1
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x10254]
mov esi, ebx
call fcn.00452330
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx + 4]
push ecx
call fcn.004736d0
push ebx
call fcn.004736d0
add esp, 8
jmp 0x458799
test ecx, 0x100
je 0x458799
test ebx, ebx
je 0x458799
push ebx
call fcn.00473eae
jmp 0x458796
cmp eax, 1
je 0x458616
cmp eax, 2
jne 0x458799
mov eax, dword [ebp - 0x10214]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x10210]
xor edx, edx
push ecx
mov word [ebp + eax*2 - 0x10210], dx
call ebx
lea edi, [eax*4 + 1]
cmp edi, 0x3fffffff
jg 0x45867b
mov eax, edi
call fcn.00486070
mov esi, esp
test esi, esi
je 0x45867b
push 0
push 0
lea edx, [edi + edi]
push edx
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x10210]
push eax
push 0
push 0xfde9
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x45867d
xor eax, eax
push eax
lea edi, [ebp - 0x1024c]
call fcn.0044ed00
lea ecx, [ebp - 0x810]
push ecx
mov dword [ebp - 4], 2
call ebx
lea edi, [eax*4 + 1]
cmp edi, 0x3fffffff
jg 0x4586df
mov eax, edi
call fcn.00486070
mov esi, esp
test esi, esi
je 0x4586df
push 0
push 0
lea edx, [edi + edi]
push edx
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x810]
push eax
push 0
push 0xfde9
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x4586e1
xor eax, eax
mov ecx, dword [ebp - 0x10220]
push eax
push ecx
call fcn.0044f840
mov esi, eax
lea eax, [ebp - 0x1024c]
call fcn.0044ef80
or ebx, 0xffffffff
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x10244]
movsx eax, cl
cmp eax, 4
je 0x458757
add eax, 0xfffffffa
cmp eax, 1
ja 0x458772
mov esi, dword [ebp - 0x1024c]
mov dword [ebp - 0x10228], esi
test esi, esi
je 0x458772
mov dword [ebp - 4], 3
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x10250]
call fcn.00452330
mov dword [ebp - 4], ebx
mov edx, dword [esi + 4]
push edx
call fcn.004736d0
push esi
call fcn.004736d0
add esp, 8
jmp 0x458772
test ecx, 0x100
je 0x458772
mov eax, dword [ebp - 0x1024c]
test eax, eax
je 0x458772
push eax
call fcn.00473eae
add esp, 4
mov eax, dword [ebp - 0x10240]
test eax, eax
je 0x458799
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x44ec30
push ecx
push 4
push eax
call fcn.004756e7
push esi
call fcn.00473f95
add esp, 4
mov eax, dword [ebp - 0x1021c]
lea edx, [ebp - 0x10214]
push edx
lea ecx, [ebp - 0x10210]
push ecx
lea edx, [ebp - 0x10224]
push edx
xor esi, esi
push esi
lea ecx, [ebp - 0x10218]
push ecx
inc eax
lea edx, [ebp - 0x810]
push edx
push eax
mov dword [ebp - 0x1021c], eax
mov eax, dword [ebp - 0x1022c]
push eax
mov dword [ebp - 0x10218], 0x400
mov dword [ebp - 0x10214], 0xf9fe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4584d0
lea esp, [ebp - 0x10264]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret