Function at 0x719e84c2
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, 0x400
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp._Cntl.DLL_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x719e84f6
mov eax, 0xc0000017
jmp 0x719e869a
push edi
mov ecx, 0x100
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
mov word [ebp - 0xc], di
mov word [ebp - 0xa], bx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [sym.imp._Cntl.DLL_RtlAllocateHeap]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x719e8545
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push edi
push dword [eax + 0x18]
call dword [sym.imp._Cntl.DLL_RtlFreeHeap]
mov eax, 0xc0000017
jmp 0x719e8699
mov ecx, dword [ebp + 0xc]
mov eax, ecx
lea edx, [eax + 1]
mov word [ebp - 0x1a], bx
mov dword [ebp + 0xc], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x719e8554
sub eax, dword [ebp + 0xc]
push edi
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp._Cntl.DLL_RtlAnsiStringToUnicodeString]
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp._Cntl.DLL_NtQueryValueKey]
cmp eax, edi
mov dword [ebp + 0xc], eax
jge 0x719e85bd
mov eax, dword fs:[0x18]
push dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov ebx, dword [sym.imp._Cntl.DLL_RtlFreeHeap]
push edi
push dword [eax + 0x18]
call ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push edi
push dword [eax + 0x18]
call ebx
jmp 0x719e8696
mov eax, dword [esi + 4]
cmp eax, 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
je 0x719e8662
cmp eax, 3
je 0x719e8662
cmp eax, 2
mov word [ebp - 0x14], di
mov edi, dword [sym.imp._Cntl.DLL_RtlFreeHeap]
jne 0x719e85f2
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x12], bx
jmp 0x719e8613
mov eax, dword fs:[0x18]
push dword [ebp - 8]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ax, word [ebp + 0x18]
mov word [ebp - 0x12], ax
mov ax, word [esi + 0xc]
mov word [ebp - 0x24], ax
mov ax, word [esi + 0xc]
mov word [ebp - 0x22], ax
mov eax, dword [esi + 8]
add eax, esi
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp._Cntl.DLL_RtlUnicodeStringToAnsiString]
mov eax, dword [ebp + 0x14]
cmp dword [eax], 2
jne 0x719e8685
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp._CKERNEL.DLL_ExpandEnvironmentStringsA]
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0x10]
push 0
jmp 0x719e867d
mov eax, dword [esi + 8]
mov eax, dword [esi + eax]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword fs:[0x18]
push dword [ebp - 8]
push edi
mov edi, dword [sym.imp._Cntl.DLL_RtlFreeHeap]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x14