Function at 0x10024203
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0xfffffffa
mov dword [ebp - 8], 0
jmp 0x10024227
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jge 0x1002423a
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x58], 0xffffffff
jmp 0x10024220
mov dword [ebp - 8], 0
jmp 0x1002424a
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x1002425d
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x64], 0xfffffffc
jmp 0x10024243
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10024278
push 0x1ddd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp - 0x10], 0
je 0x10024352
cmp dword [ebp - 0x10], 0
je 0x1002433d
cmp dword [ebp - 0xc], 0
jne 0x10024310
cmp dword [ebp - 0xc], 0xffffffff
jge 0x100242a1
mov dword [ebp - 0x1c], 1
jmp 0x100242a5
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
sub eax, 6
cmp eax, dword [ebp - 0xc]
jle 0x100242b9
mov dword [ebp - 0x20], 1
jmp 0x100242bd
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
je 0x100242d8
xor eax, eax
je 0x100242d8
mov dword [ebp - 0x24], 1
jmp 0x100242dc
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
sub eax, 0xe2632c5
imul eax, eax, 0xfffffffe
test eax, eax
je 0x100242fa
cmp dword [ebp - 0xc], 0
je 0x100242fa
mov dword [ebp - 0x28], 1
jmp 0x100242fe
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x28]
sub eax, 7
jne 0x10024310
and dword [ebp - 0x2c], 0
jmp 0x10024317
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x2c], eax
je 0x10024328
mov dword [ebp - 0x30], 1
jmp 0x1002432c
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x30], eax
je 0x1002433d
mov dword [ebp - 0x34], 1
jmp 0x10024341
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x34], eax
jl 0x10024352
mov dword [ebp - 0x14], 1
jmp 0x10024356
and dword [ebp - 0x14], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp + eax - 0x58], ecx
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp + eax - 0x64], ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100243a9
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
neg eax
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
jmp 0x100243d0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret