Function at 0x40bfd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x14], eax
push ebx
lea eax, [edx + 4]
add eax, 4
push ebp
push esi
mov esi, dword [eax]
add eax, 4
push edi
mov edi, dword [eax]
add eax, 4
mov dword [esp + 0x20], ecx
test edi, edi
je 0x40c009
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
add eax, 4
lea edi, [esp + 0x14]
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x40c027
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], ecx
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
add eax, 4
add eax, 4
test ebp, ebp
je 0x40c043
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
add eax, 4
lea ebp, [esp + 0x10]
sub eax, edx
cmp eax, dword [esp + 0x38]
ja 0x40c073
test esi, esi
je 0x40c07d
test edi, edi
je 0x40c07d
mov eax, dword [esp + 0x14]
lea edx, [eax - 1]
cmp edx, 0xfff
ja 0x40c07d
push eax
call fcn.0041d8b8
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
jne 0x40c085
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x40c0c4
test ebp, ebp
je 0x40c0c4
mov eax, dword [esp + 0x10]
lea ecx, [eax - 1]
cmp ecx, 0x12ffe
ja 0x40c0c4
push eax
call fcn.0041d8b8
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40c0d0
mov edx, dword [esp + 0x30]
push edx
call fcn.0041af0b
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
push ebp
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push edi
push edx
push eax
push ecx
mov dword [ebx], 0x7ea
lea esi, [ebx + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [esp + 0x30]
mov dword [ebx + 8], eax
mov dword [esi], edi
add esi, 4
test edi, edi
je 0x40c11f
mov edx, dword [esp + 0x14]
mov edi, esi
add esi, 4
mov dword [edi], edx
mov dword [esi], ecx
add esi, 4
test ecx, ecx
je 0x40c14e
test edi, edi
je 0x40c14e
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40c14e
cmp edi, 0x1000
ja 0x40c14e
cmp dword [ebx + 8], 0
jne 0x40c14e
push edi
push ecx
push esi
call fcn.0041a2b0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
add esi, edi
mov eax, dword [esp + 0x18]
mov dword [esi], eax
add esi, 4
test eax, eax
je 0x40c166
mov edx, dword [esp + 0x28]
mov eax, esi
add esi, 4
mov dword [eax], edx
mov edi, dword [esp + 0x38]
mov dword [esi], ebp
add esi, 4
test ebp, ebp
je 0x40c184
mov eax, dword [esp + 0x10]
mov ebp, esi
add esi, 4
mov dword [ebp], eax
mov dword [esi], edi
add esi, 4
test edi, edi
je 0x40c1b4
test ebp, ebp
je 0x40c1b4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c1b4
cmp eax, 0x13000
jae 0x40c1b4
cmp dword [ebx + 8], 0
jne 0x40c1b4
push eax
push edi
push esi
call fcn.0041a2b0
mov ecx, dword [esp + 0x3c]
add esp, 0xc
add esi, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
sub esi, ebx
mov dword [ebx + 4], esi
mov dword [edx], esi
test ecx, ecx
je 0x40c1cc
push ecx
call fcn.0041af0b
add esp, 4
test edi, edi
je 0x40c1d9
push edi
call fcn.0041af0b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret