Function at 0x411610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421f23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [ecx + 4]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x18], ecx
jne 0x41163f
xor al, al
jmp 0x411823
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x14]
push ecx
push 0
push edx
push 0
push esi
push eax
mov dword [ebp - 0x10], 0
call ebx
test eax, eax
je 0x41166a
xor al, al
jmp 0x411823
cmp dword [ebp - 0x14], 7
je 0x411677
xor al, al
jmp 0x411823
mov eax, dword [ebp - 0x10]
add eax, 3
and al, 0xfc
call fcn.00420160
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edi, esp
push eax
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x14]
push edi
push ecx
push 0
push esi
push eax
mov dword [ebp - 0x1c], edi
call ebx
test eax, eax
je 0x4116a9
xor al, al
jmp 0x411823
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
mov dword [esi + 4], 0
test eax, eax
mov dword [esi], 0
je 0x4116dd
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push fcn.00408300
push ecx
push 4
push eax
call fcn.0041fe60
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x10]
xor ebx, ebx
test eax, eax
mov dword [esi + 8], ebx
mov dword [ebp - 0x18], ebx
jbe 0x411821
jmp 0x4116f5
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 0x41171d
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + 1]
cmp eax, ecx
jae 0x411821
push 0
push 0xffffffffffffffff
push edx
lea ecx, [ebp + 0xc]
call fcn.004081b0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
inc eax
mov dword [ebp - 4], 0
cmp ecx, eax
jge 0x4117e9
jle 0x411743
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 0x411784
push fcn.00408300
push 0x40ac40
lea ebx, [eax + 4]
push edi
push 4
push ebx
mov dword [eax], edi
call fcn.0041fdde
mov dword [ebp + 8], ebx
jmp 0x41178b
mov dword [ebp + 8], 0
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
mov byte [ebp - 4], 0
jle 0x4117b7
mov edx, dword [esi + 8]
mov ecx, dword [ebp + 8]
lea eax, [ebx*4]
add edx, eax
add ecx, eax
push edx
call fcn.00408480
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
jl 0x411798
mov eax, dword [esi + 8]
mov dword [esi], edi
test eax, eax
je 0x4117dd
mov edx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.00408300
push edx
push 4
push eax
call fcn.0041fe60
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 + 0xc]
push ecx
lea ecx, [eax + edx*4]
call fcn.00408480
mov edx, dword [esi + 4]
lea ecx, [ebp + 0xc]
inc edx
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 4], edx
call fcn.00408300
mov eax, dword [ebp - 0x10]
add ebx, edi
cmp ebx, eax
mov dword [ebp - 0x18], ebx
jb 0x4116f2
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