Function at 0x1094330
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 0x1094355
cmp dword [ebp + 0x18], 0
je 0x1094355
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
jmp 0x109435c
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.01092db0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x1094386
mov edx, dword [ebp - 0x1c]
push edx
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x1094529
cmp dword [ebp + 0x18], 0
je 0x109439e
cmp dword [ebp + 0x1c], 0
jne 0x109439e
mov dword [ebp - 0xc], 0x57
jmp 0x1094514
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.0108f910
push eax
call sub.ntdll.dll_RtlAllocateHeap
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10943dd
mov dword [ebp - 0xc], 0xe
jmp 0x1094514
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 0x109441d
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0xea
mov dword [ebp - 0xc], eax
jmp 0x1094449
cmp dword [ebp - 0x1c], 0
jge 0x1094449
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 0x1094449
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 0x109445a
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 0x109449a
cmp dword [ebp + 0x18], 0
je 0x109449a
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 8]
jae 0x109447c
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
jmp 0x1094482
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 0x10944b5
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 4], 7
je 0x10944b5
mov edx, dword [ebp - 0x24]
cmp dword [edx + 4], 2
jne 0x10944ee
cmp dword [ebp + 0x18], 0
je 0x10944d7
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jbe 0x10944d7
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 0x10944ec
xor edx, edx
add edx, 0xc
mov eax, dword [ebp - 4]
sub eax, edx
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
jmp 0x1094503
cmp dword [ebp + 0x1c], 0
je 0x1094503
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.0108f910
push eax
call sub.ntdll.dll_RtlFreeHeap
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x1094526
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