Function at 0x4223b0
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 0x4223d7
mov al, 0x2b
mov byte [ebp - 1], al
jmp 0x422402
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 0x4223f0
cmp al, 0x2d
jne 0x422402
inc edi
cmp dl, 0x3a
je 0x422402
mov cl, byte [edi + ecx]
mov byte [ebp - 1], cl
cmp cl, 0x3a
jne 0x422402
inc edi
mov esi, dword [0x463578]
mov dword [0x464ffc], 0
cmp esi, dword [ebp + 8]
jge 0x422873
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + esi*4]
mov dl, byte [ecx]
cmp dl, 0x2d
jne 0x422787
cmp byte [ecx + 1], dl
jne 0x42243b
cmp byte [ecx + 2], 0
je 0x422873
cmp dl, 0x2d
jne 0x422787
mov dl, byte [ecx + 1]
test dl, dl
je 0x422787
cmp dword [ebp + 0x1c], 0
jne 0x422477
cmp dl, 0x2d
je 0x422477
mov eax, dword [ebp + 0x10]
push eax
push ebx
push dword [ebp + 8]
call fcn.00422080
add esp, 0xc
mov ebx, eax
mov esi, dword [0x463578]
jmp 0x422877
movsx eax, dl
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [0x464ff8], eax
cmp eax, 0x2d
je 0x4224d9
mov eax, dword [ebx + esi*4]
cmp byte [eax + 2], 0
jne 0x4224d9
mov eax, dword [ebp + 0x10]
add eax, edi
movsx ecx, byte [eax]
test ecx, ecx
je 0x4224d9
mov edi, dword [0x464ff8]
lea ecx, [ecx]
mov dl, byte [eax + 1]
inc eax
cmp dl, 0x3a
je 0x4224c3
cmp ecx, 0x57
jne 0x4224ca
cmp dl, 0x3b
jne 0x4224ca
inc eax
cmp byte [eax], 0x3a
jne 0x4224ca
inc eax
cmp edi, ecx
je 0x42257a
movsx ecx, byte [eax]
test ecx, ecx
jne 0x4224b0
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 0x422510
lea ebx, [ebx]
cmp byte [ecx + edx], 0x3d
je 0x42250d
inc edx
cmp byte [ecx + edx], 0
jne 0x422500
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], 0
cmp dword [ecx], 0
je 0x4225a9
mov edi, ecx
xor ecx, ecx
test ecx, ecx
jne 0x4225fd
mov ecx, dword [edi]
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422537
sub ecx, dword [ebp - 0x1c]
mov eax, edx
sub eax, dword [ebp - 0x10]
cmp ecx, eax
jne 0x422590
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 [0x463578]
add esp, 0xc
mov edx, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x422593
mov ecx, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
jmp 0x422596
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.00422080
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 0x422527
test ecx, ecx
jne 0x4225fd
mov ecx, dword [ebp + 0x14]
xor edi, edi
cmp dword [ecx], edi
je 0x42273c
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 0x4225dc
inc dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov ecx, dword [ebp + 0x14]
inc edi
mov esi, dword [0x463578]
mov eax, edi
shl eax, 4
add ecx, eax
cmp dword [ecx], 0
je 0x4225fa
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
jmp 0x4225c0
mov ecx, dword [ebp - 8]
cmp ecx, 1
jne 0x4226f3
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 0x422665
cmp dword [edi + 4], ebx
jne 0x422660
cmp dword [0x46357c], 0
mov ebx, 0x3f
je 0x4226ed
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 [0x463578]
add esp, 0x10
inc esi
jmp 0x422877
lea eax, [edx + 1]
jmp 0x4226bb
cmp dword [edi + 4], 1
jne 0x4226c0
inc esi
mov dword [0x463578], esi
cmp esi, dword [ebp + 8]
jl 0x4226b8
mov eax, 0x3a
mov ebx, 0x3f
cmp byte [ebp - 1], al
cmove ebx, eax
cmp dword [0x46357c], 0
je 0x4226b2
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 [0x463578]
add esp, 0x10
test ebx, ebx
jne 0x4226ed
jmp 0x4226c0
mov eax, dword [ecx + esi*4]
mov dword [0x464ffc], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4226d2
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov esi, dword [0x463578]
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x4226e2
mov ebx, dword [edi + 0xc]
inc esi
jmp 0x422877
mov eax, dword [edi + 0xc]
mov dword [ecx], eax
mov esi, dword [0x463578]
inc esi
jmp 0x422877
test ecx, ecx
je 0x42273c
cmp dword [0x46357c], 0
mov ebx, 0x3f
je 0x422877
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + esi*4]
inc esi
push eax
mov dword [0x463578], 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 [0x463578]
add esp, 0x10
jmp 0x422877
cmp dword [ebp - 0x10], 1
jne 0x42275e
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.00422080
mov esi, dword [0x463578]
add esp, 0xc
mov ebx, eax
jmp 0x422877
cmp dword [0x46357c], 0
mov ebx, 0x3f
je 0x422877
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + esi*4]
inc esi
push eax
mov dword [0x463578], esi
push dword [ecx]
push str._s:_unrecognized_option___s_n
jmp 0x42271e
or ebx, 0xffffffff
cmp al, 0x2b
jne 0x422797
pop edi
pop esi
or eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 0x2d
jne 0x4227b4
inc esi
mov dword [0x464ffc], ecx
pop edi
mov dword [0x463578], 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 0x42287c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edi*4]
cmp byte [eax], 0x2d
jne 0x4227d2
cmp byte [eax + 1], 0
jne 0x4227eb
inc edi
cmp edi, edx
jl 0x4227c4
cmp esi, edx
mov eax, ebx
pop edi
cmovg esi, edx
mov dword [0x463578], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x1c]
mov dword [0x463578], edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push edx
call fcn.004223b0
add esp, 0x18
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp edi, esi
jle 0x42246c
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 [0x463578]
mov dword [ebp + 0x10], ecx
cmp ebx, eax
jge 0x422859
mov edx, ebx
mov esi, ecx
jmp 0x422840
mov eax, dword [esi + 4]
lea esi, [esi + 4]
mov dword [esi - 4], eax
inc edx
mov eax, dword [0x463578]
cmp edx, eax
jl 0x422840
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x1c]
dec eax
mov dword [0x463578], eax
mov dword [edx + eax*4], esi
dec edi
jne 0x422821
mov esi, dword [0x463578]
mov ebx, dword [ebp - 0x18]
jmp 0x422877
inc esi
or ebx, 0xffffffff
mov edx, dword [ebp + 8]
cmp esi, edx
cmovg esi, edx
mov eax, ebx
pop edi
mov dword [0x463578], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret