Function at 0x7ddf7f60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x6c
push 0x7ddf82f8
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], 0x7ddf7001
mov dword [ebp - 0x78], 4
push 0x7ddf823c
call sym.KERNEL32.dll_LoadLibraryW
mov edi, eax
mov dword [ebp - 0x38], edi
cmp edi, ebx
je 0x7ddf817a
mov dword [ebp - 4], ebx
push 0x7ddf82dc
push edi
call fcn.7dd7122f
mov esi, eax
push 0x7ddf82c4
push edi
call fcn.7dd7122f
mov dword [ebp - 0x24], eax
push 0x7ddb3678
push edi
call fcn.7dd7122f
mov dword [ebp - 0x28], eax
push 0x7ddb3664
push edi
call fcn.7dd7122f
mov dword [ebp - 0x34], eax
cmp esi, ebx
je 0x7ddf816e
cmp dword [ebp - 0x24], ebx
je 0x7ddf816e
cmp dword [ebp - 0x28], ebx
je 0x7ddf816e
cmp eax, ebx
je 0x7ddf816e
mov dword [ebp - 0x1c], ebx
push 2
push 0x7ddf82b8
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x7ddf816e
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + 2]
cmp eax, ecx
jbe 0x7ddf8054
lea esi, [eax + eax]
cmp eax, esi
jae 0x7ddf8054
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 0x7ddf816e
mov dword [ebp - 4], 1
push 2
push dword [ebp - 0x20]
push esi
push 0x7ddf82ac
call dword [ebp - 0x24]
test eax, eax
jne 0x7ddf8166
mov edi, 0x40000000
cmp word [esi], bx
je 0x7ddf8166
mov dword [ebp - 0x2c], ebx
push ebx
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [ebp - 0x28]
test eax, eax
jne 0x7ddf814a
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 0x7ddf814a
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x74], 0x7ddf8290
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 0x7ddf80e4
push dword [ebp + 8]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
jmp 0x7ddf814a
cmp dword [ebp - 0x44], ebx
je 0x7ddf80da
mov dword [ebp - 0x7c], 0x7ddf7eee
mov dword [ebp - 0x74], 0x7ddf8274
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], 0x7ddf7001
cmp eax, ebx
jge 0x7ddf813a
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.7dd9d6c0
add esp, 0xc
jmp 0x7ddf8233
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 0x7ddf8122
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x7ddf814f
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
jmp 0x7ddf8081
mov dword [ebp - 4], ebx
call fcn.7ddf81e4
mov dword [ebp - 4], 0xfffffffe
call fcn.7ddf8205
mov esi, dword [ebp + 0xc]
cmp dword [esi + 4], ebx
jne 0x7ddf8233
mov dword [ebp - 0x74], ebx
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x7ddb364c
push 4
call dword [sym.imp.ntdll.dll_RtlQueryRegistryValues]
test eax, eax
jl 0x7ddf822b
cmp dword [ebp - 0x44], ebx
je 0x7ddf822b
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 0x7ddf820e
push 0xc000009a
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7ddf8233
push 0x1a
pop ecx
mov word [esi + 2], cx
push 0x18
pop ecx
mov word [esi], cx
push 6
pop ecx
mov esi, 0x7ddf8258
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x7ddf8233
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
call fcn.7dd71605
ret 8