Function at 0x6a3e40
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 0x6a420e
mov r9d, dword [0x006b4fac]
test r9d, r9d
je 0x6a40a0
cmp dword [0x006b4f90], 0xffffffff
je 0x6a40b4
mov eax, dword [0x007d99e8]
test eax, eax
jne 0x6a40b4
movzx edx, byte [r13]
cmp dl, 0x2d
je 0x6a40e8
mov r8d, dword [0x006b4f90]
test r8d, r8d
jne 0x6a3eb3
cmp dl, 0x2b
jne 0x6a3ec4
and dword [rsp + 0xb8], 0xfffffffe
cmp dl, 0x2b
je 0x6a40f0
mov qword [0x007d99e0], 0
test eax, eax
je 0x6a3ee7
mov dword [0x006b4f94], 0xffffffff
mov dword [0x006b4f98], 0xffffffff
mov edi, dword [rsp + 0xb8]
mov r12d, dword [rsp + 0xb8]
lea rbp, [0x007245c8]
and edi, 2
and r12d, 1
test eax, eax
je 0x6a3f7a
movsxd rbx, dword [0x006b4fac]
mov dword [0x007d99e8], 0
cmp ebx, esi
jge 0x6a41d0
movsxd rax, ebx
mov r11, qword [r15 + rax*8]
cmp byte [r11], 0x2d
mov qword [0x006b4fa0], r11
je 0x6a4100
mov qword [0x006b4fa0], rbp
test edi, edi
jne 0x6a4230
test r12d, r12d
je 0x6a420e
mov r14d, dword [0x006b4f98]
cmp r14d, 0xffffffff
je 0x6a4170
mov edx, dword [0x006b4f94]
cmp edx, 0xffffffff
jne 0x6a4188
add ebx, 1
mov dword [0x006b4fac], ebx
mov r9, qword [0x006b4fa0]
movzx r14d, byte [r9]
test r14b, r14b
je 0x6a3f08
cmp qword [rsp + 0xa8], 0
je 0x6a3fbe
movsxd rax, dword [0x006b4fac]
cmp qword [r15 + rax*8], r9
je 0x6a3fbe
cmp r14b, 0x2d
je 0x6a435a
test byte [rsp + 0xb8], 4
jne 0x6a4261
lea rbx, [r9 + 1]
movsx r12d, r14b
mov qword [0x006b4fa0], rbx
cmp r14b, 0x3a
je 0x6a436c
cmp r12d, 0x2d
je 0x6a44b3
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 0x6a436c
cmp qword [rsp + 0xa8], 0
movzx edx, byte [rax + 1]
je 0x6a42e9
cmp r12d, 0x57
jne 0x6a42e9
cmp dl, 0x3b
jne 0x6a42e9
cmp byte [r9 + 1], 0
jne 0x6a443d
mov eax, dword [0x006b4fac]
add eax, 1
mov dword [0x006b4fac], eax
cmp eax, esi
jl 0x6a4430
mov edx, dword [0x006b4fb0]
lea rax, [0x007245c8]
mov qword [0x006b4fa0], rax
test edx, edx
je 0x6a4077
cmp byte [r13], 0x3a
je 0x6a4077
mov edx, 0x57
lea rcx, str.option_requires_an_argument_____c
call fcn.006a3a10
mov dword [0x006b4fa8], 0x57
cmp byte [r13], 0x3a
je 0x6a44a8
mov r12d, 0x3f
jmp 0x6a4214
mov dword [0x007d99e8], 1
mov dword [0x006b4fac], 1
xor edx, edx
xor r8d, r8d
lea rcx, str.POSIXLY_CORRECT
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx edx, byte [r13]
test eax, eax
setne al
movzx eax, al
mov dword [0x006b4f90], eax
mov eax, dword [0x007d99e8]
cmp dl, 0x2d
jne 0x6a3ea2
or dword [rsp + 0xb8], 2
add r13, 1
jmp 0x6a3ec4
movzx r14d, byte [r11 + 1]
test r14b, r14b
jne 0x6a4309
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 0x6a3f39
mov edi, dword [0x006b4f98]
cmp edi, 0xffffffff
je 0x6a4146
cmp dword [0x006b4f94], 0xffffffff
je 0x6a43f9
lea rbx, [r11 + 1]
mov qword [0x006b4fa0], rbx
cmp byte [r11 + 1], 0
je 0x6a42bc
mov r12d, 0x2d
jmp 0x6a437a
mov dword [0x006b4f98], ebx
add ebx, 1
mov dword [0x006b4fac], ebx
jmp 0x6a3f7a
mov ecx, r14d
mov r9, r15
mov r8d, ebx
mov dword [rsp + 0x38], edx
call fcn.006a3950
mov ecx, dword [0x006b4fac]
mov edx, dword [rsp + 0x38]
mov dword [0x006b4f94], 0xffffffff
mov eax, ecx
sub edx, r14d
add ecx, 1
sub eax, edx
mov dword [0x006b4fac], ecx
mov dword [0x006b4f98], eax
mov eax, dword [0x007d99e8]
jmp 0x6a3f04
mov esi, dword [0x006b4f94]
lea rax, [0x007245c8]
mov edi, dword [0x006b4f98]
mov qword [0x006b4fa0], rax
cmp esi, 0xffffffff
jne 0x6a4248
cmp edi, 0xffffffff
je 0x6a41fa
mov dword [0x006b4fac], edi
mov dword [0x006b4f94], 0xffffffff
mov dword [0x006b4f98], 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 [0x007d99e0], r11
mov r12d, 1
mov dword [0x006b4fac], ebx
jmp 0x6a4214
mov r9, r15
mov r8d, ebx
mov edx, esi
mov ecx, edi
sub esi, edi
call fcn.006a3950
sub dword [0x006b4fac], esi
jmp 0x6a41fa
xor eax, eax
cmp r14b, 0x3a
je 0x6a427e
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.006a3aa0
mov r12d, eax
cmp eax, 0xffffffff
je 0x6a439d
lea rax, [0x007245c8]
mov qword [0x006b4fa0], rax
jmp 0x6a4214
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 0x6a420e
movzx edx, byte [rax + 1]
mov r9, r11
mov r12d, 0x2d
cmp dl, 0x3a
je 0x6a43be
cmp byte [r9 + 1], 0
jne 0x6a4214
add dword [0x006b4fac], 1
jmp 0x6a4214
mov edi, dword [0x006b4f98]
cmp edi, 0xffffffff
je 0x6a4321
cmp dword [0x006b4f94], 0xffffffff
je 0x6a43f9
lea r9, [r11 + 1]
mov qword [0x006b4fa0], r9
cmp r14b, 0x2d
jne 0x6a3f8e
cmp byte [r11 + 2], 0
je 0x6a44ce
cmp qword [rsp + 0xa8], 0
je 0x6a44bb
cmp r9, qword [r15 + rbx*8]
je 0x6a3fbe
add r9, 1
xor eax, eax
mov qword [0x006b4fa0], r9
jmp 0x6a427e
cmp byte [r9 + 1], 0
jne 0x6a437a
add dword [0x006b4fac], 1
mov ecx, dword [0x006b4fb0]
test ecx, ecx
je 0x6a438b
cmp byte [r13], 0x3a
jne 0x6a43ad
mov dword [0x006b4fa8], r12d
mov r12d, 0x3f
jmp 0x6a4214
mov r9, qword [0x006b4fa0]
movzx r14d, byte [r9]
jmp 0x6a3fbe
mov edx, r12d
lea rcx, str.unknown_option_____c
call fcn.006a3a10
jmp 0x6a438b
mov ecx, dword [0x006b4fac]
mov qword [0x007d99e0], 0
cmp byte [r9 + 1], 0
lea edx, [rcx + 1]
je 0x6a440d
mov qword [0x007d99e0], rbx
lea rax, [0x007245c8]
mov dword [0x006b4fac], edx
mov qword [0x006b4fa0], rax
jmp 0x6a4214
mov dword [0x006b4f94], ebx
test r14b, r14b
jne 0x6a4321
jmp 0x6a4146
cmp byte [rax + 2], 0x3a
je 0x6a43e0
mov dword [0x006b4fac], edx
cmp esi, edx
jle 0x6a4468
movsxd rdx, edx
mov rax, qword [r15 + rdx*8]
lea edx, [rcx + 2]
mov qword [0x007d99e0], rax
jmp 0x6a43e0
cdqe
mov rax, qword [r15 + rax*8]
mov qword [0x006b4fa0], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xb0]
mov rdx, r13
mov rcx, r15
mov r8, qword [rsp + 0xa8]
call fcn.006a3aa0
mov r12d, eax
jmp 0x6a42a9
lea rax, [0x007245c8]
mov qword [0x006b4fa0], rax
mov eax, dword [0x006b4fb0]
test eax, eax
je 0x6a4496
cmp byte [r13], 0x3a
je 0x6a4496
mov edx, r12d
lea rcx, str.option_requires_an_argument_____c
call fcn.006a3a10
mov dword [0x006b4fa8], r12d
cmp byte [r13], 0x3a
jne 0x6a408c
mov r12d, 0x3a
jmp 0x6a4214
mov r11, r9
jmp 0x6a4151
lea rbx, [r11 + 2]
mov r11, r9
mov qword [0x006b4fa0], rbx
jmp 0x6a4151
mov esi, dword [0x006b4f94]
lea r8d, [rbx + 1]
lea rax, [0x007245c8]
mov dword [0x006b4fac], r8d
mov qword [0x006b4fa0], rax
cmp esi, 0xffffffff
je 0x6a41fa
mov r9, r15
jmp 0x6a424e