Function at 0x4171d5
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
push ebx
mov eax, 0x20c4
call fcn.0041ce38
sub esp, eax
mov dword [esp + 0x20b8], 0
mov dword [esp + 0x5c], 0x1000
lea eax, [esp + 0x20a0]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x101
mov dword [esp + 8], 0
mov eax, dword [esp + 0x20d4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20d0]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x4176d5
jmp 0x417661
add dword [esp + 0x20b8], 1
mov eax, dword [esp + 0x54]
cmp eax, 0xb
ja case.0x4171d3.4
mov eax, dword [eax*4 + 0x420228]
jmp eax
mov dword [esp + 0x5c], 0x1000
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0
lea eax, [esp + 0x10a0]
mov dword [esp], eax
call fcn.0041a59f
mov eax, dword [esp + 0x20a0]
lea edx, [esp + 0x5c]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x10a0]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea edx, [esp + 0x1060]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x41764c
mov eax, dword [esp + 0x54]
cmp eax, 7
jne 0x4172a4
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4172a4
mov dword [esp + 0x20bc], 0
jmp 0x417294
lea edx, [esp + 0x10a0]
mov eax, dword [esp + 0x20bc]
add eax, edx
movzx eax, byte [eax]
test al, al
jne 0x41728c
lea edx, [esp + 0x10a0]
mov eax, dword [esp + 0x20bc]
add eax, edx
mov byte [eax], 8
add dword [esp + 0x20bc], 1
mov eax, dword [esp + 0x5c]
sub eax, 1
cmp eax, dword [esp + 0x20bc]
ja 0x417262
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x10a0]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1060]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_a_d_a_s_a
mov dword [esp + 4], 0x1000
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.00419fa8
mov dword [esp + 0x20b0], eax
cmp dword [esp + 0x20b0], 0
jle 0x41764c
mov eax, dword [esp + 0x20b0]
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20d8]
mov dword [esp], eax
call fcn.0041972e
jmp 0x41764c
mov dword [esp + 0x5c], 4
mov eax, dword [esp + 0x20a0]
lea edx, [esp + 0x5c]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea edx, [esp + 0x1060]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x41764f
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1060]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_a_d_a0x_.8X___d__a
mov dword [esp + 4], 0x1000
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.00419fa8
mov dword [esp + 0x20ac], eax
cmp dword [esp + 0x20ac], 0
jle 0x41764f
mov eax, dword [esp + 0x20ac]
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20d8]
mov dword [esp], eax
call fcn.0041972e
jmp 0x41764f
mov dword [esp + 0x5c], 8
mov eax, dword [esp + 0x20a0]
lea edx, [esp + 0x5c]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x48]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea edx, [esp + 0x1060]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x417652
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
lea eax, [esp + 0x1060]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_a_d_a0x_.16llX___I64d__a
mov dword [esp + 4], 0x1000
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.00419fa8
mov dword [esp + 0x20a8], eax
cmp dword [esp + 0x20a8], 0
jle 0x417652
mov eax, dword [esp + 0x20a8]
mov dword [esp + 8], eax
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20d8]
mov dword [esp], eax
call fcn.0041972e
jmp 0x417652
mov eax, dword [esp + 0x20a0]
lea edx, [esp + 0x5c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea edx, [esp + 0x1060]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x417655
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x417658
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x20a0]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
lea edx, [esp + 0x5c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
lea edx, [esp + 0x1060]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x41763e
mov dword [esp + 0x40], 0x420224
mov dword [esp + 0x3c], 0
mov byte [esp + 0x20b7], 0
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4175b2
mov eax, dword [esp + 0x5c]
mov edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041ad97
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
test eax, eax
setne al
mov byte [esp + 0x20b7], al
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1060]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_a_d_a_s_a
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.00419f10
mov dword [esp + 0x20a4], eax
cmp dword [esp + 0x20a4], 0
jle 0x417628
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x417628
mov edx, dword [esp + 0x20a4]
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20d8]
mov dword [esp], eax
call fcn.0041972e
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.0040b4bf
cmp byte [esp + 0x20b7], 0
je 0x41763e
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.0040b4bf
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.0040b4bf
jmp 0x417655
nop
jmp case.0x4171d3.4
nop
jmp case.0x4171d3.4
nop
jmp case.0x4171d3.4
nop
jmp case.0x4171d3.4
nop
mov dword [esp + 0x5c], 0x1000
mov eax, dword [esp + 0x20a0]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
lea edx, [esp + 0x54]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
lea edx, [esp + 0x5c]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x1060]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x20b8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegEnumValueA
sub esp, 0x20
cmp eax, 0x103
jne 0x4171b7
mov eax, dword [esp + 0x20a0]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, 1
jmp 0x4176da
mov eax, 0
add esp, 0x20c4
pop ebx
pop esi
ret