Function at 0x14001cb20
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov rax, rsp
push r13
push r14
push r15
sub rsp, 0x2e0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rsi, rdx
mov qword [rsp + 0x28], rdx
mov r13d, ecx
lea rcx, str.GPU_MAX_HEAP_SIZE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14001cb88
lea rdx, [0x140227fe4]
lea rcx, str.GPU_MAX_HEAP_SIZE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv_s]
lea rcx, str.GPU_MAX_ALLOC_PERCENT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14001cbae
lea rdx, [0x140227fe4]
lea rcx, str.GPU_MAX_ALLOC_PERCENT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv_s]
lea rcx, str.GPU_SINGLE_ALLOC_PERCENT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x14001cbd4
lea rdx, [0x140227fe4]
lea rcx, str.GPU_SINGLE_ALLOC_PERCENT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv_s]
lea rcx, str.NO_COLOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14001cbef
mov byte [reloc.WS2_32.dll_accept], 0
jmp 0x14001cc5a
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x14001cc5a
mov byte [reloc.WS2_32.dll_accept], 0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001cc5a
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14001cc5a
mov edx, dword [rsp + 0x20]
or edx, 4
mov dword [rsp + 0x20], edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
movzx ecx, byte [reloc.WS2_32.dll_accept]
mov edi, 1
test eax, eax
cmovne ecx, edi
mov byte [reloc.WS2_32.dll_accept], cl
jmp 0x14001cc5f
mov edi, 1
lea rcx, [rsp + 0x60]
call fcn.140018430
nop
mov r15d, 2
mov dword [rsp + 0x20], edi
cmp edi, r13d
jge 0x14001cf04
mov r9, rsi
mov r8d, r13d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140018760
test al, al
jne 0x14001cef9
movsxd rdi, dword [rsp + 0x20]
mov rdx, qword [rsi + rdi*8]
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x40], al
cmp byte [rdx], al
jne 0x14001ccc2
xor r8d, r8d
jmp 0x14001ccd0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14001ccc6
lea rcx, [rsp + 0x40]
call fcn.1400201f0
nop
lea rcx, [rsp + 0x40]
mov rsi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x58]
cmp r14, 0x10
cmovae rcx, rsi
mov r8, r15
mov rbx, qword [rsp + 0x50]
cmp rbx, r15
cmovb r8, rbx
test r8, r8
je 0x14001cd16
lea rdx, [0x140228044]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001cd1c
cmp rbx, 2
je 0x14001cd59
lea rcx, [rsp + 0x40]
cmp r14, 0x10
cmovae rcx, rsi
mov r8d, reloc.WS2_32.dll_inet_addr
cmp rbx, r8
cmovb r8, rbx
test r8, r8
je 0x14001cd4f
lea rdx, str.__verbosity
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001cddd
cmp rbx, 0xb
jne 0x14001cddd
inc edi
cmp edi, r13d
jge 0x14001cddd
movsxd rcx, edi
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsi + rcx*8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [reloc.WS2_32.dll_getpeername], eax
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x14001cefd
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x14001cdd3
test cl, 0x1f
je 0x14001cda3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001cdb3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001cdc3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14001cdd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1401ab39c
jmp 0x14001cefd
lea rcx, [rsp + 0x40]
cmp r14, 0x10
cmovae rcx, rsi
mov r8, r15
cmp rbx, r15
cmovb r8, rbx
test r8, r8
je 0x14001ce09
lea rdx, [0x140228054]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001ce13
cmp rbx, 2
je 0x14001cef3
lea rcx, [rsp + 0x40]
cmp r14, 0x10
cmovae rcx, rsi
mov r8d, 6
cmp rbx, r8
cmovb r8, rbx
test r8, r8
je 0x14001ce42
lea rdx, str.__help
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001ce4c
cmp rbx, 6
je 0x14001cef3
lea rcx, [rsp + 0x40]
cmp r14, 0x10
cmovae rcx, rsi
cmp rbx, 2
cmovb r15, rbx
test r15, r15
je 0x14001ce79
mov r8, r15
lea rdx, [0x140228060]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001ce7f
cmp rbx, 2
je 0x14001ceee
lea rcx, [rsp + 0x40]
cmp r14, 0x10
cmovae rcx, rsi
mov r8d, 9
cmp rbx, r8
cmovb r8, rbx
test r8, r8
je 0x14001ceae
lea rdx, str.__version
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001ceb4
cmp rbx, 9
je 0x14001ceee
lea rdx, str.Invalid_argument:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140022e70
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140023200
lea rdx, [0x140023800]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
or ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.14001c900
call fcn.14001c7d0
nop
mov edi, dword [rsp + 0x20]
inc edi
jmp 0x14001cc70
lea rcx, [rsp + 0x60]
call fcn.14001a060
nop
lea rcx, [rsp + 0x60]
call fcn.14001cf60
xor eax, eax
jmp 0x14001cf2c
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1401aad60
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret