Function at 0x458820
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494591
mov eax, dword fs:[0]
push eax
sub esp, 0x838
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 ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x824], edi
mov byte [ebx + 8], 7
and dword [ebx + 8], 0xfffffeff
push 0x10
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x814], ecx
mov dword [ebx + 0xc], edi
call fcn.004739eb
add esp, 4
mov dword [ebp - 0x818], eax
mov dword [ebp - 4], 1
cmp eax, edi
je 0x4588a6
mov esi, eax
call fcn.00451710
jmp 0x4588a8
xor eax, eax
mov dword [ebx], eax
mov dword [ebp - 0x824], 1
mov dword [ebp - 0x830], edi
mov dword [ebp - 0x82c], edi
mov dword [ebp - 0x828], edi
mov eax, dword [ebp - 0x814]
lea edx, [ebp - 0x818]
push edx
push 0x20019
push edi
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x81c]
push eax
push ecx
mov dword [ebp - 0x818], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x458995
mov esi, dword [ebp - 0x818]
push esi
push ebx
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x82c], edi
call fcn.00458430
add esp, 8
mov dword [ebp - 0x814], edi
mov edi, edi
mov eax, dword [ebp - 0x814]
push 0x400
lea edx, [ebp - 0x810]
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
jne 0x458a8a
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax*4 + 1]
cmp edi, 0x3fffffff
jg 0x4589a0
mov eax, edi
call fcn.00486070
mov esi, esp
test esi, esi
je 0x4589a0
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 esi, eax
jmp 0x4589a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x458a95
xor esi, esi
mov edx, dword [ebp - 0x818]
lea ecx, [ebp - 0x810]
push ecx
push edx
lea eax, [ebp - 0x840]
push eax
call fcn.00458820
add esp, 0xc
mov edi, eax
push esi
push ebx
mov byte [ebp - 4], 3
call fcn.0044f840
mov esi, eax
mov eax, edi
call fcn.0044ef80
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x838]
movsx eax, cl
cmp eax, 4
je 0x458a35
add eax, 0xfffffffa
cmp eax, 1
ja 0x458a50
mov esi, dword [ebp - 0x840]
mov dword [ebp - 0x81c], esi
test esi, esi
je 0x458a50
mov byte [ebp - 4], 4
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x844]
call fcn.00452330
mov byte [ebp - 4], 2
mov ebx, dword [esi + 4]
push ebx
call fcn.004736d0
mov ecx, esi
push ecx
call fcn.004736d0
mov ebx, dword [ebp - 0x820]
add esp, 8
jmp 0x458a50
test ecx, 0x100
je 0x458a50
mov eax, dword [ebp - 0x840]
test eax, eax
je 0x458a50
push eax
call fcn.00473eae
add esp, 4
mov eax, dword [ebp - 0x834]
test eax, eax
je 0x458a77
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x44ec30
push edx
push 4
push eax
call fcn.004756e7
push esi
call fcn.00473f95
add esp, 4
inc dword [ebp - 0x814]
mov esi, dword [ebp - 0x818]
xor edi, edi
jmp 0x458920
cmp esi, edi
je 0x458a95
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
lea esp, [ebp - 0x854]
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