Function at 0x1001aeb1
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001af4f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
imul eax, dword [ecx]
mov ecx, dword [ebp - 0x50]
cmp eax, dword [ecx]
jge 0x1001af03
mov dword [ebp - 0x1c], 1
jmp 0x1001af07
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0xfff6
jne 0x1001af19
mov dword [ebp - 0x54], 1
jmp 0x1001af1d
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x1001af3a
mov dword [ebp - 0x20], 1
jmp 0x1001af3e
and dword [ebp - 0x20], 0
imul eax, dword [ebp - 0x20], 0x9d05
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
jmp 0x1001b0b6
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0xfffffffa
mov dword [ebp - 8], 0
jmp 0x1001af6d
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jge 0x1001af80
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x60], 0xffffffff
jmp 0x1001af66
mov dword [ebp - 8], 0
jmp 0x1001af90
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x1001afa3
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x6c], 0xfffffffc
jmp 0x1001af89
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001afbe
push 0x1ddd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp - 0x10], 0
je 0x1001b098
cmp dword [ebp - 0x10], 0
je 0x1001b083
cmp dword [ebp - 0xc], 0
jne 0x1001b056
cmp dword [ebp - 0xc], 0xffffffff
jge 0x1001afe7
mov dword [ebp - 0x28], 1
jmp 0x1001afeb
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
sub eax, 6
cmp eax, dword [ebp - 0xc]
jle 0x1001afff
mov dword [ebp - 0x2c], 1
jmp 0x1001b003
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x2c]
je 0x1001b01e
xor eax, eax
je 0x1001b01e
mov dword [ebp - 0x30], 1
jmp 0x1001b022
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
sub eax, 0xe2632c5
imul eax, eax, 0xfffffffe
test eax, eax
je 0x1001b040
cmp dword [ebp - 0xc], 0
je 0x1001b040
mov dword [ebp - 0x34], 1
jmp 0x1001b044
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x34]
sub eax, 7
jne 0x1001b056
and dword [ebp - 0x38], 0
jmp 0x1001b05d
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x38], eax
je 0x1001b06e
mov dword [ebp - 0x3c], 1
jmp 0x1001b072
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x3c], eax
je 0x1001b083
mov dword [ebp - 0x40], 1
jmp 0x1001b087
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x40], eax
jl 0x1001b098
mov dword [ebp - 0x18], 1
jmp 0x1001b09c
and dword [ebp - 0x18], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp + eax - 0x60], ecx
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp + eax - 0x6c], ecx
mov esp, ebp
pop ebp
ret