Function at 0x5c52d0
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 0x5c568e
mov r9d, dword [0x005cdcac]
test r9d, r9d
je 0x5c5530
cmp dword [0x005cdc90], 0xffffffff
je 0x5c5544
mov eax, dword [0x00651078]
test eax, eax
jne 0x5c5544
movzx edx, byte [r13]
cmp dl, 0x2d
je 0x5c5573
mov r8d, dword [0x005cdc90]
test r8d, r8d
jne 0x5c5343
cmp dl, 0x2b
jne 0x5c5354
and dword [rsp + 0xb8], 0xfffffffe
cmp dl, 0x2b
je 0x5c557b
mov qword [0x00651070], 0
test eax, eax
je 0x5c5377
mov dword [0x005cdc94], 0xffffffff
mov dword [0x005cdc98], 0xffffffff
mov edi, dword [rsp + 0xb8]
mov r12d, dword [rsp + 0xb8]
lea rbp, [0x0062bd15]
and edi, 2
and r12d, 1
test eax, eax
je 0x5c540a
movsxd rbx, dword [0x005cdcac]
mov dword [0x00651078], 0
cmp ebx, esi
jge 0x5c5650
movsxd rax, ebx
mov r11, qword [r15 + rax*8]
cmp byte [r11], 0x2d
mov qword [0x005cdca0], r11
je 0x5c5588
mov qword [0x005cdca0], rbp
test edi, edi
jne 0x5c56b0
test r12d, r12d
je 0x5c568e
mov r14d, dword [0x005cdc98]
cmp r14d, 0xffffffff
je 0x5c55f0
mov edx, dword [0x005cdc94]
cmp edx, 0xffffffff
jne 0x5c5608
add ebx, 1
mov dword [0x005cdcac], ebx
mov r9, qword [0x005cdca0]
movzx r14d, byte [r9]
test r14b, r14b
je 0x5c5398
cmp qword [rsp + 0xa8], 0
je 0x5c544e
movsxd rax, dword [0x005cdcac]
cmp qword [r15 + rax*8], r9
je 0x5c544e
cmp r14b, 0x2d
je 0x5c57da
test byte [rsp + 0xb8], 4
jne 0x5c56e1
lea rbx, [r9 + 1]
movsx r12d, r14b
mov qword [0x005cdca0], rbx
cmp r14b, 0x3a
je 0x5c57ec
cmp r12d, 0x2d
je 0x5c5933
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 0x5c57ec
cmp qword [rsp + 0xa8], 0
movzx edx, byte [rax + 1]
je 0x5c5769
cmp r12d, 0x57
jne 0x5c5769
cmp dl, 0x3b
jne 0x5c5769
cmp byte [r9 + 1], 0
jne 0x5c58bd
mov eax, dword [0x005cdcac]
add eax, 1
mov dword [0x005cdcac], eax
cmp eax, esi
jl 0x5c58b0
mov edx, dword [0x005cdcb0]
lea rax, [0x0062bd15]
mov qword [0x005cdca0], rax
test edx, edx
je 0x5c5507
cmp byte [r13], 0x3a
je 0x5c5507
mov edx, 0x57
lea rcx, str.option_requires_an_argument_____c
call fcn.005c4ea0
mov dword [0x005cdca8], 0x57
cmp byte [r13], 0x3a
je 0x5c5928
mov r12d, 0x3f
jmp 0x5c5694
mov dword [0x00651078], 1
mov dword [0x005cdcac], 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 [0x005cdc90], eax
mov eax, dword [0x00651078]
cmp dl, 0x2d
jne 0x5c5332
or dword [rsp + 0xb8], 2
add r13, 1
jmp 0x5c5354
movzx r14d, byte [r11 + 1]
test r14b, r14b
jne 0x5c5789
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 0x5c53c9
mov edi, dword [0x005cdc98]
cmp edi, 0xffffffff
je 0x5c55ce
cmp dword [0x005cdc94], 0xffffffff
je 0x5c5879
lea rbx, [r11 + 1]
mov qword [0x005cdca0], rbx
cmp byte [r11 + 1], 0
je 0x5c573c
mov r12d, 0x2d
jmp 0x5c57fa
mov dword [0x005cdc98], ebx
add ebx, 1
mov dword [0x005cdcac], ebx
jmp 0x5c540a
mov ecx, r14d
mov r9, r15
mov r8d, ebx
mov dword [rsp + 0x38], edx
call fcn.005c4de0
mov ecx, dword [0x005cdcac]
mov edx, dword [rsp + 0x38]
mov dword [0x005cdc94], 0xffffffff
mov eax, ecx
sub edx, r14d
add ecx, 1
sub eax, edx
mov dword [0x005cdcac], ecx
mov dword [0x005cdc98], eax
mov eax, dword [0x00651078]
jmp 0x5c5394
mov esi, dword [0x005cdc94]
lea rax, [0x0062bd15]
mov edi, dword [0x005cdc98]
mov qword [0x005cdca0], rax
cmp esi, 0xffffffff
jne 0x5c56c8
cmp edi, 0xffffffff
je 0x5c567a
mov dword [0x005cdcac], edi
mov dword [0x005cdc94], 0xffffffff
mov dword [0x005cdc98], 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 [0x00651070], r11
mov r12d, 1
mov dword [0x005cdcac], ebx
jmp 0x5c5694
mov r9, r15
mov r8d, ebx
mov edx, esi
mov ecx, edi
sub esi, edi
call fcn.005c4de0
sub dword [0x005cdcac], esi
jmp 0x5c567a
xor eax, eax
cmp r14b, 0x3a
je 0x5c56fe
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.005c4f30
mov r12d, eax
cmp eax, 0xffffffff
je 0x5c581d
lea rax, [0x0062bd15]
mov qword [0x005cdca0], rax
jmp 0x5c5694
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 0x5c568e
movzx edx, byte [rax + 1]
mov r9, r11
mov r12d, 0x2d
cmp dl, 0x3a
je 0x5c583e
cmp byte [r9 + 1], 0
jne 0x5c5694
add dword [0x005cdcac], 1
jmp 0x5c5694
mov edi, dword [0x005cdc98]
cmp edi, 0xffffffff
je 0x5c57a1
cmp dword [0x005cdc94], 0xffffffff
je 0x5c5879
lea r9, [r11 + 1]
mov qword [0x005cdca0], r9
cmp r14b, 0x2d
jne 0x5c541e
cmp byte [r11 + 2], 0
je 0x5c594e
cmp qword [rsp + 0xa8], 0
je 0x5c593b
cmp r9, qword [r15 + rbx*8]
je 0x5c544e
add r9, 1
xor eax, eax
mov qword [0x005cdca0], r9
jmp 0x5c56fe
cmp byte [r9 + 1], 0
jne 0x5c57fa
add dword [0x005cdcac], 1
mov ecx, dword [0x005cdcb0]
test ecx, ecx
je 0x5c580b
cmp byte [r13], 0x3a
jne 0x5c582d
mov dword [0x005cdca8], r12d
mov r12d, 0x3f
jmp 0x5c5694
mov r9, qword [0x005cdca0]
movzx r14d, byte [r9]
jmp 0x5c544e
mov edx, r12d
lea rcx, str.unknown_option_____c
call fcn.005c4ea0
jmp 0x5c580b
mov ecx, dword [0x005cdcac]
mov qword [0x00651070], 0
cmp byte [r9 + 1], 0
lea edx, [rcx + 1]
je 0x5c588d
mov qword [0x00651070], rbx
lea rax, [0x0062bd15]
mov dword [0x005cdcac], edx
mov qword [0x005cdca0], rax
jmp 0x5c5694
mov dword [0x005cdc94], ebx
test r14b, r14b
jne 0x5c57a1
jmp 0x5c55ce
cmp byte [rax + 2], 0x3a
je 0x5c5860
mov dword [0x005cdcac], edx
cmp esi, edx
jle 0x5c58e8
movsxd rdx, edx
mov rax, qword [r15 + rdx*8]
lea edx, [rcx + 2]
mov qword [0x00651070], rax
jmp 0x5c5860
cdqe
mov rax, qword [r15 + rax*8]
mov qword [0x005cdca0], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xb0]
mov rdx, r13
mov rcx, r15
mov r8, qword [rsp + 0xa8]
call fcn.005c4f30
mov r12d, eax
jmp 0x5c5729
lea rax, [0x0062bd15]
mov qword [0x005cdca0], rax
mov eax, dword [0x005cdcb0]
test eax, eax
je 0x5c5916
cmp byte [r13], 0x3a
je 0x5c5916
mov edx, r12d
lea rcx, str.option_requires_an_argument_____c
call fcn.005c4ea0
mov dword [0x005cdca8], r12d
cmp byte [r13], 0x3a
jne 0x5c551c
mov r12d, 0x3a
jmp 0x5c5694
mov r11, r9
jmp 0x5c55d9
lea rbx, [r11 + 2]
mov r11, r9
mov qword [0x005cdca0], rbx
jmp 0x5c55d9
mov esi, dword [0x005cdc94]
lea r8d, [rbx + 1]
lea rax, [0x0062bd15]
mov dword [0x005cdcac], r8d
mov qword [0x005cdca0], rax
cmp esi, 0xffffffff
je 0x5c567a
mov r9, r15
jmp 0x5c56ce