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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x770
mov eax, dword [0x101803c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x730], eax
mov eax, dword [ebp + 0x10]
push ebx
push ebx
mov dword [ebp - 0x74c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x758], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x770], eax
lea eax, [ebp - 0x75c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 0x748], edi
mov byte [ebp - 0x715], bl
mov dword [ebp - 0x734], ebx
mov dword [ebp - 0x738], ebx
mov dword [ebp - 0x724], ebx
mov dword [ebp - 0x73c], ebx
mov dword [ebp - 0x728], ebx
mov dword [ebp - 0x75c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10097b0
lea ecx, [ebp - 0x73c]
call fcn.01005bf7
lea ecx, [ebp - 0x724]
call fcn.01005bf7
lea ecx, [ebp - 0x738]
call fcn.01005bf7
lea ecx, [ebp - 0x734]
call fcn.01005bf7
mov ecx, dword [ebp - 4]
pop edi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0100d419
leave
ret
mov eax, dword [ebp - 0x75c]
cmp eax, ebx
jne 0x10097be
mov bl, 1
jmp 0x1009774
xor ecx, ecx
mov edx, 0x1f8
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.0100d7aa
pop ecx
push ebx
push ebx
mov dword [ebp - 0x72c], eax
lea eax, [ebp - 0x754]
push eax
push ebx
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x504]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, 0x1f4
mov dword [ebp - 0x710], ebx
mov dword [ebp - 0x720], esi
mov dword [ebp - 0x71c], ebx
call edi
cmp eax, ebx
jne 0x1009893
mov eax, dword [ebp - 0x72c]
mov dword [ebp - 0x714], eax
cmp dword [ebp - 0x754], 7
je 0x100985d
lea eax, [ebp - 0x504]
push eax
push esi
push dword [ebp - 0x714]
call fcn.0100734b
mov eax, dword [ebp - 0x714]
inc dword [ebp - 0x71c]
add dword [ebp - 0x714], 0x1f8
mov dword [eax + 0x1f4], ebx
inc dword [ebp - 0x710]
push ebx
push ebx
lea eax, [ebp - 0x754]
push eax
push ebx
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x504]
push eax
push dword [ebp - 0x710]
mov dword [ebp - 0x720], esi
push dword [ebp - 0x748]
call edi
cmp eax, ebx
je 0x1009825
cmp eax, 0x103
jne 0x1009ddc
mov eax, dword [ebp - 0x71c]
mov dword [ebp - 0x768], eax
lea eax, [ebp - 0x728]
push eax
call fcn.01007b66
pop ecx
mov dword [ebp - 0x748], eax
cmp dword [ebp - 0x728], ebx
jne 0x1009ddc
cmp eax, ebx
je 0x1009ddc
lea ecx, [ebp - 0x734]
call fcn.01005bd9
push eax
push 0x20019
push ebx
push dword [ebp - 0x758]
push dword [ebp - 0x730]
call fcn.01005c13
add esp, 0x14
test eax, eax
jne 0x1009ddc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x504]
push eax
push ebx
push dword [ebp - 0x734]
mov dword [ebp - 0x710], ebx
mov dword [ebp - 0x720], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, 0x104
jmp 0x1009ac7
lea eax, [ebp - 0x504]
push eax
push dword [ebp - 0x770]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1009a97
lea eax, [ebp - 0x504]
push eax
push dword [ebp - 0x758]
lea eax, [ebp - 0x70c]
push 0x1003224
push edi
push eax
call fcn.0100742b
add esp, 0x14
lea ecx, [ebp - 0x738]
call fcn.01005bd9
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x70c]
push eax
push dword [ebp - 0x730]
call fcn.01005c13
add esp, 0x14
cmp eax, ebx
jne 0x1009a8e
push ebx
push ebx
lea eax, [ebp - 0x764]
push eax
push ebx
lea eax, [ebp - 0x750]
push eax
lea eax, [ebp - 0x608]
push eax
mov dword [ebp - 0x728], ebx
push ebx
jmp 0x1009a6d
cmp dword [ebp - 0x764], 7
je 0x1009a49
mov dword [ebp - 0x740], ebx
cmp dword [ebp - 0x71c], ebx
jbe 0x1009a49
mov eax, dword [ebp - 0x72c]
mov dword [ebp - 0x714], eax
mov eax, dword [ebp - 0x714]
cmp dword [eax + 0x1f4], ebx
jne 0x1009a0c
lea eax, [ebp - 0x608]
push eax
push dword [ebp - 0x714]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1009a2c
inc dword [ebp - 0x740]
mov eax, dword [ebp - 0x740]
add dword [ebp - 0x714], 0x1f8
cmp eax, dword [ebp - 0x71c]
jb 0x10099e7
jmp 0x1009a49
mov eax, dword [ebp - 0x740]
mov ecx, dword [ebp - 0x72c]
imul eax, eax, 0x1f8
mov dword [eax + ecx + 0x1f4], 1
inc dword [ebp - 0x728]
push ebx
push ebx
lea eax, [ebp - 0x764]
push eax
push ebx
lea eax, [ebp - 0x750]
push eax
lea eax, [ebp - 0x608]
push eax
push dword [ebp - 0x728]
push dword [ebp - 0x738]
mov dword [ebp - 0x750], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
je 0x10099c4
cmp eax, 0x103
jmp 0x1009a91
cmp eax, 2
jne 0x1009ddc
inc dword [ebp - 0x710]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x504]
push eax
push dword [ebp - 0x710]
mov dword [ebp - 0x720], esi
push dword [ebp - 0x734]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
je 0x1009934
mov esi, 0x103
cmp eax, esi
jne 0x1009ddc
push esi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.0100d7e0
push esi
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.0100d7e0
add esp, 0x18
mov dword [ebp - 0x76c], edi
mov dword [ebp - 0x760], ebx
mov dword [ebp - 0x71c], ebx
cmp dword [ebp - 0x768], ebx
jbe 0x1009c91
mov eax, dword [ebp - 0x72c]
mov dword [ebp - 0x714], eax
mov eax, dword [ebp - 0x714]
cmp dword [eax + 0x1f4], ebx
jne 0x1009c6f
push eax
push dword [ebp - 0x74c]
lea eax, [ebp - 0x108]
push 0x100321c
push edi
push eax
call fcn.0100742b
push ebx
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x730]
call fcn.010065a8
add esp, 0x20
test eax, eax
je 0x1009ddc
mov dword [ebp - 0x710], ebx
push dword [ebp - 0x714]
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x710], ebx
jne 0x1009ba5
push 0x10031dc
push edi
push eax
call fcn.0100742b
add esp, 0x10
jmp 0x1009bba
push dword [ebp - 0x748]
push 0x1003190
push edi
push eax
call fcn.0100742b
add esp, 0x14
lea ecx, [ebp - 0x73c]
call fcn.01005bd9
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x1009bee
cmp eax, 2
jne 0x1009ddc
jmp 0x1009c3f
lea eax, [ebp - 0x76c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x760]
push eax
push ebx
push 0x1003088
push dword [ebp - 0x73c]
mov dword [ebp - 0x76c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1009c3f
cmp dword [ebp - 0x760], 1
jne 0x1009c3f
cmp byte [ebp - 0x20c], bl
je 0x1009c3f
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01007db7
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x73c]
call fcn.01005bb5
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.010065a8
add esp, 0xc
inc dword [ebp - 0x710]
cmp dword [ebp - 0x710], 2
jl 0x1009b80
inc dword [ebp - 0x71c]
mov eax, dword [ebp - 0x71c]
add dword [ebp - 0x714], 0x1f8
cmp eax, dword [ebp - 0x768]
jb 0x1009b31
lea ecx, [ebp - 0x724]
call fcn.01005bd9
push eax
mov esi, 0x20019
push esi
push ebx
push dword [ebp - 0x74c]
push dword [ebp - 0x730]
call fcn.01005c13
add esp, 0x14
test eax, eax
jne 0x1009ddc
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x744]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x724]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1009ddc
cmp dword [ebp - 0x744], ebx
jne 0x1009d0e
push ebx
lea ecx, [ebp - 0x724]
call fcn.01005bb5
push ebx
push dword [ebp - 0x74c]
push dword [ebp - 0x730]
call fcn.010065a8
add esp, 0xc
mov dword [ebp - 0x710], ebx
lea eax, [ebp - 0x310]
cmp dword [ebp - 0x710], ebx
jne 0x1009d33
push 0x1003150
push edi
push eax
call fcn.0100742b
add esp, 0xc
jmp 0x1009d48
push dword [ebp - 0x748]
push 0x1003108
push edi
push eax
call fcn.0100742b
add esp, 0x10
lea ecx, [ebp - 0x724]
call fcn.01005bd9
push eax
push esi
push ebx
lea eax, [ebp - 0x310]
push eax
push 0x80000002
call fcn.01005c13
add esp, 0x14
test eax, eax
jne 0x1009dc2
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x744]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x724]
mov dword [ebp - 0x744], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1009dc2
cmp dword [ebp - 0x744], ebx
jne 0x1009dc2
push ebx
lea ecx, [ebp - 0x724]
call fcn.01005bb5
push ebx
lea eax, [ebp - 0x310]
push eax
push 0x80000002
call fcn.010065a8
add esp, 0xc
test eax, eax
je 0x1009ddc
inc dword [ebp - 0x710]
cmp dword [ebp - 0x710], 2
jl 0x1009d14
mov byte [ebp - 0x715], 1
push dword [ebp - 0x72c]
call fcn.0100d79a
mov bl, byte [ebp - 0x715]
pop ecx
pop esi
jmp 0x1009774