Function at 0x10940e0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x109410c
cmp dword [ebp + 0x10], 0
jne 0x109410c
mov eax, 0x57
jmp 0x1094323
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.01092db0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x1094130
mov edx, dword [ebp - 0x18]
push edx
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x1094323
cmp dword [ebp + 0xc], 0
je 0x10941b3
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jbe 0x109416c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
sub edx, 1
cmp edx, 0x100
jae 0x109415b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
sub ecx, 1
mov dword [ebp - 0x50], ecx
jmp 0x1094162
mov dword [ebp - 0x50], 0x100
mov edx, dword [ebp - 0x50]
shl edx, 1
mov dword [ebp - 0x14], edx
jmp 0x1094173
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
add eax, 3
and eax, 0xfffffffc
add eax, 0x30
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call fcn.0108f910
push eax
call sub.ntdll.dll_RtlAllocateHeap
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x10941a8
mov dword [ebp - 8], 0xe
jmp 0x109430e
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
jmp 0x10941ca
mov dword [ebp - 0x10], 0x30
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0xc], 0x2c
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x4c]
push eax
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntdll.dll_ZwQueryKey]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x109421d
cmp dword [ebp + 0xc], 0
je 0x109420c
mov edx, dword [ebp - 0x4c]
push edx
push 0
call fcn.0108f910
push eax
call sub.ntdll.dll_RtlFreeHeap
mov eax, dword [ebp - 0x18]
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [ebp - 8], eax
jmp 0x109430e
cmp dword [ebp + 0x18], 0
je 0x109422e
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x14]
mov dword [ecx], eax
cmp dword [ebp + 0x1c], 0
je 0x1094244
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x18]
shr edx, 1
add edx, 1
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
cmp dword [ebp + 0x20], 0
je 0x109425a
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x1c]
shr edx, 1
add edx, 1
mov eax, dword [ebp + 0x20]
mov dword [eax], edx
cmp dword [ebp + 0x24], 0
je 0x109426b
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x20]
mov dword [ecx], eax
cmp dword [ebp + 0x28], 0
je 0x1094281
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x24]
shr edx, 1
add edx, 1
mov eax, dword [ebp + 0x28]
mov dword [eax], edx
cmp dword [ebp + 0x2c], 0
je 0x1094292
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x28]
mov dword [ecx], eax
cmp dword [ebp + 0x34], 0
je 0x10942ae
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
cmp dword [ebp + 0xc], 0
je 0x109430e
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0x14]
jbe 0x10942c8
mov dword [ebp - 8], 0x6f
jmp 0x10942fd
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x4c]
add edx, 0x2c
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x10]
shr edx, 1
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov word [eax + edx*2], 0
mov ecx, dword [ebp - 0x4c]
push ecx
push 0
call fcn.0108f910
push eax
call sub.ntdll.dll_RtlFreeHeap
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x1094320
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x30