Function at 0x40cae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov dword [ebp - 4], 0x1000
mov ecx, 0x400
xor eax, eax
mov edi, 0x42624c
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x42624c
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40cb23
xor al, al
jmp 0x40cd65
mov edi, 0x42624c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp - 0xc], 0
jbe 0x40cb4c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
jmp 0x40cb53
mov dword [ebp - 0x2c], 1
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 2
ja 0x40cb68
mov dword [ebp - 0x30], 1
jmp 0x40cb71
mov edx, dword [ebp - 8]
sub edx, 2
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x28]
jae 0x40cb7e
call fcn.004109f4
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 0
je 0x40cc86
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
xor ecx, ecx
mov cl, byte [eax - 1]
test ecx, ecx
je 0x40cc86
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
xor ecx, ecx
mov cl, byte [eax - 1]
cmp ecx, 0xff
je 0x40cc86
cmp dword [ebp - 0x28], 0
jne 0x40cc71
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
sub eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dl, byte [ecx]
sub dl, 1
mov eax, dword [ebp - 0x34]
mov byte [eax], dl
xor ecx, ecx
test ecx, ecx
je 0x40cbe7
mov edx, dword [ebp + 0x10]
cmp dword [edx + 4], 0
jne 0x40cbe9
jmp 0x40cc4a
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
xor edx, edx
mov dl, byte [ecx - 1]
test edx, edx
je 0x40cc0b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
xor edx, edx
mov dl, byte [ecx - 1]
cmp edx, 0xff
jne 0x40cc31
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
sub eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004109e9
add esp, 4
jmp 0x40cc4a
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
sub eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dl, byte [ecx]
sub dl, 1
mov eax, dword [ebp - 0x38]
mov byte [eax], dl
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], 0
mov byte [ebp - 0x18], 0
jmp 0x40cd13
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0040d8a0
mov byte [ebp - 0x18], 1
jmp 0x40cd13
cmp dword [ebp - 0x28], 0
jne 0x40ccba
mov edx, 1
test edx, edx
je 0x40cca1
push 1
mov ecx, dword [ebp + 0x10]
call fcn.0040d490
jmp 0x40ccb4
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0
je 0x40ccb4
push 0
mov ecx, dword [ebp + 0x10]
call fcn.0040d540
mov byte [ebp - 0x18], 0
jmp 0x40cd13
mov ecx, 1
test ecx, ecx
je 0x40ccef
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0xc], 0x1f
ja 0x40ccd7
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [ebp - 0x28]
jae 0x40ccef
push 1
mov ecx, dword [ebp + 0x10]
call fcn.0040d490
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0040d8a0
jmp 0x40cd0f
mov eax, 1
test eax, eax
jne 0x40cd0f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
cmp edx, dword [ebp - 0x28]
jae 0x40cd0f
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0040d8a0
mov byte [ebp - 0x18], 1
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
test ecx, ecx
je 0x40cd63
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x28]
mov esi, 0x42624c
mov edi, dword [ebp - 0x1c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x20], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dl, byte [ebp - 0x20]
mov byte [ecx], dl
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret