Function at 0x405d10
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test r8, r8
mov esi, ecx
mov rbx, rdx
mov qword [rsp + 0xa8], r9
mov r13, r8
je 0x40614e
mov r9d, dword [0x0040708c]
test r9d, r9d
je 0x405f70
cmp dword [0x00407070], 0xffffffff
je 0x405f84
mov eax, dword [0x0040b9c0]
test eax, eax
jne 0x405f84
movzx edx, byte [r13]
cmp dl, 0x2d
je 0x405fb3
mov r8d, dword [0x00407070]
test r8d, r8d
jne 0x405d83
cmp dl, 0x2b
jne 0x405d94
and dword [rsp + 0xb8], 0xfffffffe
cmp dl, 0x2b
je 0x405fbb
test eax, eax
mov qword [0x0040b9b8], 0
je 0x405db7
mov dword [0x00407074], 0xffffffff
mov dword [0x00407078], 0xffffffff
mov edi, dword [rsp + 0xb8]
lea rbp, [0x00408a75]
mov r12d, dword [rsp + 0xb8]
and edi, 2
and r12d, 1
test eax, eax
je 0x405e4f
mov r14d, dword [0x0040708c]
mov dword [0x0040b9c0], 0
cmp r14d, esi
jge 0x406110
movsxd rax, r14d
mov r11, qword [rbx + rax*8]
cmp byte [r11], 0x2d
mov qword [0x00407080], r11
je 0x405fc4
test edi, edi
mov qword [0x00407080], rbp
jne 0x406170
test r12d, r12d
je 0x40614e
mov r15d, dword [0x00407078]
cmp r15d, 0xffffffff
je 0x4060a0
mov r10d, dword [0x00407074]
cmp r10d, 0xffffffff
jne 0x4060c0
lea r8d, [r14 + 1]
mov dword [0x0040708c], r8d
mov r10, qword [0x00407080]
movzx r15d, byte [r10]
test r15b, r15b
je 0x405dd8
cmp qword [rsp + 0xa8], 0
je 0x405e93
movsxd rax, dword [0x0040708c]
cmp qword [rbx + rax*8], r10
je 0x405e93
cmp r15b, 0x2d
je 0x406056
test byte [rsp + 0xb8], 4
jne 0x4061a9
lea rbp, [r10 + 1]
movsx edi, r15b
cmp edi, 0x3a
mov qword [0x00407080], rbp
je 0x406241
cmp edi, 0x2d
je 0x4063bc
mov edx, edi
mov rcx, r13
mov qword [rsp + 0x38], r10
call sym.strchr
mov r10, qword [rsp + 0x38]
test rax, rax
je 0x406241
cmp qword [rsp + 0xa8], 0
movzx edx, byte [rax + 1]
je 0x406211
cmp edi, 0x57
jne 0x406211
cmp dl, 0x3b
jne 0x406211
cmp byte [r10 + 1], 0
jne 0x406339
mov eax, dword [0x0040708c]
add eax, 1
cmp eax, esi
mov dword [0x0040708c], eax
jl 0x40632c
mov edx, dword [0x00407090]
lea rax, [0x00408a75]
mov qword [0x00407080], rax
test edx, edx
je 0x405f48
cmp byte [r13], 0x3a
je 0x405f48
lea rcx, str.option_requires_an_argument_____c
mov edx, 0x57
call sym.warnx
mov dword [0x00407088], 0x57
cmp byte [r13], 0x3a
je 0x406322
mov edi, 0x3f
jmp 0x406153
mov dword [0x0040b9c0], 1
mov dword [0x0040708c], 1
lea rcx, str.POSIXLY_CORRECT
call sym.getenv
movzx edx, byte [r13]
test rax, rax
setne al
movzx eax, al
cmp dl, 0x2d
mov dword [0x00407070], eax
mov eax, dword [0x0040b9c0]
jne 0x405d72
or dword [rsp + 0xb8], 2
add r13, 1
jmp 0x405d94
movzx r15d, byte [r11 + 1]
test r15b, r15b
jne 0x40622d
mov edx, 0x2d
mov rcx, r13
mov qword [rsp + 0x38], r11
call sym.strchr
mov r11, qword [rsp + 0x38]
test rax, rax
je 0x405e0a
mov edi, dword [0x00407078]
cmp edi, 0xffffffff
je 0x4061cf
cmp dword [0x00407074], 0xffffffff
jne 0x406011
mov dword [0x00407074], r14d
test r15b, r15b
je 0x4061cf
lea r10, [r11 + 1]
cmp r15b, 0x2d
mov qword [0x00407080], r10
jne 0x405e63
cmp byte [r11 + 2], 0
je 0x40638c
cmp qword [rsp + 0xa8], 0
je 0x406363
movsxd r8, r14d
cmp r10, qword [rbx + r8*8]
je 0x405e93
add r10, 1
xor eax, eax
mov qword [0x00407080], r10
mov r9, qword [rsp + 0xb0]
mov dword [rsp + 0x20], eax
mov rdx, r13
mov rcx, rbx
mov r8, qword [rsp + 0xa8]
call sym.parse_long_options
cmp eax, 0xffffffff
mov edi, eax
je 0x4062c0
lea rax, [0x00408a75]
mov qword [0x00407080], rax
jmp 0x406153
lea r8d, [r14 + 1]
mov dword [0x00407078], r14d
mov dword [0x0040708c], r8d
jmp 0x405e4f
mov edx, r10d
mov r9, rbx
mov r8d, r14d
mov dword [rsp + 0x38], r10d
mov ecx, r15d
call sym.permute_args
mov edx, dword [0x0040708c]
mov dword [0x00407074], 0xffffffff
mov r10d, dword [rsp + 0x38]
mov eax, edx
add edx, 1
sub r10d, r15d
mov dword [0x0040708c], edx
sub eax, r10d
mov dword [0x00407078], eax
mov eax, dword [0x0040b9c0]
jmp 0x405dd4
mov esi, dword [0x00407074]
lea rax, [0x00408a75]
mov qword [0x00407080], rax
mov edi, dword [0x00407078]
cmp esi, 0xffffffff
jne 0x406190
cmp edi, 0xffffffff
je 0x40613a
mov dword [0x0040708c], edi
mov dword [0x00407074], 0xffffffff
mov dword [0x00407078], 0xffffffff
mov edi, 0xffffffff
mov eax, edi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r8d, [r14 + 1]
mov qword [0x0040b9b8], r11
mov edi, 1
mov dword [0x0040708c], r8d
jmp 0x406153
mov r9, rbx
mov r8d, r14d
mov edx, esi
mov ecx, edi
sub esi, edi
call sym.permute_args
sub dword [0x0040708c], esi
jmp 0x40613a
xor eax, eax
cmp r15b, 0x3a
je 0x406063
movsx edx, r15b
mov rcx, r13
call sym.strchr
test rax, rax
setne al
movzx eax, al
jmp 0x406063
lea rbp, [r11 + 1]
mov qword [0x00407080], rbp
cmp byte [r11 + 1], 0
jne 0x40627e
mov edx, 0x2d
mov rcx, r13
mov qword [rsp + 0x38], r11
call sym.strchr
mov r11, qword [rsp + 0x38]
test rax, rax
je 0x40614e
movzx edx, byte [rax + 1]
mov r10, r11
mov edi, 0x2d
cmp dl, 0x3a
je 0x406285
cmp byte [r10 + 1], 0
jne 0x406153
add dword [0x0040708c], 1
jmp 0x406153
mov edi, dword [0x00407078]
cmp edi, 0xffffffff
jne 0x406001
jmp 0x40601a
cmp byte [r10 + 1], 0
jne 0x40624f
add dword [0x0040708c], 1
mov ecx, dword [0x00407090]
test ecx, ecx
je 0x40626e
cmp byte [r13], 0x3a
je 0x40626e
lea rcx, str.unknown_option_____c
mov edx, edi
call sym.warnx
mov dword [0x00407088], edi
mov edi, 0x3f
jmp 0x406153
mov edi, 0x2d
jmp 0x40624f
mov qword [0x0040b9b8], 0
mov ecx, dword [0x0040708c]
cmp byte [r10 + 1], 0
lea edx, [rcx + 1]
je 0x4062d0
mov qword [0x0040b9b8], rbp
lea rax, [0x00408a75]
mov dword [0x0040708c], edx
mov qword [0x00407080], rax
jmp 0x406153
mov r10, qword [0x00407080]
movzx r15d, byte [r10]
jmp 0x405e93
cmp byte [rax + 2], 0x3a
je 0x4062a7
cmp esi, edx
mov dword [0x0040708c], edx
jg 0x406376
lea rax, [0x00408a75]
mov qword [0x00407080], rax
mov eax, dword [0x00407090]
test eax, eax
je 0x406311
cmp byte [r13], 0x3a
je 0x406311
lea rcx, str.option_requires_an_argument_____c
mov edx, edi
call sym.warnx
mov dword [0x00407088], edi
cmp byte [r13], 0x3a
jne 0x405f5d
mov edi, 0x3a
jmp 0x406153
cdqe
mov rax, qword [rbx + rax*8]
mov qword [0x00407080], rax
mov r9, qword [rsp + 0xb0]
mov dword [rsp + 0x20], 0
mov rdx, r13
mov rcx, rbx
mov r8, qword [rsp + 0xa8]
call sym.parse_long_options
mov edi, eax
jmp 0x40608d
lea rbp, [r11 + 2]
mov r11, r10
mov qword [0x00407080], rbp
jmp 0x4061da
movsxd rdx, edx
mov rax, qword [rbx + rdx*8]
lea edx, [rcx + 2]
mov qword [0x0040b9b8], rax
jmp 0x4062a7
mov esi, dword [0x00407074]
lea r8d, [r14 + 1]
lea rax, [0x00408a75]
mov dword [0x0040708c], r8d
mov qword [0x00407080], rax
cmp esi, 0xffffffff
je 0x40613a
mov r9, rbx
jmp 0x406196
mov r11, r10
jmp 0x4061da