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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x2e049994]
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 0x2e019b0e
lea ecx, [ebp - 0x11]
call fcn.2e019399
mov al, byte [eax]
mov byte [ebp - 0x12], al
push 0x2e043500
lea eax, [ebp - 0x12]
push eax
call fcn.2e02ee42
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 0x2e019b44
push eax
lea ecx, [ebp - 0x2c]
call fcn.2e00e813
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
push 0x2e041f6c
lea eax, [ebp - 0x18]
jmp 0x2e019b08
cmp dword [ebp - 0x24], ebx
jbe 0x2e019cd7
cmp dword [ebp - 0x24], 2
jbe 0x2e019b5d
cmp dword [ebp - 0x24], 4
jne 0x2e019cd7
push dword [ebp - 0x34]
call fcn.2e02ff86
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x2e019b81
lea ecx, [ebp - 0x11]
call fcn.2e00e7d1
mov al, byte [eax]
mov byte [ebp - 0x12], al
push 0x2e042010
jmp 0x2e019b05
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 0x2e019b2c
mov eax, dword [ebp - 0x24]
dec eax
je 0x2e019ca9
dec eax
je 0x2e019bec
dec eax
dec eax
je 0x2e019bbe
lea ecx, [ebp - 0x35]
call fcn.2e00f342
mov al, byte [eax]
mov byte [ebp - 0x12], al
push 0x2e0423a8
jmp 0x2e019b05
mov eax, dword [ebp - 0x1c]
push dword [eax]
lea eax, [ebp - 0x10]
push 0x2e001704
push 0xffffffffffffffff
push eax
call fcn.2e00e7f7
mov ecx, dword [ebp - 0x28]
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.2e00dc92
mov eax, dword [ebp - 0x30]
mov dword [eax], ebx
jmp 0x2e019cbd
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 0x2e019c29
push dword [ebp - 0x1c]
call fcn.2e02efe8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x40]
call fcn.2e00e813
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
push 0x2e041f6c
lea eax, [ebp - 0x3c]
jmp 0x2e019b08
push edi
call fcn.2e02ff86
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x2e019c51
lea ecx, [ebp - 0x1d]
call fcn.2e00e7d1
mov al, byte [eax]
mov byte [ebp - 0x11], al
push 0x2e042010
lea eax, [ebp - 0x11]
jmp 0x2e019b08
push edi
push eax
push dword [ebp - 0x1c]
call esi
cmp eax, ebx
je 0x2e019c7f
cmp eax, edi
ja 0x2e019c7f
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
call fcn.2e00dc92
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x18]
mov dword [eax], 2
call fcn.2e02efe8
pop ecx
jmp 0x2e019cbd
push dword [ebp - 0x1c]
call fcn.2e02efe8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x44]
call fcn.2e00e813
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
push 0x2e041f6c
lea eax, [ebp - 0x2c]
jmp 0x2e019b08
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
call fcn.2e00dc92
mov eax, dword [ebp - 0x30]
mov dword [eax], 1
push dword [ebp - 0x1c]
call fcn.2e02efe8
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2e02f7a3
leave
ret 0xc
lea ecx, [ebp - 0x1d]
call fcn.2e00f342
mov al, byte [eax]
mov byte [ebp - 0x11], al
push 0x2e0423a8
jmp 0x2e019c49