Function at 0x5242d0
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 0x52467b
mov r9d, dword [0x00701a9c]
test r9d, r9d
je 0x524527
cmp dword [0x00701a80], 0xffffffff
je 0x52453b
mov eax, dword [0x00a8b6a8]
test eax, eax
jne 0x52453b
movzx edx, byte [r13]
cmp dl, 0x2d
je 0x52456a
mov r8d, dword [0x00701a80]
test r8d, r8d
jne 0x524343
cmp dl, 0x2b
jne 0x524354
and dword [rsp + 0xb8], 0xfffffffe
cmp dl, 0x2b
je 0x524572
mov qword [0x00a8b6b0], 0
test eax, eax
je 0x524377
mov dword [0x00701a84], 0xffffffff
mov dword [0x00701a88], 0xffffffff
mov edi, dword [rsp + 0xb8]
mov r12d, dword [rsp + 0xb8]
lea rbp, [0x0072a2d5]
and edi, 2
and r12d, 1
test eax, eax
je 0x52440a
movsxd rbx, dword [0x00701a9c]
mov dword [0x00a8b6a8], 0
cmp ebx, esi
jge 0x52463d
movsxd rax, ebx
mov r11, qword [r15 + rax*8]
cmp byte [r11], 0x2d
mov qword [0x00701a90], r11
je 0x52457b
mov qword [0x00701a90], rbp
test edi, edi
jne 0x524695
test r12d, r12d
je 0x52467b
mov r14d, dword [0x00701a88]
cmp r14d, 0xffffffff
je 0x5245e2
mov edx, dword [0x00701a84]
cmp edx, 0xffffffff
jne 0x5245f6
add ebx, 1
mov dword [0x00701a9c], ebx
mov r9, qword [0x00701a90]
movzx r14d, byte [r9]
test r14b, r14b
je 0x524398
cmp qword [rsp + 0xa8], 0
je 0x52444e
movsxd rax, dword [0x00701a9c]
cmp qword [r15 + rax*8], r9
je 0x52444e
cmp r14b, 0x2d
je 0x5247bf
test byte [rsp + 0xb8], 4
jne 0x5246c6
lea rbx, [r9 + 1]
movsx r12d, r14b
mov qword [0x00701a90], rbx
cmp r14b, 0x3a
je 0x5247d1
cmp r12d, 0x2d
je 0x524918
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 0x5247d1
cmp qword [rsp + 0xa8], 0
movzx edx, byte [rax + 1]
je 0x52474e
cmp r12d, 0x57
jne 0x52474e
cmp dl, 0x3b
jne 0x52474e
cmp byte [r9 + 1], 0
jne 0x5248a2
mov eax, dword [0x00701a9c]
add eax, 1
mov dword [0x00701a9c], eax
cmp eax, esi
jl 0x524895
mov edx, dword [0x00701aa0]
lea rax, [0x0072a2d5]
mov qword [0x00701a90], rax
test edx, edx
je 0x524507
cmp byte [r13], 0x3a
je 0x524507
mov edx, 0x57
lea rcx, str.option_requires_an_argument_____c
call fcn.00523ee0
mov dword [0x00701a98], 0x57
cmp byte [r13], 0x3a
je 0x52490d
mov r12d, 0x3f
jmp 0x524681
mov dword [0x00a8b6a8], 1
mov dword [0x00701a9c], 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 [0x00701a80], eax
mov eax, dword [0x00a8b6a8]
cmp dl, 0x2d
jne 0x524332
or dword [rsp + 0xb8], 2
add r13, 1
jmp 0x524354
movzx r14d, byte [r11 + 1]
test r14b, r14b
jne 0x52476e
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 0x5243c9
mov edi, dword [0x00701a88]
cmp edi, 0xffffffff
je 0x5245c1
cmp dword [0x00701a84], 0xffffffff
je 0x52485e
lea rbx, [r11 + 1]
mov qword [0x00701a90], rbx
cmp byte [r11 + 1], 0
je 0x524721
mov r12d, 0x2d
jmp 0x5247df
mov dword [0x00701a88], ebx
add ebx, 1
mov dword [0x00701a9c], ebx
jmp 0x52440a
mov ecx, r14d
mov r9, r15
mov r8d, ebx
mov dword [rsp + 0x38], edx
call fcn.00523e40
mov ecx, dword [0x00701a9c]
mov edx, dword [rsp + 0x38]
mov dword [0x00701a84], 0xffffffff
mov eax, ecx
sub edx, r14d
add ecx, 1
sub eax, edx
mov dword [0x00701a9c], ecx
mov dword [0x00701a88], eax
mov eax, dword [0x00a8b6a8]
jmp 0x524394
mov esi, dword [0x00701a84]
lea rax, [0x0072a2d5]
mov edi, dword [0x00701a88]
mov qword [0x00701a90], rax
cmp esi, 0xffffffff
jne 0x5246ad
cmp edi, 0xffffffff
je 0x524667
mov dword [0x00701a9c], edi
mov dword [0x00701a84], 0xffffffff
mov dword [0x00701a88], 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 [0x00a8b6b0], r11
mov r12d, 1
mov dword [0x00701a9c], ebx
jmp 0x524681
mov r9, r15
mov r8d, ebx
mov edx, esi
mov ecx, edi
sub esi, edi
call fcn.00523e40
sub dword [0x00701a9c], esi
jmp 0x524667
xor eax, eax
cmp r14b, 0x3a
je 0x5246e3
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.00523f70
mov r12d, eax
cmp eax, 0xffffffff
je 0x524802
lea rax, [0x0072a2d5]
mov qword [0x00701a90], rax
jmp 0x524681
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 0x52467b
movzx edx, byte [rax + 1]
mov r9, r11
mov r12d, 0x2d
cmp dl, 0x3a
je 0x524823
cmp byte [r9 + 1], 0
jne 0x524681
add dword [0x00701a9c], 1
jmp 0x524681
mov edi, dword [0x00701a88]
cmp edi, 0xffffffff
je 0x524786
cmp dword [0x00701a84], 0xffffffff
je 0x52485e
lea r9, [r11 + 1]
mov qword [0x00701a90], r9
cmp r14b, 0x2d
jne 0x52441e
cmp byte [r11 + 2], 0
je 0x524933
cmp qword [rsp + 0xa8], 0
je 0x524920
cmp r9, qword [r15 + rbx*8]
je 0x52444e
add r9, 1
xor eax, eax
mov qword [0x00701a90], r9
jmp 0x5246e3
cmp byte [r9 + 1], 0
jne 0x5247df
add dword [0x00701a9c], 1
mov ecx, dword [0x00701aa0]
test ecx, ecx
je 0x5247f0
cmp byte [r13], 0x3a
jne 0x524812
mov dword [0x00701a98], r12d
mov r12d, 0x3f
jmp 0x524681
mov r9, qword [0x00701a90]
movzx r14d, byte [r9]
jmp 0x52444e
mov edx, r12d
lea rcx, str.unknown_option_____c
call fcn.00523ee0
jmp 0x5247f0
mov ecx, dword [0x00701a9c]
mov qword [0x00a8b6b0], 0
cmp byte [r9 + 1], 0
lea edx, [rcx + 1]
je 0x524872
mov qword [0x00a8b6b0], rbx
lea rax, [0x0072a2d5]
mov dword [0x00701a9c], edx
mov qword [0x00701a90], rax
jmp 0x524681
mov dword [0x00701a84], ebx
test r14b, r14b
jne 0x524786
jmp 0x5245c1
cmp byte [rax + 2], 0x3a
je 0x524845
mov dword [0x00701a9c], edx
cmp esi, edx
jle 0x5248cd
movsxd rdx, edx
mov rax, qword [r15 + rdx*8]
lea edx, [rcx + 2]
mov qword [0x00a8b6b0], rax
jmp 0x524845
cdqe
mov rax, qword [r15 + rax*8]
mov qword [0x00701a90], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xb0]
mov rdx, r13
mov rcx, r15
mov r8, qword [rsp + 0xa8]
call fcn.00523f70
mov r12d, eax
jmp 0x52470e
lea rax, [0x0072a2d5]
mov qword [0x00701a90], rax
mov eax, dword [0x00701aa0]
test eax, eax
je 0x5248fb
cmp byte [r13], 0x3a
je 0x5248fb
mov edx, r12d
lea rcx, str.option_requires_an_argument_____c
call fcn.00523ee0
mov dword [0x00701a98], r12d
cmp byte [r13], 0x3a
jne 0x52451c
mov r12d, 0x3a
jmp 0x524681
mov r11, r9
jmp 0x5245cc
lea rbx, [r11 + 2]
mov r11, r9
mov qword [0x00701a90], rbx
jmp 0x5245cc
mov esi, dword [0x00701a84]
lea r8d, [rbx + 1]
lea rax, [0x0072a2d5]
mov dword [0x00701a9c], r8d
mov qword [0x00701a90], rax
cmp esi, 0xffffffff
je 0x524667
mov r9, r15
jmp 0x5246b3