Function at 0x4c06d0
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 esi, ecx
mov rbx, rdx
mov qword [rsp + 0xa8], r9
mov r13, r8
je 0x4c0b0e
mov r9d, dword [0x004c89ec]
test r9d, r9d
je 0x4c0930
cmp dword [0x004c89d0], 0xffffffff
je 0x4c0944
mov eax, dword [0x005195e8]
test eax, eax
jne 0x4c0944
movzx edx, byte [r13]
cmp dl, 0x2d
je 0x4c0973
mov r8d, dword [0x004c89d0]
test r8d, r8d
jne 0x4c0743
cmp dl, 0x2b
jne 0x4c0754
and dword [rsp + 0xb8], 0xfffffffe
cmp dl, 0x2b
je 0x4c097b
test eax, eax
mov qword [0x005195e0], 0
je 0x4c0777
mov dword [0x004c89d4], 0xffffffff
mov dword [0x004c89d8], 0xffffffff
mov edi, dword [rsp + 0xb8]
lea rbp, [0x005059b5]
mov r12d, dword [rsp + 0xb8]
and edi, 2
and r12d, 1
test eax, eax
je 0x4c080f
mov r14d, dword [0x004c89ec]
mov dword [0x005195e8], 0
cmp r14d, esi
jge 0x4c0ad0
movsxd rax, r14d
mov r11, qword [rbx + rax*8]
cmp byte [r11], 0x2d
mov qword [0x004c89e0], r11
je 0x4c0984
test edi, edi
mov qword [0x004c89e0], rbp
jne 0x4c0b30
test r12d, r12d
je 0x4c0b0e
mov r15d, dword [0x004c89d8]
cmp r15d, 0xffffffff
je 0x4c0a60
mov r10d, dword [0x004c89d4]
cmp r10d, 0xffffffff
jne 0x4c0a80
lea r8d, [r14 + 1]
mov dword [0x004c89ec], r8d
mov r10, qword [0x004c89e0]
movzx r15d, byte [r10]
test r15b, r15b
je 0x4c0798
cmp qword [rsp + 0xa8], 0
je 0x4c0853
movsxd rax, dword [0x004c89ec]
cmp qword [rbx + rax*8], r10
je 0x4c0853
cmp r15b, 0x2d
je 0x4c0a16
test byte [rsp + 0xb8], 4
jne 0x4c0b69
lea rbp, [r10 + 1]
movsx edi, r15b
cmp edi, 0x3a
mov qword [0x004c89e0], rbp
je 0x4c0c01
cmp edi, 0x2d
je 0x4c0d7c
mov edx, edi
mov rcx, r13
mov qword [rsp + 0x38], r10
call sub.msvcrt.dll_strchr
mov r10, qword [rsp + 0x38]
test rax, rax
je 0x4c0c01
cmp qword [rsp + 0xa8], 0
movzx edx, byte [rax + 1]
je 0x4c0bd1
cmp edi, 0x57
jne 0x4c0bd1
cmp dl, 0x3b
jne 0x4c0bd1
cmp byte [r10 + 1], 0
jne 0x4c0cf9
mov eax, dword [0x004c89ec]
add eax, 1
cmp eax, esi
mov dword [0x004c89ec], eax
jl 0x4c0cec
mov edx, dword [0x004c89f0]
lea rax, [0x005059b5]
mov qword [0x004c89e0], rax
test edx, edx
je 0x4c0908
cmp byte [r13], 0x3a
je 0x4c0908
lea rcx, str.option_requires_an_argument_____c
mov edx, 0x57
call fcn.004c02c0
mov dword [0x004c89e8], 0x57
cmp byte [r13], 0x3a
je 0x4c0ce2
mov edi, 0x3f
jmp 0x4c0b13
mov dword [0x005195e8], 1
mov dword [0x004c89ec], 1
lea rcx, str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
movzx edx, byte [r13]
test rax, rax
setne al
movzx eax, al
cmp dl, 0x2d
mov dword [0x004c89d0], eax
mov eax, dword [0x005195e8]
jne 0x4c0732
or dword [rsp + 0xb8], 2
add r13, 1
jmp 0x4c0754
movzx r15d, byte [r11 + 1]
test r15b, r15b
jne 0x4c0bed
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 0x4c07ca
mov edi, dword [0x004c89d8]
cmp edi, 0xffffffff
je 0x4c0b8f
cmp dword [0x004c89d4], 0xffffffff
jne 0x4c09d1
mov dword [0x004c89d4], r14d
test r15b, r15b
je 0x4c0b8f
lea r10, [r11 + 1]
cmp r15b, 0x2d
mov qword [0x004c89e0], r10
jne 0x4c0823
cmp byte [r11 + 2], 0
je 0x4c0d4c
cmp qword [rsp + 0xa8], 0
je 0x4c0d23
movsxd r8, r14d
cmp r10, qword [rbx + r8*8]
je 0x4c0853
add r10, 1
xor eax, eax
mov qword [0x004c89e0], r10
mov r9, qword [rsp + 0xb0]
mov dword [rsp + 0x20], eax
mov rdx, r13
mov rcx, rbx
mov r8, qword [rsp + 0xa8]
call fcn.004c0350
cmp eax, 0xffffffff
mov edi, eax
je 0x4c0c80
lea rax, [0x005059b5]
mov qword [0x004c89e0], rax
jmp 0x4c0b13
lea r8d, [r14 + 1]
mov dword [0x004c89d8], r14d
mov dword [0x004c89ec], r8d
jmp 0x4c080f
mov edx, r10d
mov r9, rbx
mov r8d, r14d
mov dword [rsp + 0x38], r10d
mov ecx, r15d
call fcn.004c0200
mov edx, dword [0x004c89ec]
mov dword [0x004c89d4], 0xffffffff
mov r10d, dword [rsp + 0x38]
mov eax, edx
add edx, 1
sub r10d, r15d
mov dword [0x004c89ec], edx
sub eax, r10d
mov dword [0x004c89d8], eax
mov eax, dword [0x005195e8]
jmp 0x4c0794
mov esi, dword [0x004c89d4]
lea rax, [0x005059b5]
mov qword [0x004c89e0], rax
mov edi, dword [0x004c89d8]
cmp esi, 0xffffffff
jne 0x4c0b50
cmp edi, 0xffffffff
je 0x4c0afa
mov dword [0x004c89ec], edi
mov dword [0x004c89d4], 0xffffffff
mov dword [0x004c89d8], 0xffffffff
mov edi, 0xffffffff
mov eax, edi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r8d, [r14 + 1]
mov qword [0x005195e0], r11
mov edi, 1
mov dword [0x004c89ec], r8d
jmp 0x4c0b13
mov r9, rbx
mov r8d, r14d
mov edx, esi
mov ecx, edi
sub esi, edi
call fcn.004c0200
sub dword [0x004c89ec], esi
jmp 0x4c0afa
xor eax, eax
cmp r15b, 0x3a
je 0x4c0a23
movsx edx, r15b
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
setne al
movzx eax, al
jmp 0x4c0a23
lea rbp, [r11 + 1]
mov qword [0x004c89e0], rbp
cmp byte [r11 + 1], 0
jne 0x4c0c3e
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 0x4c0b0e
movzx edx, byte [rax + 1]
mov r10, r11
mov edi, 0x2d
cmp dl, 0x3a
je 0x4c0c45
cmp byte [r10 + 1], 0
jne 0x4c0b13
add dword [0x004c89ec], 1
jmp 0x4c0b13
mov edi, dword [0x004c89d8]
cmp edi, 0xffffffff
jne 0x4c09c1
jmp 0x4c09da
cmp byte [r10 + 1], 0
jne 0x4c0c0f
add dword [0x004c89ec], 1
mov ecx, dword [0x004c89f0]
test ecx, ecx
je 0x4c0c2e
cmp byte [r13], 0x3a
je 0x4c0c2e
lea rcx, str.unknown_option_____c
mov edx, edi
call fcn.004c02c0
mov dword [0x004c89e8], edi
mov edi, 0x3f
jmp 0x4c0b13
mov edi, 0x2d
jmp 0x4c0c0f
mov qword [0x005195e0], 0
mov ecx, dword [0x004c89ec]
cmp byte [r10 + 1], 0
lea edx, [rcx + 1]
je 0x4c0c90
mov qword [0x005195e0], rbp
lea rax, [0x005059b5]
mov dword [0x004c89ec], edx
mov qword [0x004c89e0], rax
jmp 0x4c0b13
mov r10, qword [0x004c89e0]
movzx r15d, byte [r10]
jmp 0x4c0853
cmp byte [rax + 2], 0x3a
je 0x4c0c67
cmp esi, edx
mov dword [0x004c89ec], edx
jg 0x4c0d36
lea rax, [0x005059b5]
mov qword [0x004c89e0], rax
mov eax, dword [0x004c89f0]
test eax, eax
je 0x4c0cd1
cmp byte [r13], 0x3a
je 0x4c0cd1
lea rcx, str.option_requires_an_argument_____c
mov edx, edi
call fcn.004c02c0
mov dword [0x004c89e8], edi
cmp byte [r13], 0x3a
jne 0x4c091d
mov edi, 0x3a
jmp 0x4c0b13
cdqe
mov rax, qword [rbx + rax*8]
mov qword [0x004c89e0], rax
mov r9, qword [rsp + 0xb0]
mov dword [rsp + 0x20], 0
mov rdx, r13
mov rcx, rbx
mov r8, qword [rsp + 0xa8]
call fcn.004c0350
mov edi, eax
jmp 0x4c0a4d
lea rbp, [r11 + 2]
mov r11, r10
mov qword [0x004c89e0], rbp
jmp 0x4c0b9a
movsxd rdx, edx
mov rax, qword [rbx + rdx*8]
lea edx, [rcx + 2]
mov qword [0x005195e0], rax
jmp 0x4c0c67
mov esi, dword [0x004c89d4]
lea r8d, [r14 + 1]
lea rax, [0x005059b5]
mov dword [0x004c89ec], r8d
mov qword [0x004c89e0], rax
cmp esi, 0xffffffff
je 0x4c0afa
mov r9, rbx
jmp 0x4c0b56
mov r11, r10
jmp 0x4c0b9a