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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x2e0498c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x18], ecx
cmp eax, ebx
jne 0x2e019d28
lea ecx, [ebp - 0x11]
call fcn.2e0195b3
mov al, byte [eax]
mov byte [ebp - 0x12], al
push 0x2e04361c
lea eax, [ebp - 0x12]
push eax
call fcn.2e02ef14
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x34]
push edx
push ebx
lea edx, [ebp - 0x24]
push edx
push ebx
push ecx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
call esi
cmp eax, ebx
je 0x2e019d5e
push eax
lea ecx, [ebp - 0x2c]
call fcn.2e00e7c9
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
push 0x2e042058
lea eax, [ebp - 0x18]
jmp 0x2e019d22
cmp dword [ebp - 0x24], ebx
jbe 0x2e019ef1
cmp dword [ebp - 0x24], 2
jbe 0x2e019d77
cmp dword [ebp - 0x24], 4
jne 0x2e019ef1
push dword [ebp - 0x34]
call fcn.2e030056
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x2e019d9b
lea ecx, [ebp - 0x11]
call fcn.2e00e787
mov al, byte [eax]
mov byte [ebp - 0x12], al
push 0x2e0420f4
jmp 0x2e019d1f
lea ecx, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x18]
push dword [edi]
call esi
cmp eax, ebx
jne 0x2e019d46
mov eax, dword [ebp - 0x24]
dec eax
je 0x2e019ec3
dec eax
je 0x2e019e06
dec eax
dec eax
je 0x2e019dd8
lea ecx, [ebp - 0x35]
call fcn.2e00f32e
mov al, byte [eax]
mov byte [ebp - 0x12], al
push 0x2e0424e4
jmp 0x2e019d1f
mov eax, dword [ebp - 0x1c]
push dword [eax]
lea eax, [ebp - 0x10]
push 0x2e0017dc
push 0xffffffffffffffff
push eax
call fcn.2e00e7ad
mov ecx, dword [ebp - 0x28]
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.2e00de92
mov eax, dword [ebp - 0x30]
mov dword [eax], ebx
jmp 0x2e019ed7
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
push ebx
push dword [ebp - 0x1c]
call esi
mov edi, eax
cmp edi, ebx
jne 0x2e019e43
push dword [ebp - 0x1c]
call fcn.2e02f0ba
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x40]
call fcn.2e00e7c9
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
push 0x2e042058
lea eax, [ebp - 0x3c]
jmp 0x2e019d22
push edi
call fcn.2e030056
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x2e019e6b
lea ecx, [ebp - 0x1d]
call fcn.2e00e787
mov al, byte [eax]
mov byte [ebp - 0x11], al
push 0x2e0420f4
lea eax, [ebp - 0x11]
jmp 0x2e019d22
push edi
push eax
push dword [ebp - 0x1c]
call esi
cmp eax, ebx
je 0x2e019e99
cmp eax, edi
ja 0x2e019e99
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
call fcn.2e00de92
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x18]
mov dword [eax], 2
call fcn.2e02f0ba
pop ecx
jmp 0x2e019ed7
push dword [ebp - 0x1c]
call fcn.2e02f0ba
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x44]
call fcn.2e00e7c9
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
push 0x2e042058
lea eax, [ebp - 0x2c]
jmp 0x2e019d22
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
call fcn.2e00de92
mov eax, dword [ebp - 0x30]
mov dword [eax], 1
push dword [ebp - 0x1c]
call fcn.2e02f0ba
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2e02f873
leave
ret 0xc
lea ecx, [ebp - 0x1d]
call fcn.2e00f32e
mov al, byte [eax]
mov byte [ebp - 0x11], al
push 0x2e0424e4
jmp 0x2e019e63