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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x2e048994]
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 0x2e018f38
lea ecx, [ebp - 0x11]
call fcn.2e0187c3
mov al, byte [eax]
mov byte [ebp - 0x12], al
push 0x2e041ea8
lea eax, [ebp - 0x12]
push eax
call fcn.2e02dc28
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 0x2e018f6e
push eax
lea ecx, [ebp - 0x2c]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
push 0x2e040994
lea eax, [ebp - 0x18]
jmp 0x2e018f32
cmp dword [ebp - 0x24], ebx
jbe 0x2e019101
cmp dword [ebp - 0x24], 2
jbe 0x2e018f87
cmp dword [ebp - 0x24], 4
jne 0x2e019101
push dword [ebp - 0x34]
call fcn.2e02ed6a
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x2e018fab
lea ecx, [ebp - 0x11]
call fcn.2e00e609
mov al, byte [eax]
mov byte [ebp - 0x12], al
push 0x2e040a38
jmp 0x2e018f2f
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 0x2e018f56
mov eax, dword [ebp - 0x24]
dec eax
je 0x2e0190d3
dec eax
je 0x2e019016
dec eax
dec eax
je 0x2e018fe8
lea ecx, [ebp - 0x35]
call fcn.2e00f17a
mov al, byte [eax]
mov byte [ebp - 0x12], al
push 0x2e040dfc
jmp 0x2e018f2f
mov eax, dword [ebp - 0x1c]
push dword [eax]
lea eax, [ebp - 0x10]
push 0x2e0016f4
push 0xffffffffffffffff
push eax
call fcn.2e00e62f
mov ecx, dword [ebp - 0x28]
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.2e00d9b8
mov eax, dword [ebp - 0x30]
mov dword [eax], ebx
jmp 0x2e0190e7
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 0x2e019053
push dword [ebp - 0x1c]
call fcn.2e02ddce
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x40]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
push 0x2e040994
lea eax, [ebp - 0x3c]
jmp 0x2e018f32
push edi
call fcn.2e02ed6a
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x2e01907b
lea ecx, [ebp - 0x1d]
call fcn.2e00e609
mov al, byte [eax]
mov byte [ebp - 0x11], al
push 0x2e040a38
lea eax, [ebp - 0x11]
jmp 0x2e018f32
push edi
push eax
push dword [ebp - 0x1c]
call esi
cmp eax, ebx
je 0x2e0190a9
cmp eax, edi
ja 0x2e0190a9
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
call fcn.2e00d9b8
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x18]
mov dword [eax], 2
call fcn.2e02ddce
pop ecx
jmp 0x2e0190e7
push dword [ebp - 0x1c]
call fcn.2e02ddce
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x44]
call fcn.2e00e64b
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
push 0x2e040994
lea eax, [ebp - 0x2c]
jmp 0x2e018f32
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
call fcn.2e00d9b8
mov eax, dword [ebp - 0x30]
mov dword [eax], 1
push dword [ebp - 0x1c]
call fcn.2e02ddce
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2e02e587
leave
ret 0xc
lea ecx, [ebp - 0x1d]
call fcn.2e00f17a
mov al, byte [eax]
mov byte [ebp - 0x11], al
push 0x2e040dfc
jmp 0x2e019073