Function at 0x4e5792f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5a6ef8
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.4e524340
mov dword [ebp - 4], 0
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.4e563410
add esp, 8
push 0x7fff
lea ecx, [ebp - 0x50]
call fcn.4e5717b0
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 0x4e579374
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x14], edx
jmp 0x4e57937a
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 0x4e57949c
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
sub edx, 1
cmp dword [ebp - 0x18], edx
jae 0x4e57949c
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x4c]
jb 0x4e5793d6
push 0x11a
push 0x4e5b00d8
push str.index____used
call fcn.4e566360
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.4e514040
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.4e563af0
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.4e514040
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.4e51da80
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.4e514040
mov byte [ebp - 4], 0
movzx ecx, byte [ebp - 0x44]
test ecx, ecx
je 0x4e57947f
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.4e585fe1
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.4e524340
mov eax, dword [ebp + 8]
jmp 0x4e579540
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.4e514040
mov eax, dword [0x4e5ba7ac]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.4e513f40
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 0x4e5794f7
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.4e585fe1
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.4e524340
mov eax, dword [ebp + 8]
jmp 0x4e579540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret