Function at 0x689193d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, 0x8c
mov word [ebp - 0x38], ax
mov ecx, 0x8e
mov word [ebp - 0x36], cx
mov dword [ebp - 0x34], str.RegistryMachineSoftwareMicrosoftWindows_NTCurrentVersionWindows
mov edx, 0x20
mov word [ebp - 0x40], dx
mov eax, 0x22
mov word [ebp - 0x3e], ax
mov dword [ebp - 0x3c], str.LoadAppInit_DLLs
mov ecx, 0x18
mov word [ebp - 0x30], cx
mov edx, 0x1a
mov word [ebp - 0x2e], dx
mov dword [ebp - 0x2c], str.AppInit_DLLs
mov dword [ebp - 0x58], 0x18
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0x40
lea eax, [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x58]
push ecx
push 0x20019
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.ntext.dll_NtOpenKey]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x689195ee
mov dword [ebp - 8], 0x14
mov eax, dword [ebp - 8]
push eax
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x689194a7
jmp 0x689195ee
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 2
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ntext.dll_NtQueryValueKey]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x689194d1
jmp 0x689195ee
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
lea eax, [ebp - 0x20]
push eax
call sub.ntext.dll_memmove
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x689195ee
lea edx, [ebp - 8]
push edx
push 0
push 0
push 2
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ntext.dll_NtQueryValueKey]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xc0000023
je 0x68919536
jmp 0x689195ee
mov edx, dword [ebp - 8]
push edx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x68919555
jmp 0x689195ee
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 2
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ntext.dll_NtQueryValueKey]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x689195ee
mov edx, dword [ebp - 4]
add edx, 0xc
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
test ecx, ecx
je 0x689195ee
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0x800
jae 0x689195a4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
jmp 0x689195ab
mov dword [ebp - 0x18], 0x800
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x689195ee
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0xc
push ecx
push 0x6896bea0
call sub.ntext.dll_memmove
add esp, 0xc
mov edx, dword [ebp - 0x14]
shr edx, 1
sub edx, 1
mov dword [ebp - 0x28], edx
xor eax, eax
mov ecx, dword [ebp - 0x28]
mov word [ecx*2 + 0x6896bea0], ax
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x10], 0
je 0x689195fe
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ntext.dll_NtClose]
cmp dword [ebp - 4], 0
je 0x68919615
mov eax, dword [ebp - 4]
push eax
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret