Function at 0x40169e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov edx, 0x12
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4016a4
mov edx, dword [esp + 0x50]
lea ecx, [esp]
call fcn.00403000
mov edx, dword [esp + 0x54]
lea ecx, [esp + 4]
call fcn.00403000
mov edx, dword [esp + 0x58]
lea ecx, [esp + 8]
call fcn.00403000
push dword [esp]
call fcn.0040217d
push dword [esp + 8]
mov edx, 0x4060dc
pop ecx
call fcn.004030b0
je 0x401743
cmp dword [0x406df4], 0
je 0x401727
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x406df8]
or ebx, 0xf003f
push ebx
push 0
push dword [0x406de4]
push dword [0x406df0]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x401741
lea eax, [esp + 0x10]
push eax
push dword [0x406de4]
push dword [0x406df0]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
jmp 0x4017a8
lea eax, [esp + 0x18]
push eax
push dword [0x406df0]
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x406df4], 0
je 0x401790
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x406df8]
or ebx, 0xf003f
push ebx
push 0
push dword [0x406de4]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x4017a8
lea eax, [esp + 0x10]
push eax
push dword [0x406de4]
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x401a6b
mov dword [esp + 0x1c], 0xff
push dword [0x406e20]
push dword [0x406e20]
push 0xff
call fcn.004031e0
lea eax, [esp + 0x24]
push eax
call fcn.00404ae0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x24]
call sub.ADVAPI32.dll_RegQueryValueExW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x401a6b
push dword [esp + 0x24]
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401882
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegQueryValueExW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x40186f
push dword [0x406e20]
push dword [0x406e20]
mov ebx, dword [esp + 0x28]
dec ebx
push ebx
push dword [esp + 0x30]
call fcn.00403230
lea eax, [esp + 0x30]
push eax
call fcn.00404ae0
jmp 0x40187d
mov edx, 0x406028
lea ecx, [esp + 0x2c]
call fcn.00403008
jmp 0x401a6a
mov ebx, 2
cmp ebx, dword [esp]
jne 0x4018f3
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegQueryValueExW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x4018e0
push dword [0x406e20]
push dword [0x406e20]
mov ebx, dword [esp + 0x28]
dec ebx
push ebx
push dword [esp + 0x30]
call fcn.00403230
lea eax, [esp + 0x30]
push eax
call fcn.00404ae0
jmp 0x4018ee
mov edx, 0x406028
lea ecx, [esp + 0x2c]
call fcn.00403008
jmp 0x401a6a
mov ebx, 4
cmp ebx, dword [esp]
jne 0x401961
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegQueryValueExW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x40194e
push dword [0x406e20]
push dword [0x406e20]
mov eax, dword [esp + 0x3c]
cdq
push edx
push eax
call fcn.004032a0
lea eax, [esp + 0x30]
push eax
call fcn.00404ae0
jmp 0x40195c
mov edx, 0x4060e0
lea ecx, [esp + 0x2c]
call fcn.00403008
jmp 0x401a6a
mov ebx, 3
cmp ebx, dword [esp]
jne 0x401a6a
mov dword [esp + 0x38], 0x400
push dword [esp + 0x38]
call fcn.00404410
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegQueryValueExW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x401a6a
mov edx, 0x406028
lea ecx, [esp + 0x2c]
call fcn.00403008
mov dword [esp + 0x44], 0
jmp 0x4019cc
mov ebx, dword [esp + 0x38]
dec ebx
cmp ebx, dword [esp + 0x44]
jl 0x401a61
mov ebx, dword [esp + 0x3c]
add ebx, dword [esp + 0x44]
push ebx
pop eax
call fcn.00403090
mov ebx, eax
and ebx, 0xff
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x48]
cmp ebx, 0x10
jge 0x401a24
mov edx, dword [esp + 0x2c]
push dword [0x406e20]
push edx
call fcn.00404b60
mov edx, 0x4060e0
push edx
call fcn.00404b60
lea eax, [esp + 0x30]
push eax
call fcn.00404ae0
mov edx, dword [esp + 0x2c]
push dword [0x406e20]
push edx
call fcn.00404b60
push dword [0x406e20]
push dword [0x406e20]
mov eax, dword [esp + 0x54]
cdq
push edx
push eax
call fcn.004034e0
pop eax
lea eax, [esp + 0x30]
push eax
call fcn.00404ae0
inc dword [esp + 0x44]
jno 0x4019cc
push dword [esp + 0x3c]
call fcn.00404430
pop eax
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegCloseKey
mov edx, dword [esp + 0x28]
push dword [0x406e20]
push edx
call fcn.00404b60
pop eax
add eax, dword [0x406598]
jmp 0x401a9d
push dword [esp + 8]
call fcn.00404bc0
push dword [esp + 0x20]
call fcn.00404bc0
push dword [esp]
call fcn.00404bc0
push dword [esp + 4]
call fcn.00404bc0
push dword [esp + 0x28]
call fcn.00404bc0
add esp, 0x48
pop ebx
ret 0xc