Function at 0x1116fa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x1c], 0
je 0x1116fc5
cmp dword [ebp + 0x18], 0
je 0x1116fc5
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
jmp 0x1116fcc
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.01116100
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x1116ff6
mov edx, dword [ebp - 0x1c]
push edx
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x1117199
cmp dword [ebp + 0x18], 0
je 0x111700e
cmp dword [ebp + 0x1c], 0
jne 0x111700e
mov dword [ebp - 0xc], 0x57
jmp 0x1117184
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor edx, edx
add edx, 0xc
add edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
push 0
call fcn.0108d180
push eax
call sub.ntdll.dll_RtlAllocateHeap
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x111704d
mov dword [ebp - 0xc], 0xe
jmp 0x1117184
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 2
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x80000005
jne 0x111708d
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0xea
mov dword [ebp - 0xc], eax
jmp 0x11170b9
cmp dword [ebp - 0x1c], 0
jge 0x11170b9
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 0x1c], 0
je 0x11170b9
xor edx, edx
add edx, 0xc
mov eax, dword [ebp + 0x1c]
add edx, dword [eax]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x14], 0
je 0x11170ca
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
mov dword [ecx], eax
cmp dword [ebp - 0x1c], 0
jl 0x111710a
cmp dword [ebp + 0x18], 0
je 0x111710a
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 8]
jae 0x11170ec
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
jmp 0x11170f2
mov edx, dword [ebp - 8]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xc
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.ntdll.dll_memmove]
add esp, 0xc
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 1
je 0x1117125
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 4], 7
je 0x1117125
mov edx, dword [ebp - 0x24]
cmp dword [edx + 4], 2
jne 0x111715e
cmp dword [ebp + 0x18], 0
je 0x1117147
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jbe 0x1117147
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
shr eax, 1
mov ecx, dword [ebp + 0x18]
mov word [ecx + eax*2], 0
cmp dword [ebp + 0x1c], 0
je 0x111715c
xor edx, edx
add edx, 0xc
mov eax, dword [ebp - 4]
sub eax, edx
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
jmp 0x1117173
cmp dword [ebp + 0x1c], 0
je 0x1117173
xor edx, edx
add edx, 0xc
mov eax, dword [ebp - 4]
sub eax, edx
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24]
push edx
push 0
call fcn.0108d180
push eax
call sub.ntdll.dll_RtlFreeHeap
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x1117196
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x18