Function at 0x7d713b80
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
lea eax, [ebp - 0x128]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x7d727a40]
movzx eax, byte [edx]
and eax, 8
je 0x7d713c50
mov ecx, 1
imul ecx, ecx, 0
movsx edx, byte [ecx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c]
cmp edx, 0x2e
jne 0x7d713bcc
mov dword [ebp - 0x20], 0x12
jmp 0x7d713bd3
mov dword [ebp - 0x20], 0x21
push 0x7d7242c0
push 0x7fd
push 0x7d7280a4
mov eax, dword [ebp - 0x20]
add eax, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_reg.c
push eax
mov ecx, dword [0x7d727a40]
push ecx
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d713c50
cmp dword [ebp + 0x1c], 0
je 0x7d713c17
cmp dword [ebp + 0x18], 0
je 0x7d713c17
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
jmp 0x7d713c1e
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.7d701950
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.__p__s__p__p__p__p_d__n
call fcn.7d71f960
add esp, 0x20
cmp dword [ebp + 0x18], 0
je 0x7d713c5c
cmp dword [ebp + 0x1c], 0
je 0x7d713c62
cmp dword [ebp + 0x10], 0
je 0x7d713c6c
mov eax, 0x57
jmp 0x7d713ea3
cmp dword [ebp + 8], 0x80000004
jne 0x7d713c92
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.7d715500
add esp, 0x10
jmp 0x7d713ea3
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.7d7149a0
add esp, 8
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x7d713cb3
mov eax, 6
jmp 0x7d713ea3
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.ntext.dll_RtlInitUnicodeString]
cmp dword [ebp + 0x18], 0
je 0x7d713cf9
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
add ecx, dword [0x7d7279c8]
cmp ecx, 0x100
jbe 0x7d713ce3
mov dword [ebp - 0x1c], 0x100
jmp 0x7d713cf1
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
add eax, dword [0x7d7279c8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
jmp 0x7d713d11
mov edx, dword [0x7d7279c8]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x1c], 0
je 0x7d713d11
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x128]
push eax
push 2
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntext.dll_NtQueryValueKey]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x7d713d47
cmp dword [ebp - 0xc], 0x80000005
je 0x7d713d47
jmp 0x7d713e82
cmp dword [ebp + 0x18], 0
je 0x7d713e56
cmp dword [ebp - 0xc], 0x80000005
jne 0x7d713dc7
mov eax, dword [ebp - 4]
sub eax, dword [0x7d7279c8]
mov ecx, dword [ebp + 0x1c]
cmp eax, dword [ecx]
ja 0x7d713dc7
lea edx, [ebp - 0x128]
cmp dword [ebp - 8], edx
je 0x7d713d81
mov eax, dword [ebp - 8]
push eax
call fcn.7d714a40
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call fcn.7d714a20
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7d713da0
mov eax, 8
jmp 0x7d713ea3
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 2
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntext.dll_NtQueryValueKey]
mov dword [ebp - 0xc], eax
jmp 0x7d713d51
cmp dword [ebp - 0xc], 0
jne 0x7d713e49
mov edx, dword [ebp - 4]
sub edx, dword [0x7d7279c8]
push edx
mov eax, dword [ebp - 8]
add eax, dword [0x7d7279c8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call sub.ntext.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 4]
sub edx, dword [0x7d7279c8]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
sub ecx, 2
cmp edx, ecx
ja 0x7d713e47
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.7d714a60
add esp, 4
test eax, eax
je 0x7d713e47
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 4]
sub ecx, dword [0x7d7279c8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0x18]
jbe 0x7d713e47
mov eax, 2
imul eax, eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax]
test edx, edx
je 0x7d713e47
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov word [ecx], ax
jmp 0x7d713e54
cmp dword [ebp - 0xc], 0x80000005
je 0x7d713e54
jmp 0x7d713e82
jmp 0x7d713e5d
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x14], 0
je 0x7d713e6e
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov dword [edx], ecx
cmp dword [ebp + 0x1c], 0
je 0x7d713e82
mov edx, dword [ebp - 4]
sub edx, dword [0x7d7279c8]
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
lea ecx, [ebp - 0x128]
cmp dword [ebp - 8], ecx
je 0x7d713e99
mov edx, dword [ebp - 8]
push edx
call fcn.7d714a40
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
mov esp, ebp
pop ebp
ret 0x18