Function at 0x64a3c0
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 ebp, ecx
mov r15, rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
je 0x64a70a
mov r14d, dword [0x0065aa6c]
test r14d, r14d
je 0x64a675
cmp dword [0x0065aa50], 0xffffffff
je 0x64a630
mov r13d, dword [0x007f1ed8]
xor eax, eax
test r13d, r13d
jne 0x64a630
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rcx]
cmp dl, 0x2d
je 0x64a662
mov r12d, dword [0x0065aa50]
test r12d, r12d
jne 0x64a690
cmp dl, 0x2b
je 0x64a7c5
test eax, eax
mov qword [0x007f1ed0], 0
je 0x64a464
mov dword [0x0065aa54], 0xffffffff
mov dword [0x0065aa58], 0xffffffff
mov r13d, dword [rsp + 0xb8]
mov r12d, dword [rsp + 0xb8]
and r13d, 2
and r12d, 1
jmp 0x64a4f9
lea rax, [0x007c89b5]
test r13d, r13d
mov qword [0x0065aa60], rax
mov eax, r13d
jne 0x64a720
test r12d, r12d
je 0x64a70a
mov esi, dword [0x0065aa58]
cmp esi, 0xffffffff
je 0x64a6b0
mov edi, dword [0x0065aa54]
mov r8d, ebx
cmp edi, 0xffffffff
je 0x64a4ef
mov ecx, esi
mov r9, r15
mov edx, edi
call fcn.00649f30
mov ebx, dword [0x0065aa6c]
sub esi, edi
mov eax, dword [0x007f1ed8]
mov dword [0x0065aa54], 0xffffffff
add esi, ebx
mov r8d, ebx
mov dword [0x0065aa58], esi
lea ebx, [r8 + 1]
mov dword [0x0065aa6c], ebx
test eax, eax
jne 0x64a510
mov rax, qword [0x0065aa60]
movsx edi, byte [rax]
test dil, dil
jne 0x64a7bd
mov ebx, dword [0x0065aa6c]
mov dword [0x007f1ed8], 0
cmp ebx, ebp
jge 0x64a6c0
movsxd rax, ebx
mov rsi, qword [r15 + rax*8]
movsx edi, byte [rsi]
mov qword [0x0065aa60], rsi
cmp dil, 0x2d
jne 0x64a480
movzx r14d, byte [rsi + 1]
test r14b, r14b
jne 0x64a565
mov rcx, qword [rsp + 0x30]
mov edx, 0x2d
call sub.msvcrt.dll_strchr
test rax, rax
je 0x64a480
mov eax, dword [0x0065aa58]
cmp eax, 0xffffffff
je 0x64a57d
cmp dword [0x0065aa54], 0xffffffff
je 0x64a8d5
test r14b, r14b
je 0x64a896
lea rdx, [rsi + 1]
cmp r14b, 0x2d
movsx edi, r14b
mov qword [0x0065aa60], rdx
mov r12, rdx
je 0x64a91e
cmp qword [rsp + 0x38], 0
je 0x64a756
movsxd rax, dword [0x0065aa6c]
cmp qword [r15 + rax*8], r12
je 0x64a756
cmp dil, 0x2d
je 0x64a8c3
test byte [rsp + 0xb8], 4
je 0x64a756
xor eax, eax
cmp dil, 0x3a
je 0x64a5f6
mov rcx, qword [rsp + 0x30]
movsx edx, dil
call sub.msvcrt.dll_strchr
test rax, rax
setne al
movzx eax, al
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0x38]
mov rcx, r15
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
call fcn.0064a070
cmp eax, 0xffffffff
je 0x64a74a
lea rcx, [0x007c89b5]
mov qword [0x0065aa60], rcx
jmp 0x64a70f
lea rcx, str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
mov rcx, qword [rsp + 0x30]
test rax, rax
setne al
movzx eax, al
movzx edx, byte [rcx]
mov dword [0x0065aa50], eax
mov eax, dword [0x007f1ed8]
cmp dl, 0x2d
jne 0x64a428
or dword [rsp + 0xb8], 2
add qword [rsp + 0x30], 1
jmp 0x64a441
mov dword [0x007f1ed8], 1
mov dword [0x0065aa6c], 1
jmp 0x64a3f8
and dword [rsp + 0xb8], 0xfffffffe
cmp dl, 0x2b
jne 0x64a441
add qword [rsp + 0x30], 1
jmp 0x64a441
mov dword [0x0065aa58], ebx
mov r8d, ebx
jmp 0x64a4ef
mov esi, dword [0x0065aa54]
lea rax, [0x007c89b5]
mov qword [0x0065aa60], rax
cmp esi, 0xffffffff
je 0x64a737
mov edi, dword [0x0065aa58]
mov r9, r15
mov r8d, ebx
mov edx, esi
mov ecx, edi
sub edi, esi
call fcn.00649f30
add dword [0x0065aa6c], edi
mov dword [0x0065aa54], 0xffffffff
mov dword [0x0065aa58], 0xffffffff
mov eax, 0xffffffff
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add ebx, 1
mov qword [0x007f1ed0], rsi
mov eax, 1
mov dword [0x0065aa6c], ebx
jmp 0x64a70f
mov eax, dword [0x0065aa58]
cmp eax, 0xffffffff
je 0x64a6f6
mov dword [0x0065aa6c], eax
jmp 0x64a6f6
mov r12, qword [0x0065aa60]
movsx edi, byte [r12]
lea rbx, [r12 + 1]
cmp edi, 0x3a
mov qword [0x0065aa60], rbx
je 0x64a855
cmp edi, 0x2d
je 0x64a89e
mov rcx, qword [rsp + 0x30]
mov edx, edi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x64a855
cmp edi, 0x57
movzx edx, byte [rax + 1]
jne 0x64a79a
cmp qword [rsp + 0x38], 0
jne 0x64a7d8
cmp dl, 0x3a
je 0x64a8e0
cmp byte [r12 + 1], 0
mov eax, edi
jne 0x64a70f
add dword [0x0065aa6c], 1
jmp 0x64a70f
mov r12, rax
jmp 0x64a5a2
and dword [rsp + 0xb8], 0xfffffffe
add qword [rsp + 0x30], 1
jmp 0x64a441
cmp dl, 0x3b
jne 0x64a79a
cmp byte [r12 + 1], 0
jne 0x64a9e9
mov eax, dword [0x0065aa6c]
add eax, 1
cmp ebp, eax
mov dword [0x0065aa6c], eax
jg 0x64a9dc
mov esi, dword [0x0065aa70]
lea rax, [0x007c89b5]
mov qword [0x0065aa60], rax
test esi, esi
je 0x64a833
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0x3a
je 0x64a833
lea rcx, str.option_requires_an_argument_____c
mov edx, 0x57
call fcn.00649ff0
mov rax, qword [rsp + 0x30]
mov dword [0x0065aa68], 0x57
cmp byte [rax], 0x3a
je 0x64a9d2
mov eax, 0x3f
jmp 0x64a70f
cmp byte [r12 + 1], 0
jne 0x64a864
add dword [0x0065aa6c], 1
mov ebp, dword [0x0065aa70]
test ebp, ebp
je 0x64a886
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0x3a
je 0x64a886
lea rcx, str.unknown_option_____c
mov edx, edi
call fcn.00649ff0
mov dword [0x0065aa68], edi
mov eax, 0x3f
jmp 0x64a70f
mov r12, rsi
jmp 0x64a5a2
cmp byte [r12 + 1], 0
jne 0x64a864
mov rcx, qword [rsp + 0x30]
mov edx, 0x2d
call sub.msvcrt.dll_strchr
test rax, rax
jne 0x64a789
jmp 0x64a70a
add r12, 1
xor eax, eax
mov qword [0x0065aa60], r12
jmp 0x64a5f6
mov dword [0x0065aa54], ebx
jmp 0x64a57d
mov qword [0x007f1ed0], 0
cmp byte [r12 + 1], 0
je 0x64a971
mov eax, dword [0x0065aa6c]
mov qword [0x007f1ed0], rbx
lea rcx, [0x007c89b5]
add eax, 1
mov dword [0x0065aa6c], eax
mov eax, edi
mov qword [0x0065aa60], rcx
jmp 0x64a70f
cmp byte [rsi + 2], 0
jne 0x64a5a2
mov esi, dword [0x0065aa54]
lea r8d, [rbx + 1]
lea rcx, [0x007c89b5]
mov dword [0x0065aa6c], r8d
mov qword [0x0065aa60], rcx
cmp esi, 0xffffffff
je 0x64a6f6
mov ecx, eax
mov r9, r15
mov edx, esi
mov dword [rsp + 0x30], eax
call fcn.00649f30
mov eax, dword [rsp + 0x30]
sub eax, esi
add dword [0x0065aa6c], eax
jmp 0x64a6f6
cmp byte [rax + 2], 0x3a
mov eax, dword [0x0065aa6c]
je 0x64a900
add eax, 1
cmp ebp, eax
mov dword [0x0065aa6c], eax
jg 0x64aa10
mov ebx, dword [0x0065aa70]
lea rax, [0x007c89b5]
mov qword [0x0065aa60], rax
test ebx, ebx
je 0x64a9be
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0x3a
je 0x64a9be
lea rcx, str.option_requires_an_argument_____c
mov edx, edi
call fcn.00649ff0
mov rax, qword [rsp + 0x30]
mov dword [0x0065aa68], edi
cmp byte [rax], 0x3a
jne 0x64a84b
mov eax, 0x3a
jmp 0x64a70f
cdqe
mov rax, qword [r15 + rax*8]
mov qword [0x0065aa60], rax
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0x38]
mov rcx, r15
mov rdx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
call fcn.0064a070
jmp 0x64a61d
movsxd rdx, eax
mov rdx, qword [r15 + rdx*8]
mov qword [0x007f1ed0], rdx
jmp 0x64a900