Function at 0x1002e788
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x1002e7b0
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x60], eax
push 1
push dword [ebp - 0x60]
call fcn.1002e94c
pop ecx
pop ecx
jmp 0x1002e948
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x1c], 0x5e74
mov dword [ebp - 0x5c], 0x10009028
cmp dword [ebp - 0x1c], 0x6164
jle 0x1002e889
and dword [ebp - 0xc], 0
jmp 0x1002e802
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x35cd
jge 0x1002e889
and dword [ebp - 8], 0
jmp 0x1002e818
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x162c
jge 0x1002e884
and dword [ebp - 4], 0
jmp 0x1002e82e
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x684a
jge 0x1002e882
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
and eax, dword [ebp - 0xc]
cdq
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
lea ecx, [ebp - 0x94]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x94]
call fcn.100252df
jmp 0x1002e827
jmp 0x1002e811
jmp 0x1002e7fb
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x1002e8af
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x1002e936
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x44]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10025597
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
shl eax, 2
imul eax, eax, 0xc0f9
test eax, eax
je 0x1002e927
push 1
mov ecx, dword [ebp - 0x18]
call fcn.10025597
cmp dword [eax], 0
je 0x1002e927
and dword [ebp - 0x14], 0
jmp 0x1002e92e
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [ebp - 0x1c], 0x5e32
jge 0x1002e948
push dword [ebp - 0x5c]
call fcn.1008287d
pop ecx
mov esp, ebp
pop ebp
ret