Function at 0x10009170
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10051b26
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x100682b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 4], 1
push ebx
push 0x1005e2e3
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
call fcn.10007150
lea eax, [ebp + 8]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x25c], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 2
push ebx
mov edx, eax
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
mov dword [ebp - 0x258], ebx
lea esi, [ebp - 0x258]
mov byte [ecx], bl
call fcn.10001400
mov ecx, esi
call fcn.100089d0
add esp, 0x20
cmp al, bl
jne 0x1000928a
lea eax, [ebp - 0x234]
mov esi, 0xf
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
mov byte [edi], bl
call fcn.10002330
cmp dword [ebp - 0x220], 0x10
jb 0x1000924a
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.10019165
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
jb 0x1000926e
mov edx, dword [ebp + 8]
push edx
call fcn.10019165
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
jb 0x10009485
mov eax, dword [ebp + 0x24]
push eax
jmp 0x1000947d
push 0x207
lea ecx, [ebp - 0x217]
push ebx
push ecx
mov byte [ebp - 0x218], bl
call fcn.1001ba60
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x254], ebx
jae 0x100092b7
lea eax, [ebp + 8]
lea edx, [ebp - 0x254]
push edx
push eax
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10009333
lea ecx, [ebp - 0x234]
mov esi, 0xf
push ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov ecx, edi
mov byte [edi], bl
call fcn.10002330
cmp dword [ebp - 0x220], 0x10
jb 0x10009303
mov edx, dword [ebp - 0x234]
push edx
call fcn.10019165
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
jb 0x10009327
mov eax, dword [ebp + 8]
push eax
call fcn.10019165
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov dword [ebp + 0x1c], esi
jmp 0x10009471
mov eax, dword [ebp - 0x254]
push 0x208
lea edx, [ebp - 0x218]
push edx
push ebx
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, ebx
jne 0x100093ab
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x24]
push ecx
lea ecx, [ebp - 0x234]
call fcn.10006f40
lea eax, [ebp - 0x218]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10009370
sub eax, edx
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.10007030
mov ecx, dword [ebp - 0x254]
push 0x208
lea eax, [ebp - 0x218]
push eax
inc esi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, ebx
je 0x10009353
cmp dword [ebp - 0x224], ebx
je 0x100093fd
push 0xffffffffffffffff
mov ecx, 1
lea esi, [ebp - 0x250]
lea edx, [ebp - 0x234]
call fcn.10002200
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.10002330
mov esi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x23c], esi
jb 0x10009402
mov edx, dword [ebp - 0x250]
push edx
call fcn.10019165
add esp, 4
jmp 0x10009402
mov esi, 0x10
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x234]
push ecx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov ecx, edi
mov byte [edi], bl
call fcn.10002330
cmp dword [ebp - 0x220], esi
jb 0x10009440
mov edx, dword [ebp - 0x234]
push edx
call fcn.10019165
add esp, 4
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
cmp dword [ebp + 0x1c], esi
jb 0x10009467
mov eax, dword [ebp + 8]
push eax
call fcn.10019165
add esp, 4
cmp dword [ebp + 0x38], esi
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], bl
mov dword [ebp + 0x18], ebx
jb 0x10009485
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.10019165
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019170
mov esp, ebp
pop ebp
ret