Function at 0x4e57a6d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5aa2f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
push 0
push 0
lea ecx, [ebp - 0x68]
call fcn.4e525040
mov dword [ebp - 4], 0
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.4e564800
add esp, 8
push 0x7fff
lea ecx, [ebp - 0x50]
call fcn.4e572b90
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x54], 8
jb 0x4e57a754
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x14], edx
jmp 0x4e57a75a
lea eax, [ebp - 0x68]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x4e57a87c
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
sub edx, 1
cmp dword [ebp - 0x18], edx
jae 0x4e57a87c
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x4c]
jb 0x4e57a7b6
push 0x11a
push 0x4e5b3120
push str.index____used
call fcn.4e567750
add esp, 0xc
mov edx, dword [ebp - 0x48]
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov word [edx + ecx*2], ax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
push 0
push 0
lea ecx, [ebp - 0x80]
call fcn.4e5144a0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.4e564ee0
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.4e5144a0
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.4e51e120
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.4e5144a0
mov byte [ebp - 4], 0
movzx ecx, byte [ebp - 0x44]
test ecx, ecx
je 0x4e57a85f
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.4e589184
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.4e525040
mov eax, dword [ebp + 8]
jmp 0x4e57a920
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.4e5144a0
mov eax, dword [0x4e5b23ac]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.4e5143a0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 0x44]
test eax, eax
je 0x4e57a8d7
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.4e589184
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.4e525040
mov eax, dword [ebp + 8]
jmp 0x4e57a920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret