Function at 0x401c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff1c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x401eeb
mov edx, dword [ebp - 0xc]
shl edx, 2
lea edx, [edx + edx*4]
add edx, 0x40c590
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0xc]
shl ecx, 3
add ecx, 0x40c608
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0xc8
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x401c97
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0xe4]
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
mov edx, dword [ebp - 0x14]
push dword [edx]
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x401c90
cmp dword [ebp - 4], 1
jne 0x401c90
push 0xffffffffffffffff
lea ecx, [ebp - 0xe4]
push ecx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
push 1
push 0x400
call sub.KERNEL32.DLL_CompareStringW
cmp eax, 2
je 0x401c97
xor eax, eax
jmp 0x401f01
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0xc], 0
je 0x401d72
xor ebx, ebx
jmp 0x401d5f
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0xc]
mov eax, ebx
shl eax, 2
lea eax, [eax + eax*2]
add esi, eax
mov dword [ebp - 8], 0xc8
cmp byte [esi + 4], 0
je 0x401d23
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0xe4]
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [esi]
mov edx, dword [ebp - 0x14]
push dword [edx]
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x401d1c
cmp dword [ebp - 4], 1
jne 0x401d1c
push 0xffffffffffffffff
lea ecx, [ebp - 0xe4]
push ecx
push 0xffffffffffffffff
cmp dword [esi + 8], 0
jne 0x401d07
mov eax, 0x40c228
jmp 0x401d0a
mov eax, dword [esi + 8]
push eax
push 1
push 0x400
call sub.KERNEL32.DLL_CompareStringW
cmp eax, 2
je 0x401d5e
xor eax, eax
jmp 0x401f01
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0xe4]
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [esi]
mov edx, dword [ebp - 0x14]
push dword [edx]
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x401d57
cmp dword [ebp - 4], 4
jne 0x401d57
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0xe4]
je 0x401d5e
xor eax, eax
jmp 0x401f01
inc ebx
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0xc]
cmp dword [eax + edx*4], 0
jne 0x401cab
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
je 0x401ee8
xor ecx, ecx
mov dword [ebp - 0x18], ecx
jmp 0x401ed2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov esi, dword [eax + 0x10]
mov eax, dword [ebp - 0x18]
shl eax, 2
mov ecx, dword [edx + 4]
lea eax, [eax + eax*2]
add esi, eax
mov eax, dword [ebp - 0x18]
shl eax, 2
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], 0xc8
cmp dword [esi + 4], 0
je 0x401e05
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0xe4]
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
mov edx, dword [ebp - 0x1c]
push dword [edx]
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x401dfe
cmp dword [ebp - 4], 1
jne 0x401dfe
push 0xffffffffffffffff
lea ecx, [ebp - 0xe4]
push ecx
push 0xffffffffffffffff
push dword [esi + 4]
push 1
push 0x400
call sub.KERNEL32.DLL_CompareStringW
cmp eax, 2
je 0x401e05
xor eax, eax
jmp 0x401f01
cmp dword [esi + 8], 0
je 0x401ecf
xor edi, edi
jmp 0x401ebf
mov ebx, edi
shl ebx, 2
lea ebx, [ebx + ebx*2]
add ebx, dword [esi + 8]
mov dword [ebp - 8], 0xc8
cmp byte [ebx + 4], 0
je 0x401e86
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0xe4]
push edx
lea ecx, [ebp - 4]
push ecx
push 0
push dword [ebx]
mov eax, dword [ebp - 0x1c]
push dword [eax]
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x401e82
cmp dword [ebp - 4], 1
jne 0x401e82
push 0xffffffffffffffff
lea edx, [ebp - 0xe4]
push edx
push 0xffffffffffffffff
cmp dword [ebx + 8], 0
jne 0x401e6d
mov ecx, 0x40c228
jmp 0x401e70
mov ecx, dword [ebx + 8]
push ecx
push 1
push 0x400
call sub.KERNEL32.DLL_CompareStringW
cmp eax, 2
je 0x401ebe
xor eax, eax
jmp 0x401f01
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xe4]
push eax
lea edx, [ebp - 4]
push edx
push 0
push dword [ebx]
mov ecx, dword [ebp - 0x14]
push dword [ecx]
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x401eba
cmp dword [ebp - 4], 4
jne 0x401eba
mov eax, dword [ebx + 8]
mov edx, dword [eax]
cmp edx, dword [ebp - 0xe4]
je 0x401ebe
xor eax, eax
jmp 0x401f01
inc edi
lea edx, [edi + edi*2]
mov ecx, dword [esi + 8]
cmp dword [ecx + edx*4], 0
jne 0x401e16
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x10]
lea eax, [eax + eax*2]
cmp dword [ecx + eax*4], 0
jne 0x401d89
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*4]
cmp dword [eax*4 + 0x40c594], 0
jne 0x401c16
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret