Function at 0x675390
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0xa8], r9
mov esi, ecx
mov r15, rdx
mov r13, r8
test r8, r8
je 0x67574e
mov r9d, dword [0x0067dd4c]
test r9d, r9d
je 0x6755f0
cmp dword [0x0067dd30], 0xffffffff
je 0x675604
mov eax, dword [0x00785af8]
test eax, eax
jne 0x675604
movzx edx, byte [r13]
cmp dl, 0x2d
je 0x675633
mov r8d, dword [0x0067dd30]
test r8d, r8d
jne 0x675403
cmp dl, 0x2b
jne 0x675414
and dword [rsp + 0xb8], 0xfffffffe
cmp dl, 0x2b
je 0x67563b
mov qword [0x00785af0], 0
test eax, eax
je 0x675437
mov dword [0x0067dd34], 0xffffffff
mov dword [0x0067dd38], 0xffffffff
mov edi, dword [rsp + 0xb8]
mov r12d, dword [rsp + 0xb8]
lea rbp, [0x006de315]
and edi, 2
and r12d, 1
test eax, eax
je 0x6754ca
movsxd rbx, dword [0x0067dd4c]
mov dword [0x00785af8], 0
cmp ebx, esi
jge 0x675710
movsxd rax, ebx
mov r11, qword [r15 + rax*8]
cmp byte [r11], 0x2d
mov qword [0x0067dd40], r11
je 0x675648
mov qword [0x0067dd40], rbp
test edi, edi
jne 0x675770
test r12d, r12d
je 0x67574e
mov r14d, dword [0x0067dd38]
cmp r14d, 0xffffffff
je 0x6756b0
mov edx, dword [0x0067dd34]
cmp edx, 0xffffffff
jne 0x6756c8
add ebx, 1
mov dword [0x0067dd4c], ebx
mov r9, qword [0x0067dd40]
movzx r14d, byte [r9]
test r14b, r14b
je 0x675458
cmp qword [rsp + 0xa8], 0
je 0x67550e
movsxd rax, dword [0x0067dd4c]
cmp qword [r15 + rax*8], r9
je 0x67550e
cmp r14b, 0x2d
je 0x67589a
test byte [rsp + 0xb8], 4
jne 0x6757a1
lea rbx, [r9 + 1]
movsx r12d, r14b
mov qword [0x0067dd40], rbx
cmp r14b, 0x3a
je 0x6758ac
cmp r12d, 0x2d
je 0x6759f3
mov edx, r12d
mov rcx, r13
mov qword [rsp + 0x38], r9
call sub.msvcrt.dll_strchr
mov r9, qword [rsp + 0x38]
test rax, rax
je 0x6758ac
cmp qword [rsp + 0xa8], 0
movzx edx, byte [rax + 1]
je 0x675829
cmp r12d, 0x57
jne 0x675829
cmp dl, 0x3b
jne 0x675829
cmp byte [r9 + 1], 0
jne 0x67597d
mov eax, dword [0x0067dd4c]
add eax, 1
mov dword [0x0067dd4c], eax
cmp eax, esi
jl 0x675970
mov edx, dword [0x0067dd50]
lea rax, [0x006de315]
mov qword [0x0067dd40], rax
test edx, edx
je 0x6755c7
cmp byte [r13], 0x3a
je 0x6755c7
mov edx, 0x57
lea rcx, str.option_requires_an_argument_____c
call fcn.00674f60
mov dword [0x0067dd48], 0x57
cmp byte [r13], 0x3a
je 0x6759e8
mov r12d, 0x3f
jmp 0x675754
mov dword [0x00785af8], 1
mov dword [0x0067dd4c], 1
lea rcx, str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
movzx edx, byte [r13]
test rax, rax
setne al
movzx eax, al
mov dword [0x0067dd30], eax
mov eax, dword [0x00785af8]
cmp dl, 0x2d
jne 0x6753f2
or dword [rsp + 0xb8], 2
add r13, 1
jmp 0x675414
movzx r14d, byte [r11 + 1]
test r14b, r14b
jne 0x675849
mov edx, 0x2d
mov rcx, r13
mov qword [rsp + 0x38], r11
call sub.msvcrt.dll_strchr
mov r11, qword [rsp + 0x38]
test rax, rax
je 0x675489
mov edi, dword [0x0067dd38]
cmp edi, 0xffffffff
je 0x67568e
cmp dword [0x0067dd34], 0xffffffff
je 0x675939
lea rbx, [r11 + 1]
mov qword [0x0067dd40], rbx
cmp byte [r11 + 1], 0
je 0x6757fc
mov r12d, 0x2d
jmp 0x6758ba
mov dword [0x0067dd38], ebx
add ebx, 1
mov dword [0x0067dd4c], ebx
jmp 0x6754ca
mov ecx, r14d
mov r9, r15
mov r8d, ebx
mov dword [rsp + 0x38], edx
call fcn.00674ea0
mov ecx, dword [0x0067dd4c]
mov edx, dword [rsp + 0x38]
mov dword [0x0067dd34], 0xffffffff
mov eax, ecx
sub edx, r14d
add ecx, 1
sub eax, edx
mov dword [0x0067dd4c], ecx
mov dword [0x0067dd38], eax
mov eax, dword [0x00785af8]
jmp 0x675454
mov esi, dword [0x0067dd34]
lea rax, [0x006de315]
mov edi, dword [0x0067dd38]
mov qword [0x0067dd40], rax
cmp esi, 0xffffffff
jne 0x675788
cmp edi, 0xffffffff
je 0x67573a
mov dword [0x0067dd4c], edi
mov dword [0x0067dd34], 0xffffffff
mov dword [0x0067dd38], 0xffffffff
mov r12d, 0xffffffff
mov eax, r12d
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 [0x00785af0], r11
mov r12d, 1
mov dword [0x0067dd4c], ebx
jmp 0x675754
mov r9, r15
mov r8d, ebx
mov edx, esi
mov ecx, edi
sub esi, edi
call fcn.00674ea0
sub dword [0x0067dd4c], esi
jmp 0x67573a
xor eax, eax
cmp r14b, 0x3a
je 0x6757be
movsx edx, r14b
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
setne al
movzx eax, al
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xb0]
mov rdx, r13
mov rcx, r15
mov r8, qword [rsp + 0xa8]
call fcn.00674ff0
mov r12d, eax
cmp eax, 0xffffffff
je 0x6758dd
lea rax, [0x006de315]
mov qword [0x0067dd40], rax
jmp 0x675754
mov edx, 0x2d
mov rcx, r13
mov qword [rsp + 0x38], r11
call sub.msvcrt.dll_strchr
mov r11, qword [rsp + 0x38]
test rax, rax
je 0x67574e
movzx edx, byte [rax + 1]
mov r9, r11
mov r12d, 0x2d
cmp dl, 0x3a
je 0x6758fe
cmp byte [r9 + 1], 0
jne 0x675754
add dword [0x0067dd4c], 1
jmp 0x675754
mov edi, dword [0x0067dd38]
cmp edi, 0xffffffff
je 0x675861
cmp dword [0x0067dd34], 0xffffffff
je 0x675939
lea r9, [r11 + 1]
mov qword [0x0067dd40], r9
cmp r14b, 0x2d
jne 0x6754de
cmp byte [r11 + 2], 0
je 0x675a0e
cmp qword [rsp + 0xa8], 0
je 0x6759fb
cmp r9, qword [r15 + rbx*8]
je 0x67550e
add r9, 1
xor eax, eax
mov qword [0x0067dd40], r9
jmp 0x6757be
cmp byte [r9 + 1], 0
jne 0x6758ba
add dword [0x0067dd4c], 1
mov ecx, dword [0x0067dd50]
test ecx, ecx
je 0x6758cb
cmp byte [r13], 0x3a
jne 0x6758ed
mov dword [0x0067dd48], r12d
mov r12d, 0x3f
jmp 0x675754
mov r9, qword [0x0067dd40]
movzx r14d, byte [r9]
jmp 0x67550e
mov edx, r12d
lea rcx, str.unknown_option_____c
call fcn.00674f60
jmp 0x6758cb
mov ecx, dword [0x0067dd4c]
mov qword [0x00785af0], 0
cmp byte [r9 + 1], 0
lea edx, [rcx + 1]
je 0x67594d
mov qword [0x00785af0], rbx
lea rax, [0x006de315]
mov dword [0x0067dd4c], edx
mov qword [0x0067dd40], rax
jmp 0x675754
mov dword [0x0067dd34], ebx
test r14b, r14b
jne 0x675861
jmp 0x67568e
cmp byte [rax + 2], 0x3a
je 0x675920
mov dword [0x0067dd4c], edx
cmp esi, edx
jle 0x6759a8
movsxd rdx, edx
mov rax, qword [r15 + rdx*8]
lea edx, [rcx + 2]
mov qword [0x00785af0], rax
jmp 0x675920
cdqe
mov rax, qword [r15 + rax*8]
mov qword [0x0067dd40], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xb0]
mov rdx, r13
mov rcx, r15
mov r8, qword [rsp + 0xa8]
call fcn.00674ff0
mov r12d, eax
jmp 0x6757e9
lea rax, [0x006de315]
mov qword [0x0067dd40], rax
mov eax, dword [0x0067dd50]
test eax, eax
je 0x6759d6
cmp byte [r13], 0x3a
je 0x6759d6
mov edx, r12d
lea rcx, str.option_requires_an_argument_____c
call fcn.00674f60
mov dword [0x0067dd48], r12d
cmp byte [r13], 0x3a
jne 0x6755dc
mov r12d, 0x3a
jmp 0x675754
mov r11, r9
jmp 0x675699
lea rbx, [r11 + 2]
mov r11, r9
mov qword [0x0067dd40], rbx
jmp 0x675699
mov esi, dword [0x0067dd34]
lea r8d, [rbx + 1]
lea rax, [0x006de315]
mov dword [0x0067dd4c], r8d
mov qword [0x0067dd40], rax
cmp esi, 0xffffffff
je 0x67573a
mov r9, r15
jmp 0x67578e