Function at 0x402d76
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0xc]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
shl esi, 2
push esi
push eax
call fcn.0040302a
test al, al
je 0x402f81
push edi
mov edi, dword [ebp - 0xc]
push esi
push 0
push edi
call fcn.004078e2
xor esi, esi
add esp, 0xc
mov dword [ebp - 0x14], esi
test ebx, ebx
jle 0x402f79
mov edx, dword [ebp + 8]
add edx, 0x10
mov dword [ebp + 8], edx
cmp dword [edx - 0x10], 0
jne 0x402f67
cmp dword [edi + esi*4], 0
jne 0x402f67
mov eax, dword [edx]
cmp byte [eax], 0
jne 0x402dde
mov ecx, dword [ebp + 0x10]
jmp 0x402e00
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 4]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], esi
cmp esi, ebx
jge 0x402f54
lea esi, [edx - 8]
mov edx, dword [edx]
mov eax, dword [esi + 8]
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x402e38
test bl, bl
je 0x402e32
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x402e38
add eax, 2
add edx, 2
test bl, bl
jne 0x402e16
xor ebx, ebx
mov eax, ebx
jmp 0x402e3f
sbb eax, eax
or eax, 1
xor ebx, ebx
test eax, eax
jne 0x402f36
mov eax, dword [ebp - 8]
mov dword [edi + eax*4], 1
cmp dword [esi - 8], ebx
jne 0x402f33
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x402f36
mov eax, dword [esi + 4]
sub eax, ebx
je 0x402f0d
sub eax, 1
je 0x402f09
sub eax, 1
je 0x402ef3
sub eax, 1
jne 0x402f36
push 1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xc]
push ecx
call fcn.0040252b
test eax, eax
je 0x402f33
mov edi, dword [ebp - 0x10]
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
push 0
lea eax, [ebx + ebx]
push eax
call fcn.00401e26
mov dword [esi - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x402ee6
push ebx
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebx + ebx]
mov dword [esi - 8], 1
mov dword [esi], eax
test edi, edi
je 0x402f33
push edi
call fcn.0040ef41
pop ecx
jmp 0x402f33
push 3
push esi
lea eax, [esi - 4]
push eax
push dword [esi + 0xc]
push ecx
call fcn.0040252b
test eax, eax
je 0x402f33
jmp 0x402f2c
push 1
jmp 0x402ef5
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea eax, [esi - 4]
push eax
push ebx
push ebx
push dword [esi + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402f33
mov dword [esi - 8], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add esi, 0x18
mov ebx, dword [ebp + 0xc]
inc eax
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp eax, ebx
jl 0x402e11
mov esi, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
je 0x402f64
test ecx, ecx
je 0x402f64
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 8]
inc esi
add edx, 0x18
mov dword [ebp - 0x14], esi
mov dword [ebp + 8], edx
cmp esi, ebx
jl 0x402dbe
push edi
call fcn.0040ef41
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc