Function at 0x40c1f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
push ebx
mov dword [esp + 0x18], ecx
push ebp
xor eax, eax
xor ebx, ebx
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov esi, dword [edx + 4]
lea ecx, [edx + 4]
add ecx, 4
mov dword [esp + 0x1c], esi
mov esi, dword [ecx]
add ecx, 4
push edi
mov edi, dword [ecx]
add ecx, 4
mov dword [esp + 0x30], esi
test edi, edi
je 0x40c239
mov eax, dword [ecx]
mov dword [esp + 0x14], eax
add ecx, 4
lea edi, [esp + 0x14]
mov esi, dword [ecx]
add ecx, 4
mov dword [esp + 0x1c], esi
mov esi, dword [ecx]
add ecx, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x40c257
lea esi, [esp + 0x28]
mov dword [esp + 0x18], esi
mov esi, dword [ecx]
mov ebp, dword [ecx + 4]
add ecx, 4
add ecx, 4
test ebp, ebp
je 0x40c273
mov ebx, dword [ecx]
mov dword [esp + 0x10], ebx
add ecx, 4
lea ebp, [esp + 0x10]
sub ecx, edx
cmp ecx, dword [esp + 0x38]
ja 0x40c2b2
cmp dword [esp + 0x30], 0
je 0x40c2bc
test edi, edi
je 0x40c2bc
lea edx, [eax - 1]
cmp edx, 0xfff
ja 0x40c2bc
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d8b8
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
jne 0x40c2c6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov dword [esp + 0x30], 0
jmp 0x40c2ca
mov ebx, dword [esp + 0x10]
test esi, esi
je 0x40c308
test ebp, ebp
je 0x40c308
lea eax, [ebx - 1]
cmp eax, 0x12ffe
ja 0x40c308
push ebx
call fcn.0041d8b8
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40c314
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40c2fe
push eax
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 + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
push ebp
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x34]
push edi
push eax
push ecx
push edx
mov dword [ebx], 0x2efa
lea esi, [ebx + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, dword [esp + 0x30]
mov dword [ebx + 8], eax
mov dword [esi], edi
add esi, 4
test edi, edi
je 0x40c363
mov eax, dword [esp + 0x14]
mov edi, esi
add esi, 4
mov dword [edi], eax
mov dword [esi], ecx
add esi, 4
test ecx, ecx
je 0x40c394
test edi, edi
je 0x40c394
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c394
cmp eax, 0x1000
ja 0x40c394
cmp dword [ebx + 8], 0
jne 0x40c394
lea edi, [eax + eax]
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 0x40c3ac
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 0x40c3ca
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 0x40c3fa
test ebp, ebp
je 0x40c3fa
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c3fa
cmp eax, 0x13000
jae 0x40c3fa
cmp dword [ebx + 8], 0
jne 0x40c3fa
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 0x40c412
push ecx
call fcn.0041af0b
add esp, 4
test edi, edi
je 0x40c41f
push edi
call fcn.0041af0b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret