Function at 0x4d3a30
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 0x4d3e6e
mov r9d, dword [0x004e03ec]
test r9d, r9d
je 0x4d3c90
cmp dword [0x004e03d0], 0xffffffff
je 0x4d3ca4
mov eax, dword [0x00534500]
test eax, eax
jne 0x4d3ca4
movzx edx, byte [r13]
cmp dl, 0x2d
je 0x4d3cd3
mov r8d, dword [0x004e03d0]
test r8d, r8d
jne 0x4d3aa3
cmp dl, 0x2b
jne 0x4d3ab4
and dword [rsp + 0xb8], 0xfffffffe
cmp dl, 0x2b
je 0x4d3cdb
test eax, eax
mov qword [0x005344f8], 0
je 0x4d3ad7
mov dword [0x004e03d4], 0xffffffff
mov dword [0x004e03d8], 0xffffffff
mov edi, dword [rsp + 0xb8]
lea rbp, [0x00520cf5]
mov r12d, dword [rsp + 0xb8]
and edi, 2
and r12d, 1
test eax, eax
je 0x4d3b6f
mov r14d, dword [0x004e03ec]
mov dword [0x00534500], 0
cmp r14d, esi
jge 0x4d3e30
movsxd rax, r14d
mov r11, qword [rbx + rax*8]
cmp byte [r11], 0x2d
mov qword [0x004e03e0], r11
je 0x4d3ce4
test edi, edi
mov qword [0x004e03e0], rbp
jne 0x4d3e90
test r12d, r12d
je 0x4d3e6e
mov r15d, dword [0x004e03d8]
cmp r15d, 0xffffffff
je 0x4d3dc0
mov r10d, dword [0x004e03d4]
cmp r10d, 0xffffffff
jne 0x4d3de0
lea r8d, [r14 + 1]
mov dword [0x004e03ec], r8d
mov r10, qword [0x004e03e0]
movzx r15d, byte [r10]
test r15b, r15b
je 0x4d3af8
cmp qword [rsp + 0xa8], 0
je 0x4d3bb3
movsxd rax, dword [0x004e03ec]
cmp qword [rbx + rax*8], r10
je 0x4d3bb3
cmp r15b, 0x2d
je 0x4d3d76
test byte [rsp + 0xb8], 4
jne 0x4d3ec9
lea rbp, [r10 + 1]
movsx edi, r15b
cmp edi, 0x3a
mov qword [0x004e03e0], rbp
je 0x4d3f61
cmp edi, 0x2d
je 0x4d40dc
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 0x4d3f61
cmp qword [rsp + 0xa8], 0
movzx edx, byte [rax + 1]
je 0x4d3f31
cmp edi, 0x57
jne 0x4d3f31
cmp dl, 0x3b
jne 0x4d3f31
cmp byte [r10 + 1], 0
jne 0x4d4059
mov eax, dword [0x004e03ec]
add eax, 1
cmp eax, esi
mov dword [0x004e03ec], eax
jl 0x4d404c
mov edx, dword [0x004e03f0]
lea rax, [0x00520cf5]
mov qword [0x004e03e0], rax
test edx, edx
je 0x4d3c68
cmp byte [r13], 0x3a
je 0x4d3c68
lea rcx, str.option_requires_an_argument_____c
mov edx, 0x57
call fcn.004d3620
mov dword [0x004e03e8], 0x57
cmp byte [r13], 0x3a
je 0x4d4042
mov edi, 0x3f
jmp 0x4d3e73
mov dword [0x00534500], 1
mov dword [0x004e03ec], 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 [0x004e03d0], eax
mov eax, dword [0x00534500]
jne 0x4d3a92
or dword [rsp + 0xb8], 2
add r13, 1
jmp 0x4d3ab4
movzx r15d, byte [r11 + 1]
test r15b, r15b
jne 0x4d3f4d
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 0x4d3b2a
mov edi, dword [0x004e03d8]
cmp edi, 0xffffffff
je 0x4d3eef
cmp dword [0x004e03d4], 0xffffffff
jne 0x4d3d31
mov dword [0x004e03d4], r14d
test r15b, r15b
je 0x4d3eef
lea r10, [r11 + 1]
cmp r15b, 0x2d
mov qword [0x004e03e0], r10
jne 0x4d3b83
cmp byte [r11 + 2], 0
je 0x4d40ac
cmp qword [rsp + 0xa8], 0
je 0x4d4083
movsxd r8, r14d
cmp r10, qword [rbx + r8*8]
je 0x4d3bb3
add r10, 1
xor eax, eax
mov qword [0x004e03e0], r10
mov r9, qword [rsp + 0xb0]
mov dword [rsp + 0x20], eax
mov rdx, r13
mov rcx, rbx
mov r8, qword [rsp + 0xa8]
call fcn.004d36b0
cmp eax, 0xffffffff
mov edi, eax
je 0x4d3fe0
lea rax, [0x00520cf5]
mov qword [0x004e03e0], rax
jmp 0x4d3e73
lea r8d, [r14 + 1]
mov dword [0x004e03d8], r14d
mov dword [0x004e03ec], r8d
jmp 0x4d3b6f
mov edx, r10d
mov r9, rbx
mov r8d, r14d
mov dword [rsp + 0x38], r10d
mov ecx, r15d
call fcn.004d3560
mov edx, dword [0x004e03ec]
mov dword [0x004e03d4], 0xffffffff
mov r10d, dword [rsp + 0x38]
mov eax, edx
add edx, 1
sub r10d, r15d
mov dword [0x004e03ec], edx
sub eax, r10d
mov dword [0x004e03d8], eax
mov eax, dword [0x00534500]
jmp 0x4d3af4
mov esi, dword [0x004e03d4]
lea rax, [0x00520cf5]
mov qword [0x004e03e0], rax
mov edi, dword [0x004e03d8]
cmp esi, 0xffffffff
jne 0x4d3eb0
cmp edi, 0xffffffff
je 0x4d3e5a
mov dword [0x004e03ec], edi
mov dword [0x004e03d4], 0xffffffff
mov dword [0x004e03d8], 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 [0x005344f8], r11
mov edi, 1
mov dword [0x004e03ec], r8d
jmp 0x4d3e73
mov r9, rbx
mov r8d, r14d
mov edx, esi
mov ecx, edi
sub esi, edi
call fcn.004d3560
sub dword [0x004e03ec], esi
jmp 0x4d3e5a
xor eax, eax
cmp r15b, 0x3a
je 0x4d3d83
movsx edx, r15b
mov rcx, r13
call sub.msvcrt.dll_strchr
test rax, rax
setne al
movzx eax, al
jmp 0x4d3d83
lea rbp, [r11 + 1]
mov qword [0x004e03e0], rbp
cmp byte [r11 + 1], 0
jne 0x4d3f9e
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 0x4d3e6e
movzx edx, byte [rax + 1]
mov r10, r11
mov edi, 0x2d
cmp dl, 0x3a
je 0x4d3fa5
cmp byte [r10 + 1], 0
jne 0x4d3e73
add dword [0x004e03ec], 1
jmp 0x4d3e73
mov edi, dword [0x004e03d8]
cmp edi, 0xffffffff
jne 0x4d3d21
jmp 0x4d3d3a
cmp byte [r10 + 1], 0
jne 0x4d3f6f
add dword [0x004e03ec], 1
mov ecx, dword [0x004e03f0]
test ecx, ecx
je 0x4d3f8e
cmp byte [r13], 0x3a
je 0x4d3f8e
lea rcx, str.unknown_option_____c
mov edx, edi
call fcn.004d3620
mov dword [0x004e03e8], edi
mov edi, 0x3f
jmp 0x4d3e73
mov edi, 0x2d
jmp 0x4d3f6f
mov qword [0x005344f8], 0
mov ecx, dword [0x004e03ec]
cmp byte [r10 + 1], 0
lea edx, [rcx + 1]
je 0x4d3ff0
mov qword [0x005344f8], rbp
lea rax, [0x00520cf5]
mov dword [0x004e03ec], edx
mov qword [0x004e03e0], rax
jmp 0x4d3e73
mov r10, qword [0x004e03e0]
movzx r15d, byte [r10]
jmp 0x4d3bb3
cmp byte [rax + 2], 0x3a
je 0x4d3fc7
cmp esi, edx
mov dword [0x004e03ec], edx
jg 0x4d4096
lea rax, [0x00520cf5]
mov qword [0x004e03e0], rax
mov eax, dword [0x004e03f0]
test eax, eax
je 0x4d4031
cmp byte [r13], 0x3a
je 0x4d4031
lea rcx, str.option_requires_an_argument_____c
mov edx, edi
call fcn.004d3620
mov dword [0x004e03e8], edi
cmp byte [r13], 0x3a
jne 0x4d3c7d
mov edi, 0x3a
jmp 0x4d3e73
cdqe
mov rax, qword [rbx + rax*8]
mov qword [0x004e03e0], rax
mov r9, qword [rsp + 0xb0]
mov dword [rsp + 0x20], 0
mov rdx, r13
mov rcx, rbx
mov r8, qword [rsp + 0xa8]
call fcn.004d36b0
mov edi, eax
jmp 0x4d3dad
lea rbp, [r11 + 2]
mov r11, r10
mov qword [0x004e03e0], rbp
jmp 0x4d3efa
movsxd rdx, edx
mov rax, qword [rbx + rdx*8]
lea edx, [rcx + 2]
mov qword [0x005344f8], rax
jmp 0x4d3fc7
mov esi, dword [0x004e03d4]
lea r8d, [r14 + 1]
lea rax, [0x00520cf5]
mov dword [0x004e03ec], r8d
mov qword [0x004e03e0], rax
cmp esi, 0xffffffff
je 0x4d3e5a
mov r9, rbx
jmp 0x4d3eb6
mov r11, r10
jmp 0x4d3efa