Function at 0x4b6be0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str.POSIXLY_CORRECT
xor edi, edi
or ebx, 0xffffffff
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
test eax, eax
je 0x4b6c07
mov dl, 0x2b
mov byte [ebp - 1], dl
jmp 0x4b6c36
mov ecx, dword [ebp + 0x10]
mov edx, 1
mov al, byte [ecx]
cmp al, 0x3a
mov byte [ebp - 1], al
cmove edi, edx
mov dl, byte [edi + ecx]
cmp dl, 0x2b
je 0x4b6c26
cmp dl, 0x2d
jne 0x4b6c36
inc edi
cmp al, 0x3a
je 0x4b6c36
mov al, byte [edi + ecx]
mov byte [ebp - 1], al
cmp al, 0x3a
jne 0x4b6c36
inc edi
mov ecx, dword [0x690194]
mov esi, dword [0x66b368]
mov dword [0x690190], 0
test ecx, ecx
je 0x4b6db8
mov eax, dword [ebp + 0xc]
lea eax, [eax + esi*4]
mov dword [ebp - 8], eax
mov eax, dword [eax]
movsx ebx, byte [eax + ecx]
mov eax, dword [ebp + 0x10]
mov dword [0x69018c], ebx
lea edx, [edi + eax]
mov al, byte [edx]
test al, al
je 0x4b6c84
movsx eax, al
cmp ebx, eax
je 0x4b6ce3
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x4b6c75
cmp dword [0x66b36c], 0
je 0x4b6cb7
mov eax, dword [ebp + 0xc]
push ebx
push dword [eax]
push str._s:_illegal_option_____c_n
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_fprintf]
mov ecx, dword [0x690194]
add esp, 0x10
mov esi, dword [0x66b368]
mov edx, dword [ebp + 0xc]
inc ecx
mov ebx, 0x3f
mov dword [0x690194], ecx
mov eax, dword [edx + esi*4]
cmp byte [ecx + eax], 0
jne 0x4b6d7f
inc esi
mov dword [0x690194], 0
jmp 0x4b6ef1
mov al, byte [edx + 1]
inc ecx
mov dword [0x690194], ecx
cmp al, 0x3a
je 0x4b6cfe
cmp ebx, 0x57
jne 0x4b6d7c
cmp al, 0x3b
jne 0x4b6d7c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, ecx
cmp byte [eax], 0
je 0x4b6d20
inc esi
mov dword [0x690190], eax
xor ecx, ecx
mov dword [0x66b368], esi
mov dword [0x690194], ecx
jmp 0x4b6d7c
cmp byte [edx + 2], 0x3a
je 0x4b6d7c
inc esi
xor ecx, ecx
mov dword [0x690194], ecx
mov dword [0x66b368], esi
cmp esi, dword [ebp + 8]
jl 0x4b6da4
cmp dword [0x66b36c], ecx
je 0x4b6d6c
mov eax, dword [ebp + 0xc]
push ebx
push dword [eax]
push str._s:_option_requires_an_argument_____c_n
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_fprintf]
mov ecx, dword [0x690194]
add esp, 0x10
mov esi, dword [0x66b368]
mov eax, 0x3a
mov ebx, 0x3f
cmp byte [ebp - 1], al
cmove ebx, eax
mov edx, dword [ebp + 0xc]
test ecx, ecx
je 0x4b6ef1
mov eax, dword [edx + esi*4]
cmp byte [ecx + eax], 0
jne 0x4b6ef1
inc esi
mov dword [0x690194], 0
jmp 0x4b6ef1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + esi*4]
inc esi
mov dword [0x66b368], esi
mov dword [0x690190], eax
jmp 0x4b6d7c
cmp esi, dword [ebp + 8]
jge 0x4b6eed
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + esi*4]
mov dh, byte [eax]
cmp dh, 0x2d
jne 0x4b6e0f
cmp byte [eax + 1], dh
jne 0x4b6ddd
cmp byte [eax + 2], 0
je 0x4b6eed
cmp dh, 0x2d
jne 0x4b6e0f
cmp byte [eax + 1], 0
je 0x4b6e0f
mov eax, dword [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
mov dword [0x690194], 1
call fcn.004b6be0
mov esi, dword [0x66b368]
add esp, 0xc
mov ebx, eax
jmp 0x4b6ef1
cmp dl, 0x2b
je 0x4b6eee
cmp dl, 0x2d
jne 0x4b6e37
mov dword [0x690190], eax
inc esi
mov dword [0x690194], 0
mov ebx, 1
jmp 0x4b6ef1
mov edx, dword [ebp + 8]
mov edi, esi
cmp esi, edx
jge 0x4b6ee7
mov eax, dword [ecx + edi*4]
cmp byte [eax], 0x2d
jne 0x4b6e52
cmp byte [eax + 1], 0
jne 0x4b6e5c
inc edi
cmp edi, edx
jl 0x4b6e44
jmp 0x4b6ee7
mov eax, dword [ebp + 0x10]
push eax
push ecx
push edx
mov dword [0x66b368], edi
call fcn.004b6be0
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp edi, esi
jle 0x4b6ede
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 1]
mov edx, dword [ebp + 0xc]
lea ebx, [eax + edi*4]
mov eax, edi
sub eax, esi
sub edi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
mov edi, eax
mov eax, dword [ebx - 4]
sub ebx, 4
dec ecx
mov dword [ebp - 0xc], eax
mov eax, dword [0x66b368]
mov dword [ebp - 8], ecx
cmp ecx, eax
jge 0x4b6ec9
mov edx, ecx
mov esi, ebx
lea ecx, [ecx]
mov eax, dword [esi + 4]
lea esi, [esi + 4]
mov dword [esi - 4], eax
inc edx
mov eax, dword [0x66b368]
cmp edx, eax
jl 0x4b6eb0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
dec eax
mov dword [0x66b368], eax
mov dword [edx + eax*4], esi
dec edi
jne 0x4b6e93
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov esi, dword [0x66b368]
cmp edi, edx
jne 0x4b6ef1
jmp 0x4b6eee
inc esi
or ebx, 0xffffffff
cmp esi, dword [ebp + 8]
mov eax, ebx
pop edi
cmovg esi, dword [ebp + 8]
mov dword [0x66b368], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret