Function at 0x4026e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x124
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
and eax, 2
mov dword [esp + 0x14], eax
je 0x402704
push 1
call fcn.004026a0
test al, al
je 0x40270b
mov eax, dword [esi + 4]
test eax, eax
jne 0x402715
xor al, al
pop esi
add esp, 0x124
ret
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x402743
xor al, al
pop esi
add esp, 0x124
ret
push ebx
push 0x800
call fcn.0041e2e5
mov edx, dword [esi + 8]
add esp, 4
and edx, 0xfffffffd
mov ebx, eax
or edx, 8
mov dword [esi + 8], edx
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x40276a
xor eax, eax
jmp 0x402772
mov eax, dword [esi + 0x1c]
sub eax, ecx
sar eax, 2
mov ecx, dword [esp + 0xc]
push ebp
cmp ecx, eax
push edi
jbe 0x402809
mov edx, dword [esi + 0x18]
mov dword [esp + 0x24], ecx
test edx, edx
jne 0x40278f
xor eax, eax
jmp 0x402797
mov eax, dword [esi + 0x20]
sub eax, edx
sar eax, 2
cmp eax, ecx
jae 0x402809
test ecx, ecx
mov eax, ecx
jge 0x4027a3
xor eax, eax
shl eax, 2
push eax
call fcn.0041e2e5
mov edx, dword [esi + 0x1c]
mov edi, eax
mov eax, dword [esi + 0x18]
add esp, 4
cmp eax, edx
mov ecx, edi
je 0x4027cf
test ecx, ecx
je 0x4027c5
mov ebp, dword [eax]
mov dword [ecx], ebp
add eax, 4
add ecx, 4
cmp eax, edx
jne 0x4027bd
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x30], eax
call fcn.0041e30e
mov ecx, dword [esp + 0x28]
add esp, 4
lea edx, [edi + ecx*4]
mov ecx, dword [esi + 0x18]
test ecx, ecx
mov dword [esi + 0x20], edx
jne 0x4027f4
xor eax, eax
jmp 0x4027fc
mov eax, dword [esi + 0x1c]
sub eax, ecx
sar eax, 2
mov ecx, dword [esp + 0x14]
lea eax, [edi + eax*4]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], edi
xor edi, edi
test ecx, ecx
jbe 0x4028d0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push ebx
push edx
mov edx, dword [esi + 4]
lea eax, [esp + 0x34]
push 0
lea ecx, [esp + 0x40]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x48], 0x104
mov dword [esp + 0x30], 0x800
mov byte [esp + 0x50], 0
call ebp
test eax, eax
jne case.0x40285a.2
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 6
ja case.0x40285a.2
jmp dword [eax*4 + 0x4028fc]
lea ecx, [esp + 0x30]
push ebx
push ecx
mov ecx, esi
call fcn.00402430
mov ecx, eax
call fcn.00402000
jmp case.0x40285a.2
lea edx, [esp + 0x30]
push ebx
push edx
mov ecx, esi
call fcn.00402430
mov ecx, eax
call fcn.00401f50
jmp case.0x40285a.2
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x38]
push ebx
push ecx
mov ecx, esi
call fcn.00402430
mov ecx, eax
call fcn.00402200
jmp case.0x40285a.2
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push ebx
push eax
mov ecx, esi
call fcn.00402430
mov ecx, eax
call fcn.00402080
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jb 0x402819
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
pop edi
mov dword [esi + 8], ecx
test eax, eax
pop ebp
je 0x4028e8
mov ecx, esi
call fcn.004026d0
push ebx
call fcn.0041e30e
add esp, 4
mov al, 1
pop ebx
pop esi
add esp, 0x124
ret