Function at 0x1093760
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
lea eax, [ebp - 0x118]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x20], 0
je 0x1093789
cmp dword [ebp + 0x24], 0
je 0x109378f
cmp dword [ebp + 0x18], 0
je 0x1093799
mov eax, 0x57
jmp 0x1093af0
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 0x10937bd
mov ecx, dword [ebp - 0x10]
push ecx
call sub.ntdll.dll_RtlNtStatusToDosError
jmp 0x1093af0
mov edx, dword [0x1005e5c]
add edx, 0x202
mov dword [ebp - 0xc], edx
cmp dword [ebp + 0x20], 0
je 0x10937dd
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 0x10937f2
mov dword [ebp - 0x124], 0x100
jmp 0x10937fb
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
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 0x109383a
cmp dword [ebp - 0x10], 0x80000005
je 0x109383a
jmp 0x1093ab7
cmp dword [ebp + 0x10], 0
jne 0x109385a
cmp dword [ebp + 0x20], 0
jne 0x109385a
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
call fcn.01093b00
test eax, eax
je 0x1093a8e
cmp dword [ebp - 0x10], 0x80000005
jne 0x10938ce
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x118]
cmp edx, eax
je 0x1093881
mov ecx, dword [ebp - 8]
push ecx
push 0
call fcn.0108f910
push eax
call fcn.0108fd20
mov edx, dword [ebp - 0xc]
push edx
push 0
call fcn.0108f910
push eax
call fcn.0108fd00
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10938a7
mov dword [ebp - 0x10], 0xc000009a
jmp 0x1093ab7
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
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
jmp 0x109385a
cmp dword [ebp - 0x10], 0
je 0x10938d9
jmp 0x1093ab7
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
call fcn.01093b00
test eax, eax
je 0x1093990
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
lea eax, [ebp - 0x11c]
push eax
call sub.ntdll.dll_RtlUnicodeToMultiByteSize
cmp dword [ebp + 0x20], 0
je 0x1093982
cmp dword [ebp - 0x11c], 0
je 0x1093982
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 0x11c]
cmp edx, dword [ecx]
jbe 0x1093932
mov dword [ebp - 0x10], 0x80000005
jmp 0x1093982
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add eax, dword [edx + 8]
push eax
push 0
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 0x20]
push edx
call sub.ntdll.dll_RtlUnicodeToMultiByteN
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [eax]
jae 0x1093982
mov edx, dword [ebp + 0x20]
add edx, dword [ebp - 0x11c]
movzx eax, byte [edx - 1]
test eax, eax
je 0x1093982
mov ecx, dword [ebp + 0x20]
add ecx, dword [ebp - 0x11c]
mov byte [ecx], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x11c]
mov dword [edx + 0xc], eax
jmp 0x10939cf
cmp dword [ebp + 0x20], 0
je 0x10939cf
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
sub edx, dword [ecx + 8]
mov eax, dword [ebp + 0x24]
cmp edx, dword [eax]
jbe 0x10939af
mov dword [ebp - 0x10], 0x80000005
jmp 0x10939cf
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
sub edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x20]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x1093a8c
cmp dword [ebp - 0x10], 0
jne 0x1093a8c
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x14
push edx
lea eax, [ebp - 0x120]
push eax
call sub.ntdll.dll_RtlUnicodeToMultiByteSize
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x120]
cmp edx, dword [ecx]
jb 0x1093a55
mov dword [ebp - 0x10], 0x80000005
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x1093a53
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
sub edx, 1
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x14
push edx
push 0
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.ntdll.dll_RtlUnicodeToMultiByteN
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x120]
mov byte [edx], 0
jmp 0x1093a8c
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x14
push edx
push 0
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.ntdll.dll_RtlUnicodeToMultiByteN
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x120]
mov byte [edx], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x120]
mov dword [eax], ecx
jmp 0x1093a95
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x1c], 0
je 0x1093aa6
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov dword [edx], ecx
cmp dword [ebp + 0x24], 0
je 0x1093ab7
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov dword [edx], ecx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x118]
cmp edx, eax
je 0x1093ad5
mov ecx, dword [ebp - 8]
push ecx
push 0
call fcn.0108f910
push eax
call fcn.0108fd20
mov edx, dword [ebp - 4]
and edx, 1
je 0x1093ae7
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
mov ecx, dword [ebp - 0x10]
push ecx
call sub.ntdll.dll_RtlNtStatusToDosError
mov esp, ebp
pop ebp
ret 0x20