Function at 0x1116d50
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 0x1116d7c
cmp dword [ebp + 0x10], 0
jne 0x1116d7c
mov eax, 0x57
jmp 0x1116f93
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.01116100
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x1116da0
mov edx, dword [ebp - 0x18]
push edx
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x1116f93
cmp dword [ebp + 0xc], 0
je 0x1116e23
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jbe 0x1116ddc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
sub edx, 1
cmp edx, 0x100
jae 0x1116dcb
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
sub ecx, 1
mov dword [ebp - 0x50], ecx
jmp 0x1116dd2
mov dword [ebp - 0x50], 0x100
mov edx, dword [ebp - 0x50]
shl edx, 1
mov dword [ebp - 0x14], edx
jmp 0x1116de3
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.0108d180
push eax
call sub.ntdll.dll_RtlAllocateHeap
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x1116e18
mov dword [ebp - 8], 0xe
jmp 0x1116f7e
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
jmp 0x1116e3a
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 0x1116e8d
cmp dword [ebp + 0xc], 0
je 0x1116e7c
mov edx, dword [ebp - 0x4c]
push edx
push 0
call fcn.0108d180
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 0x1116f7e
cmp dword [ebp + 0x18], 0
je 0x1116e9e
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 0x1116eb4
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 0x1116eca
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 0x1116edb
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 0x1116ef1
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 0x1116f02
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 0x1116f1e
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 0x1116f7e
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0x14]
jbe 0x1116f38
mov dword [ebp - 8], 0x6f
jmp 0x1116f6d
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.0108d180
push eax
call sub.ntdll.dll_RtlFreeHeap
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x1116f90
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