Function at 0x719e21a7
Capabilities:
Query environment variable

Disassembly:
push 0x30
push 0x719e2418
call fcn.719c1450
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
lea eax, [ebp - 0x2c]
push eax
mov edi, 0x20019
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [sym.imp._CADVAPI.DLL_RegOpenKeyExW]
call esi
test eax, eax
jne 0x719e2240
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
push 0x719e23f0
push dword [ebp - 0x2c]
call esi
test eax, eax
jne 0x719e2240
push 0x719e23e0
push dword [ebp + 0xc]
call dword [sym.imp._Cmvrt.DLL__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x719e2228
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
call fcn.719e1801
test eax, eax
jne 0x719e2240
lea eax, [ebp - 0x30]
push eax
push 0x719cbe6c
push dword [ebp - 0x24]
call fcn.719e10b5
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x719e2248
mov dword [ebp - 0x1c], ebx
jmp 0x719e2380
mov edi, 0x104
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x30]
call dword [sym.imp._CKERNEL.DLL_ExpandEnvironmentStringsW]
cmp eax, edi
ja 0x719e22f1
cmp eax, ebx
jne 0x719e2274
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x719e2380
push dword [ebp + 0x10]
call dword [sym.imp._CKERNEL.DLL_LoadLibraryW]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x719e2380
push 0x719d5a88
push eax
call dword [sym.imp._CKERNEL.DLL_GetProcAddress]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x719e2380
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x28]
call eax
mov dword [ebp - 0x3c], eax
jmp 0x719e22cc
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x719e2380
push dword [ebp - 0x20]
push ebx
push dword [0x719f71dc]
call dword [sym.imp._Cntl.DLL_RtlAllocateHeap]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp esi, ebx
jne 0x719e22fd
mov dword [ebp - 0x1c], 8
jmp 0x719e2380
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov edi, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp - 4], 1
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x28]
call dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
or dword [ebp - 4], 0xffffffff
jmp 0x719e234c
cmp eax, 0xffffffff
jne 0x719e235a
mov dword [ebp - 0x1c], 0x1f
jmp 0x719e2380
cmp eax, ebx
jne 0x719e236e
push esi
push ebx
push dword [0x719f71dc]
call dword [sym.imp._Cntl.DLL_RtlFreeHeap]
jmp 0x719e2380
mov ecx, dword [ebp + 0x14]
mov dword [ecx], esi
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
cmp dword [ebp - 0x2c], ebx
je 0x719e238e
push dword [ebp - 0x2c]
call dword [sym.imp._CADVAPI.DLL_RegCloseKey]
cmp dword [ebp - 0x24], ebx
je 0x719e239c
push dword [ebp - 0x24]
call dword [sym.imp._CADVAPI.DLL_RegCloseKey]
cmp dword [ebp - 0x28], ebx
je 0x719e23b1
push dword [ebp - 0x28]
push ebx
push dword [0x719f71dc]
call dword [sym.imp._Cntl.DLL_RtlFreeHeap]
cmp dword [ebp - 0x30], ebx
je 0x719e23c6
push dword [ebp - 0x30]
push ebx
push dword [0x719f71dc]
call dword [sym.imp._Cntl.DLL_RtlFreeHeap]
cmp dword [ebp - 0x34], ebx
je 0x719e23d4
push dword [ebp - 0x34]
call dword [sym.imp._CKERNEL.DLL_FreeLibrary]
mov eax, dword [ebp - 0x1c]
call fcn.719c1430
ret 0x18