Function at 0x10020582
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push esi
movzx eax, byte [ebp + 0x30]
test eax, eax
je 0x100207fa
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0
jne 0x10020730
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax]
push 1
mov ecx, dword [ebp - 0x54]
call fcn.1001a3f7
add esi, dword [eax]
cmp esi, 0x2f603f5
jge 0x10020692
mov dword [ebp - 0x5c], 1
jmp 0x10020696
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x6c]
sub eax, dword [ecx]
mov ecx, dword [ebp - 0xc]
sub eax, dword [ecx]
jne 0x100206ca
push 3
pop eax
test eax, eax
jne 0x100206ca
and dword [ebp - 0x30], 0
jmp 0x100206d1
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp dword [ebp - 0x30], eax
jl 0x100206e4
mov dword [ebp - 0x18], 1
jmp 0x100206e8
and dword [ebp - 0x18], 0
imul eax, dword [ebp - 0x18], 0xfffffffa
test eax, eax
je 0x10020702
mov eax, 0xac77aca
test eax, eax
je 0x10020702
mov dword [ebp - 0x38], 1
jmp 0x10020706
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
dec eax
cmp eax, 0x8f30
jl 0x1002071a
mov dword [ebp - 0x20], 1
jmp 0x1002071e
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
neg eax
cmp eax, 0xfffe
ja 0x10020730
and dword [ebp - 0x10], 0
jmp 0x10020737
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
cmp dword [ebp - 0x10], eax
jg 0x10020752
mov eax, dword [ebp - 0x7c]
cmp dword [eax], 0
je 0x10020752
mov dword [ebp - 0x28], 1
jmp 0x10020756
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x84]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x28]
cmp dword [eax], ecx
jle 0x10020771
mov dword [ebp - 0x14], 1
jmp 0x10020775
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x94]
jl 0x100207ab
mov dword [ebp - 4], 1
jmp 0x100207af
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 4]
sub ecx, dword [eax]
mov eax, dword [ebp - 0xc]
add ecx, dword [eax]
cmp ecx, 7
je 0x100207d5
mov dword [ebp - 0x2c], 1
jmp 0x100207d9
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
jge 0x100207ec
mov dword [ebp - 0x3c], 1
jmp 0x100207f0
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
jmp 0x10020809
push 0x79b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
pop esi
mov esp, ebp
pop ebp
ret