Function at 0x45b490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7e33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
xor ecx, ecx
push edi
mov eax, dword [esi + 8]
mov dword [esi + 4], ecx
cmp eax, ecx
mov dword [esi], ecx
je 0x45b4e0
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.0044d0c0
push ecx
push 4
push eax
call fcn.004b0340
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ecx, ecx
mov dword [esi + 8], ecx
mov eax, dword [ebx + 4]
cmp eax, ecx
jne 0x45b4f1
xor al, al
jmp 0x45b69a
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], ecx
push edx
lea edx, [ebp - 0x10]
push ecx
push edx
push ecx
mov ecx, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45b514
xor al, al
jmp 0x45b69a
cmp dword [ebp - 0x10], 7
je 0x45b521
xor al, al
jmp 0x45b69a
mov eax, dword [ebp + 0xc]
add eax, 3
and al, 0xfc
call fcn.004b0510
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0xc]
mov edi, esp
push edx
mov edx, dword [ebx + 4]
lea eax, [ebp - 0x10]
push edi
push eax
push 0
push ecx
push edx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45b557
xor al, al
jmp 0x45b69a
mov eax, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
mov dword [ebp - 0x18], ebx
jbe 0x45b698
jmp 0x45b56c
mov edi, dword [ebp - 0x1c]
lea edx, [ebx + edi]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
inc edi
cmp edi, 1
mov dword [ebp - 0x20], edi
jne 0x45b594
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 1]
cmp eax, ecx
jae 0x45b698
push 0
push 0xffffffffffffffff
push edx
lea ecx, [ebp - 0x14]
call fcn.0044d050
mov eax, dword [esi + 4]
mov ecx, dword [esi]
inc eax
mov dword [ebp - 4], 0
cmp ecx, eax
jge 0x45b660
jle 0x45b5ba
mov eax, ecx
mov edi, dword [esi + 0xc]
imul edi, eax
add edi, dword [esi + 0x10]
lea ecx, [edi*4 + 4]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x45b5fb
push fcn.0044d0c0
push 0x40d3d0
lea ebx, [eax + 4]
push edi
push 4
push ebx
mov dword [eax], edi
call fcn.004b047e
mov dword [ebp + 8], ebx
jmp 0x45b602
mov dword [ebp + 8], 0
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
mov byte [ebp - 4], 0
jle 0x45b62e
mov edx, dword [esi + 8]
mov ecx, dword [ebp + 8]
lea eax, [ebx*4]
add edx, eax
add ecx, eax
push edx
call fcn.0044c2f0
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
jl 0x45b60f
mov eax, dword [esi + 8]
mov dword [esi], edi
test eax, eax
je 0x45b654
mov edx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.0044d0c0
push edx
push 4
push eax
call fcn.004b0340
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [eax + edx*4]
call fcn.0044c2f0
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x14]
inc edx
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], edx
call fcn.0044d0c0
mov eax, dword [ebp + 0xc]
add ebx, edi
cmp ebx, eax
mov dword [ebp - 0x18], ebx
jb 0x45b569
mov al, 1
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x2c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8