Function at 0x7ddf8198
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x6c
push 0x7ddf8530
call fcn.7dd715c0
push 0x34
xor ebx, ebx
push ebx
lea eax, [ebp - 0x78]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x7c], 0x7ddf7239
mov dword [ebp - 0x78], 4
push 0x7ddf8474
call sym.KERNEL32.dll_LoadLibraryW
mov edi, eax
mov dword [ebp - 0x38], edi
cmp edi, ebx
je 0x7ddf83b2
mov dword [ebp - 4], ebx
push 0x7ddf8514
push edi
call fcn.7dd7122f
mov esi, eax
push 0x7ddf84fc
push edi
call fcn.7dd7122f
mov dword [ebp - 0x24], eax
push 0x7ddb36a8
push edi
call fcn.7dd7122f
mov dword [ebp - 0x28], eax
push 0x7ddb3694
push edi
call fcn.7dd7122f
mov dword [ebp - 0x34], eax
cmp esi, ebx
je 0x7ddf83a6
cmp dword [ebp - 0x24], ebx
je 0x7ddf83a6
cmp dword [ebp - 0x28], ebx
je 0x7ddf83a6
cmp eax, ebx
je 0x7ddf83a6
mov dword [ebp - 0x1c], ebx
push 2
push 0x7ddf84f0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x7ddf83a6
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + 2]
cmp eax, ecx
jbe 0x7ddf828c
lea esi, [eax + eax]
cmp eax, esi
jae 0x7ddf828c
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword fs:[0x18]
push esi
push dword [ebp - 0x30]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
je 0x7ddf83a6
mov dword [ebp - 4], 1
push 2
push dword [ebp - 0x20]
push esi
push 0x7ddf84e4
call dword [ebp - 0x24]
test eax, eax
jne 0x7ddf839e
mov edi, 0x40000000
cmp word [esi], bx
je 0x7ddf839e
mov dword [ebp - 0x2c], ebx
push ebx
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [ebp - 0x28]
test eax, eax
jne 0x7ddf8382
push 1
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push 0xf003f
push dword [ebp - 0x2c]
call dword [ebp - 0x34]
test eax, eax
jne 0x7ddf8382
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x74], 0x7ddf84c8
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.ntdll.dll_RtlQueryRegistryValues]
test eax, eax
jge 0x7ddf831c
push dword [ebp + 8]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
jmp 0x7ddf8382
cmp dword [ebp - 0x44], ebx
je 0x7ddf8312
mov dword [ebp - 0x7c], 0x7ddf8126
mov dword [ebp - 0x74], 0x7ddf84ac
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.ntdll.dll_RtlQueryRegistryValues]
mov dword [ebp - 0x7c], 0x7ddf7239
cmp eax, ebx
jge 0x7ddf8372
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
push dword [ebp + 8]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x7de403ac
call fcn.7dd9d690
add esp, 0xc
jmp 0x7ddf846b
push dword [ebp + 8]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], ebx
jne 0x7ddf835a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x7ddf8387
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
jmp 0x7ddf82b9
mov dword [ebp - 4], ebx
call fcn.7ddf841c
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddf843d
mov esi, dword [ebp + 0xc]
cmp dword [esi + 4], ebx
jne 0x7ddf846b
mov dword [ebp - 0x74], ebx
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x7ddb367c
push 4
call dword [sym.imp.ntdll.dll_RtlQueryRegistryValues]
test eax, eax
jl 0x7ddf8463
cmp dword [ebp - 0x44], ebx
je 0x7ddf8463
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
push 0x1a
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x7ddf8446
push 0xc000009a
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7ddf846b
push 0x1a
pop ecx
mov word [esi + 2], cx
push 0x18
pop ecx
mov word [esi], cx
push 6
pop ecx
mov esi, 0x7ddf8490
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x7ddf846b
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
call fcn.7dd71605
ret 8