Function at 0x4bbe50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
push 0
push 0
lea ecx, [ebp - 0x60]
call fcn.0046b5e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004b56b0
add esp, 8
mov dword [ebp - 0x48], 0x7fff
xor ecx, ecx
mov eax, 0x7fff
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a012a
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x4c], 8
jb 0x4bbef5
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x14], ecx
jmp 0x4bbefb
lea edx, [ebp - 0x60]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x4bc00c
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
sub ecx, 1
cmp dword [ebp - 0x18], ecx
jae 0x4bc00c
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x48]
jb 0x4bbf54
push 0x7b
push 0x502d6c
push str.index____size
call fcn.004ad0f0
add esp, 0xc
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov word [ecx + eax*2], dx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
push 0
push 0
lea ecx, [ebp - 0x78]
call fcn.004769f0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.004b5c40
add esp, 8
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.004769f0
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp + 8]
call fcn.00475b10
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.004769f0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.004ce339
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x60]
call fcn.0046b5e0
mov eax, dword [ebp + 8]
jmp 0x4bc0a0
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.004769f0
mov eax, dword [0x5319c8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00475f50
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004ce339
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x60]
call fcn.0046b5e0
mov eax, dword [ebp + 8]
jmp 0x4bc0a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret