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

Disassembly:
push 0x80
mov eax, 0x44d8fe
call fcn.004305db
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x50]
push eax
mov dword [edi], ebx
call fcn.0040e1c3
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
push ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call fcn.00411e16
mov esi, 0x405cac
mov byte [ebp - 4], 1
push esi
call fcn.0040f51e
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x50]
call fcn.0041209f
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e0ac
lea ecx, [ebp - 0x80]
call fcn.00411f1c
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.0040f2f2
xor al, al
jmp 0x42e2db
push esi
push ebx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00412630
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x50]
sub eax, esi
mov byte [ebp - 4], 2
dec eax
push eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00412630
mov esi, 0x405cc8
mov byte [ebp - 4], 3
push esi
call fcn.0040f51e
pop ecx
push eax
push esi
push dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
push ebx
call fcn.00413549
test eax, eax
je 0x42e209
mov esi, 0x405d24
push esi
call fcn.0040f51e
pop ecx
push eax
push esi
push dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
push ebx
call fcn.00413549
test eax, eax
je 0x42e209
mov esi, 0x405cbc
push esi
call fcn.0040f51e
pop ecx
push eax
push esi
push dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
push ebx
call fcn.00413549
test eax, eax
je 0x42e202
mov esi, 0x405d00
push esi
call fcn.0040f51e
pop ecx
push eax
push esi
push dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
push ebx
call fcn.00413549
test eax, eax
je 0x42e202
mov esi, 0x405cb0
push esi
call fcn.0040f51e
pop ecx
push eax
push esi
push dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
push ebx
call fcn.00413549
test eax, eax
je 0x42e1fb
mov esi, 0x405cdc
push esi
call fcn.0040f51e
pop ecx
push eax
push esi
push dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
push ebx
call fcn.00413549
test eax, eax
je 0x42e1fb
mov esi, 0x405cd4
push esi
call fcn.0040f51e
pop ecx
push eax
push esi
push dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
push ebx
call fcn.00413549
test eax, eax
je 0x42e1f4
mov esi, 0x405d4c
push esi
call fcn.0040f51e
pop ecx
push eax
push esi
push dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
push ebx
call fcn.00413549
test eax, eax
je 0x42e1f4
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.0040f2f2
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0040f2f2
jmp 0x42e092
mov eax, 0x80000003
jmp 0x42e20e
mov eax, 0x80000000
jmp 0x42e20e
mov eax, 0x80000001
jmp 0x42e20e
mov eax, 0x80000002
cmp dword [ebp - 0x54], 8
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x6d], bl
jae 0x42e220
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x6c]
push edx
push 0x20019
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42e2af
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
push ebx
push dword [ebp - 0x74]
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x6c]
mov dword [ebp - 0x20], ebx
call esi
test eax, eax
jne 0x42e2a6
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42e2a6
cmp dword [ebp - 0x1c], 1
je 0x42e2e1
cmp dword [ebp - 0x1c], 2
je 0x42e2e1
cmp dword [ebp - 0x1c], 4
jne 0x42e2a6
cmp eax, 4
jne 0x42e2a6
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
call esi
test eax, eax
jne 0x42e2a6
mov eax, dword [ebp - 0x18]
mov dword [edi], 2
mov dword [edi + 0x1c], eax
mov byte [ebp - 0x6d], 1
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.0040f2f2
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0040f2f2
lea ecx, [ebp - 0x80]
call fcn.00411f1c
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.0040f2f2
mov al, byte [ebp - 0x6d]
call fcn.0043052d
ret
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
push eax
lea ecx, [ebp - 0x80]
call fcn.004271fd
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42e2a6
inc eax
cmp dword [ebp - 0x1c], eax
jne 0x42e32c
push esi
mov dword [edi], eax
call fcn.0040f51e
pop ecx
push eax
push esi
lea ecx, [edi + 4]
call fcn.0040f3cc
jmp 0x42e2a2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x42e2a6
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
push eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
call fcn.00411e16
push dword [ebp - 0x74]
mov byte [ebp - 4], 5
push dword [ebp - 0x8c]
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x42e3a2
push dword [ebp - 0x8c]
mov dword [edi], 1
call fcn.0040f51e
pop ecx
push eax
push dword [ebp - 0x8c]
lea ecx, [edi + 4]
call fcn.0040f3cc
mov byte [ebp - 0x6d], 1
lea ecx, [ebp - 0x8c]
call fcn.00411f1c
jmp 0x42e2a6