Function at 0x1093b40
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 0x1093b69
cmp dword [ebp + 0x24], 0
je 0x1093b6f
cmp dword [ebp + 0x18], 0
je 0x1093b79
mov eax, 0x57
jmp 0x1093e04
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 4]
push eax
call fcn.01092db0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x1093b9d
mov ecx, dword [ebp - 0x10]
push ecx
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x1093e04
mov edx, dword [0x1005e60]
add edx, 0x202
mov dword [ebp - 0xc], edx
cmp dword [ebp + 0x20], 0
je 0x1093bbd
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 0x1093bd2
mov dword [ebp - 0x120], 0x100
jmp 0x1093bdb
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 0x1093c1a
cmp dword [ebp - 0x10], 0x80000005
je 0x1093c1a
jmp 0x1093dcb
cmp dword [ebp + 0x10], 0
jne 0x1093c2a
cmp dword [ebp + 0x20], 0
je 0x1093da2
cmp dword [ebp - 0x10], 0x80000005
jne 0x1093c9e
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x118]
cmp eax, ecx
je 0x1093c51
mov edx, dword [ebp - 8]
push edx
push 0
call fcn.0108f910
push eax
call fcn.0108fd20
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.0108f910
push eax
call fcn.0108fd00
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1093c77
mov dword [ebp - 0x10], 8
jmp 0x1093dcb
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 0x1093c2a
cmp dword [ebp - 0x10], 0
je 0x1093ca9
jmp 0x1093dcb
cmp dword [ebp + 0x10], 0
je 0x1093cff
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
shr edx, 1
mov eax, dword [ebp + 0x14]
cmp edx, dword [eax]
jb 0x1093cca
mov dword [ebp - 0x10], 0x80000005
jmp 0x1093da9
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 0x1093da0
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 0x1093d25
mov dword [ebp - 0x10], 0x80000005
jmp 0x1093da9
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 0x1093da0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
call fcn.01093b00
test eax, eax
je 0x1093da0
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 0x1093da0
mov ecx, dword [ebp - 0x11c]
movzx edx, word [ecx - 2]
test edx, edx
je 0x1093da0
mov eax, dword [ebp - 0x11c]
mov word [eax], 0
jmp 0x1093da9
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x1c], 0
je 0x1093dba
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 0x1093dcb
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 0x1093de9
mov eax, dword [ebp - 8]
push eax
push 0
call fcn.0108f910
push eax
call fcn.0108fd20
mov ecx, dword [ebp - 4]
and ecx, 1
je 0x1093dfb
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