Function at 0x4b6f10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push str.POSIXLY_CORRECT
xor edi, edi
call dword [sym.imp.MSVCR120.dll_getenv]
add esp, 4
lea ebx, [edi + 1]
test eax, eax
je 0x4b6f37
mov al, 0x2b
mov byte [ebp - 1], al
jmp 0x4b6f62
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx]
cmp dl, 0x3a
mov byte [ebp - 1], dl
cmove edi, ebx
mov al, byte [edi + ecx]
cmp al, 0x2b
je 0x4b6f50
cmp al, 0x2d
jne 0x4b6f62
inc edi
cmp dl, 0x3a
je 0x4b6f62
mov cl, byte [edi + ecx]
mov byte [ebp - 1], cl
cmp cl, 0x3a
jne 0x4b6f62
inc edi
mov esi, dword [0x66b368]
mov dword [0x690190], 0
cmp esi, dword [ebp + 8]
jge 0x4b73d3
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + esi*4]
mov dl, byte [ecx]
cmp dl, 0x2d
jne 0x4b72e7
cmp byte [ecx + 1], dl
jne 0x4b6f9b
cmp byte [ecx + 2], 0
je 0x4b73d3
cmp dl, 0x2d
jne 0x4b72e7
mov dl, byte [ecx + 1]
test dl, dl
je 0x4b72e7
cmp dword [ebp + 0x1c], 0
jne 0x4b6fd7
cmp dl, 0x2d
je 0x4b6fd7
mov eax, dword [ebp + 0x10]
push eax
push ebx
push dword [ebp + 8]
call fcn.004b6be0
add esp, 0xc
mov ebx, eax
mov esi, dword [0x66b368]
jmp 0x4b73d7
movsx eax, dl
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [0x69018c], eax
cmp eax, 0x2d
je 0x4b7039
mov eax, dword [ebx + esi*4]
cmp byte [eax + 2], 0
jne 0x4b7039
mov eax, dword [ebp + 0x10]
add eax, edi
movsx ecx, byte [eax]
test ecx, ecx
je 0x4b7039
mov edi, dword [0x69018c]
lea ecx, [ecx]
mov dl, byte [eax + 1]
inc eax
cmp dl, 0x3a
je 0x4b7023
cmp ecx, 0x57
jne 0x4b702a
cmp dl, 0x3b
jne 0x4b702a
inc eax
cmp byte [eax], 0x3a
jne 0x4b702a
inc eax
cmp edi, ecx
je 0x4b70da
movsx ecx, byte [eax]
test ecx, ecx
jne 0x4b7010
mov ecx, dword [ebx + esi*4]
xor eax, eax
mov edi, 2
cmp byte [ecx + 1], 0x2d
setne al
sub edi, eax
mov dword [ebp - 0x10], edi
mov edx, edi
mov dword [ebp - 0x18], edi
cmp byte [ecx + edi], 0
je 0x4b7070
lea ebx, [ebx]
cmp byte [ecx + edx], 0x3d
je 0x4b706d
inc edx
cmp byte [ecx + edx], 0
jne 0x4b7060
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], 0
cmp dword [ecx], 0
je 0x4b7109
mov edi, ecx
xor ecx, ecx
test ecx, ecx
jne 0x4b715d
mov ecx, dword [edi]
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b7097
sub ecx, dword [ebp - 0x1c]
mov eax, edx
sub eax, dword [ebp - 0x10]
cmp ecx, eax
jne 0x4b70f0
push eax
mov eax, dword [ebx + esi*4]
add eax, dword [ebp - 0x10]
push eax
push dword [edi]
call dword [sym.imp.MSVCR120.dll_strncmp]
mov esi, dword [0x66b368]
add esp, 0xc
mov edx, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x4b70f3
mov ecx, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
jmp 0x4b70f6
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.004b6be0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add edi, 0x10
inc eax
mov dword [ebp - 0x14], eax
cmp dword [edi], 0
jne 0x4b7087
test ecx, ecx
jne 0x4b715d
mov ecx, dword [ebp + 0x14]
xor edi, edi
cmp dword [ecx], edi
je 0x4b729c
mov eax, edx
mov edx, dword [ebp - 0x10]
sub eax, edx
mov dword [ebp - 0x1c], eax
lea ecx, [ecx]
push eax
mov eax, dword [ebx + esi*4]
add eax, edx
push eax
push dword [ecx]
call dword [sym.imp.MSVCR120.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4b713c
inc dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov ecx, dword [ebp + 0x14]
inc edi
mov esi, dword [0x66b368]
mov eax, edi
shl eax, 4
add ecx, eax
cmp dword [ecx], 0
je 0x4b715a
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
jmp 0x4b7120
mov ecx, dword [ebp - 8]
cmp ecx, 1
jne 0x4b7253
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp + 0x14]
add edx, dword [ecx + esi*4]
shl eax, 4
add edi, eax
cmp byte [edx], 0x3d
jne 0x4b71c5
cmp dword [edi + 4], ebx
jne 0x4b71c0
cmp dword [0x66b36c], 0
mov ebx, 0x3f
je 0x4b724d
push dword [edi]
push dword [ecx]
push str._s:_option_____s_doesnt_allow_an_argument_n
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_fprintf]
mov esi, dword [0x66b368]
add esp, 0x10
inc esi
jmp 0x4b73d7
lea eax, [edx + 1]
jmp 0x4b721b
cmp dword [edi + 4], 1
jne 0x4b7220
inc esi
mov dword [0x66b368], esi
cmp esi, dword [ebp + 8]
jl 0x4b7218
mov eax, 0x3a
mov ebx, 0x3f
cmp byte [ebp - 1], al
cmove ebx, eax
cmp dword [0x66b36c], 0
je 0x4b7212
push dword [edi]
push dword [ecx]
push str._s:_option_____s_requires_an_argument_n
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_fprintf]
mov esi, dword [0x66b368]
add esp, 0x10
test ebx, ebx
jne 0x4b724d
jmp 0x4b7220
mov eax, dword [ecx + esi*4]
mov dword [0x690190], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4b7232
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov esi, dword [0x66b368]
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x4b7242
mov ebx, dword [edi + 0xc]
inc esi
jmp 0x4b73d7
mov eax, dword [edi + 0xc]
mov dword [ecx], eax
mov esi, dword [0x66b368]
inc esi
jmp 0x4b73d7
test ecx, ecx
je 0x4b729c
cmp dword [0x66b36c], 0
mov ebx, 0x3f
je 0x4b73d7
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + esi*4]
inc esi
push eax
mov dword [0x66b368], esi
push dword [ecx]
push str._s:_option___s_is_ambiguous_n
call dword [sym.imp.MSVCR120.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR120.dll_fprintf]
mov esi, dword [0x66b368]
add esp, 0x10
jmp 0x4b73d7
cmp dword [ebp - 0x10], 1
jne 0x4b72be
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.004b6be0
mov esi, dword [0x66b368]
add esp, 0xc
mov ebx, eax
jmp 0x4b73d7
cmp dword [0x66b36c], 0
mov ebx, 0x3f
je 0x4b73d7
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + esi*4]
inc esi
push eax
mov dword [0x66b368], esi
push dword [ecx]
push str._s:_unrecognized_option___s_n
jmp 0x4b727e
or ebx, 0xffffffff
cmp al, 0x2b
jne 0x4b72f7
pop edi
pop esi
or eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x2d
jne 0x4b7314
inc esi
mov dword [0x690190], ecx
pop edi
mov dword [0x66b368], esi
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edi, esi
cmp esi, edx
jge 0x4b73dc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edi*4]
cmp byte [eax], 0x2d
jne 0x4b7332
cmp byte [eax + 1], 0
jne 0x4b734b
inc edi
cmp edi, edx
jl 0x4b7324
cmp esi, edx
mov eax, ebx
pop edi
cmovg esi, edx
mov dword [0x66b368], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x1c]
mov dword [0x66b368], edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push edx
call fcn.004b6f10
add esp, 0x18
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp edi, esi
jle 0x4b6fcc
mov eax, dword [ebp + 0xc]
lea ebx, [edi + 1]
mov edx, eax
lea ecx, [eax + edi*4]
sub edi, esi
mov eax, dword [ecx - 4]
sub ecx, 4
dec ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x66b368]
mov dword [ebp + 0x10], ecx
cmp ebx, eax
jge 0x4b73b9
mov edx, ebx
mov esi, ecx
jmp 0x4b73a0
mov eax, dword [esi + 4]
lea esi, [esi + 4]
mov dword [esi - 4], eax
inc edx
mov eax, dword [0x66b368]
cmp edx, eax
jl 0x4b73a0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x1c]
dec eax
mov dword [0x66b368], eax
mov dword [edx + eax*4], esi
dec edi
jne 0x4b7381
mov esi, dword [0x66b368]
mov ebx, dword [ebp - 0x18]
jmp 0x4b73d7
inc esi
or ebx, 0xffffffff
mov edx, dword [ebp + 8]
cmp esi, edx
cmovg esi, edx
mov eax, ebx
pop edi
mov dword [0x66b368], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret