Function at 0x11167b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
lea eax, [ebp - 0x118]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x20], 0
je 0x11167d9
cmp dword [ebp + 0x24], 0
je 0x11167df
cmp dword [ebp + 0x18], 0
je 0x11167e9
mov eax, 0x57
jmp 0x1116a74
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 4]
push eax
call fcn.01116100
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x111680d
mov ecx, dword [ebp - 0x10]
push ecx
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x1116a74
mov edx, dword [0x10102dc]
add edx, 0x202
mov dword [ebp - 0xc], edx
cmp dword [ebp + 0x20], 0
je 0x111682d
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x100
jbe 0x1116842
mov dword [ebp - 0x120], 0x100
jmp 0x111684b
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x118]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntdll.dll_ZwEnumerateValueKey]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x111688a
cmp dword [ebp - 0x10], 0x80000005
je 0x111688a
jmp 0x1116a3b
cmp dword [ebp + 0x10], 0
jne 0x111689a
cmp dword [ebp + 0x20], 0
je 0x1116a12
cmp dword [ebp - 0x10], 0x80000005
jne 0x111690e
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x118]
cmp eax, ecx
je 0x11168c1
mov edx, dword [ebp - 8]
push edx
push 0
call fcn.0108d180
push eax
call fcn.0108d590
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.0108d180
push eax
call fcn.0108d570
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x11168e7
mov dword [ebp - 0x10], 8
jmp 0x1116a3b
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_ZwEnumerateValueKey]
mov dword [ebp - 0x10], eax
jmp 0x111689a
cmp dword [ebp - 0x10], 0
je 0x1116919
jmp 0x1116a3b
cmp dword [ebp + 0x10], 0
je 0x111696f
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
shr edx, 1
mov eax, dword [ebp + 0x14]
cmp edx, dword [eax]
jb 0x111693a
mov dword [ebp - 0x10], 0x80000005
jmp 0x1116a19
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x14
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
shr eax, 1
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov word [ecx + eax*2], 0
cmp dword [ebp + 0x20], 0
je 0x1116a10
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
sub eax, dword [edx + 8]
mov ecx, dword [ebp + 0x24]
cmp eax, dword [ecx]
jbe 0x1116995
mov dword [ebp - 0x10], 0x80000005
jmp 0x1116a19
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
sub eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x20]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
sub edx, dword [ecx + 8]
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
sub ecx, 2
cmp edx, ecx
ja 0x1116a10
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
call fcn.01116770
test eax, eax
je 0x1116a10
mov ecx, dword [ebp + 0x20]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
sub ecx, dword [edx + 8]
mov dword [ebp - 0x11c], ecx
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp + 0x20]
jbe 0x1116a10
mov ecx, dword [ebp - 0x11c]
movzx edx, word [ecx - 2]
test edx, edx
je 0x1116a10
mov eax, dword [ebp - 0x11c]
mov word [eax], 0
jmp 0x1116a19
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x1c], 0
je 0x1116a2a
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov dword [ecx], eax
cmp dword [ebp + 0x24], 0
je 0x1116a3b
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x118]
cmp ecx, edx
je 0x1116a59
mov eax, dword [ebp - 8]
push eax
push 0
call fcn.0108d180
push eax
call fcn.0108d590
mov ecx, dword [ebp - 4]
and ecx, 1
je 0x1116a6b
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 0x10]
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov esp, ebp
pop ebp
ret 0x20