Function at 0x1400109f0
Capabilities:
Create thread
Query environment variable
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov rax, qword [0x1400992c0]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov r12, rdx
mov r15d, ecx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
lea rax, [0x1400832a8]
mov qword [rsp + 0x70], rax
lea rax, [0x1400831b8]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x108]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov edi, 1
mov dword [rsp + 0x30], edi
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], rbx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x88]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rsi, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0xf0], r14
mov dword [rsp + 0xf8], r14d
mov rdx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
lea rdx, [rsp + 0x88]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ios_char__struct_std::char_traits_char__::rdbuf_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
mov rdx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
lea rdx, [rsp + 0x88]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ios_char__struct_std::char_traits_char__::rdbuf_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x198], xmm0
mov qword [rsp + 0x1a8], r14
mov qword [rsp + 0x1b0], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x198], r14b
movups xmmword [rsp + 0x1b8], xmm0
mov qword [rsp + 0x1c8], r14
mov qword [rsp + 0x1d0], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x1b8], r14b
lea rax, [rsp + 0x198]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1b8]
mov rdx, r12
mov ecx, r15d
call fcn.1400101d0
test al, al
jne 0x140010c94
mov rdx, qword [rsp + 0x1d0]
cmp rdx, 0xf
jbe 0x140010bbe
inc rdx
mov rcx, qword [rsp + 0x1b8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010bb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001129e
call fcn.140066a20
nop
mov rdx, qword [rsp + 0x1b0]
cmp rdx, 0xf
jbe 0x140010c02
inc rdx
mov rcx, qword [rsp + 0x198]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010bfc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400112de
call fcn.140066a20
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rbx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
mov qword [rsp + 0x88], rsi
lea rcx, [rsp + 0x88]
call fcn.140013c50
lea rcx, [rsp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x90]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x108]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1400664b0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x30
call fcn.1400665f0
mov rbx, rax
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x1b8]
mov rcx, rax
call fcn.1400131a0
lea rax, [rsp + 0x70]
mov qword [rbx + 0x20], rax
lea rax, [0x14000f980]
mov qword [rbx + 0x28], rax
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor esi, esi
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x14001df90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14001143f
xor r8d, r8d
lea rdx, [0x140082d94]
lea rcx, str.GPU_MAX_HEAP_SIZE
call fcn.14002ad10
xor r8d, r8d
lea rdx, [0x140082d94]
lea rcx, str.GPU_MAX_ALLOC_PERCENT
call fcn.14002ad10
xor r8d, r8d
lea rdx, [0x140082d94]
lea rcx, str.GPU_SINGLE_ALLOC_PERCENT
call fcn.14002ad10
lea rcx, str.NO_COLOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140010d5e
mov byte [reloc.WS2_32.dll_accept], sil
jmp 0x140010db7
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x140010db7
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 0x140010db7
mov dword [rsp + 0x30], esi
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x140010db7
mov edx, dword [rsp + 0x30]
or edx, 4
mov dword [rsp + 0x30], edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
je 0x140010db7
mov byte [reloc.WS2_32.dll_accept], 1
lea rcx, [rsp + 0x1e0]
call fcn.140008950
nop
mov r14, qword [rsp + 0x1a8]
mov r13, qword [rsp + 0x198]
mov r8d, reloc.WS2_32.dll_shutdown
movabs rdx, 0x8000000000000000
movabs rcx, 0x7fffffffffffffff
mov dword [rsp + 0x30], edi
cmp edi, r15d
jge 0x14001111a
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
lea rdi, [rsp + 0x198]
cmp qword [rsp + 0x1b0], 0xf
cmova rdi, r13
cmp r14, rcx
ja 0x14001144f
cmp r14, 0xf
ja 0x140010e4d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x40], xmm0
jmp 0x140010ed6
mov rbx, r14
or rbx, 0xf
cmp rbx, rcx
jbe 0x140010e7e
mov rbx, rcx
lea rax, [rdx + 0x27]
mov rcx, rax
call fcn.1400665f0
mov rcx, rax
test rax, rax
je 0x140010ea2
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140010eb8
cmp rbx, 0x16
cmovb rbx, r8
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140010ea9
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140011454
jmp 0x140010e60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140010eb5
call fcn.1400665f0
jmp 0x140010eb8
mov rax, rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], rbx
lea r8, [r14 + 1]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, r12
mov r8d, r15d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x1e0]
call fcn.140008b90
test al, al
jne 0x140011020
movsxd rax, dword [rsp + 0x30]
mov rdx, qword [r12 + rax*8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x178], xmm0
mov qword [rsp + 0x188], rsi
mov qword [rsp + 0x190], rsi
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140010f30
lea rcx, [rsp + 0x178]
call fcn.140016c90
nop
lea rcx, [rsp + 0x178]
cmp qword [rsp + 0x190], 0xf
seta sil
mov rdi, qword [rsp + 0x178]
cmova rcx, rdi
mov rbx, qword [rsp + 0x188]
cmp rbx, 2
jne 0x140010f8a
mov r8, rbx
lea rdx, [0x140082df4]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140010fb6
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 0xb
jne 0x14001102b
mov r8, rbx
lea rdx, str.__verbosity
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001102b
mov eax, dword [rsp + 0x30]
inc eax
cmp eax, r15d
jge 0x14001102b
mov dword [rsp + 0x30], eax
movsxd rcx, eax
mov rcx, qword [r12 + rcx*8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [section..data], eax
mov rdx, qword [rsp + 0x190]
cmp rdx, 0xf
jbe 0x14001101e
inc rdx
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011019
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011019
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066a20
xor esi, esi
mov edi, dword [rsp + 0x30]
inc edi
jmp 0x140010dd5
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 2
jne 0x140011057
mov r8, rbx
lea rdx, [0x140082e04]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001145a
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 6
jne 0x140011083
mov r8, rbx
lea rdx, str.__help
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001145a
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 2
jne 0x1400110af
mov r8, rbx
lea rdx, [0x140082e10]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001145f
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 9
jne 0x1400110db
mov r8, rbx
lea rdx, str.__version
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001145f
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.140014490
lea rdx, [rsp + 0x178]
mov rcx, rax
call fcn.140014660
lea rdx, [0x140014c60]
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]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
lea rcx, [rsp + 0x1e0]
call fcn.14000c1e0
nop
mov rcx, qword [0x14009dc10]
test rcx, rcx
je 0x140011141
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14009dc10], rsi
mov rcx, qword [0x14009dbf8]
test rcx, rcx
je 0x14001115a
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [0x14009dbf8], rsi
mov rcx, qword [0x14009dc00]
test rcx, rcx
je 0x140011173
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14009dc00], rsi
mov rcx, qword [0x14009dbf0]
test rcx, rcx
je 0x14001118c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [0x14009dbf0], rsi
mov rdx, qword [rsp + 0x2a0]
cmp rdx, 0xf
jbe 0x1400111cb
inc rdx
mov rcx, qword [rsp + 0x288]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400111c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011239
call fcn.140066a20
mov qword [rsp + 0x298], rsi
mov qword [rsp + 0x2a0], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x288], 0
lea rcx, [rsp + 0x248]
call fcn.1400119b0
mov rcx, qword [rsp + 0x1f8]
test rcx, rcx
je 0x140011259
mov rax, qword [rsp + 0x208]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011240
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011240
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066a20
mov qword [rsp + 0x1f8], rsi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x200], xmm0
cmp dword [rsp + 0x68], 0
jne 0x140011378
mov rdx, qword [rsp + 0x1d0]
cmp rdx, 0xf
jbe 0x1400112ab
inc rdx
mov rcx, qword [rsp + 0x1b8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400112a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400112a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066a20
nop
mov rax, qword [rsp + 0x1b0]
cmp rax, 0xf
jbe 0x1400112ee
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x1400112e5
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400112e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.140066a20
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x88]
call fcn.140013c50
lea rcx, [rsp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x90]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x108]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
xor eax, eax
jmp 0x140010c67
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov r8, qword [rsp + 0x1d0]
cmp r8, 0xf
jbe 0x1400113a3
mov rdx, qword [rsp + 0x1b8]
lea rcx, [rsp + 0x1b8]
call fcn.140014300
nop
mov r8, qword [rsp + 0x1b0]
cmp r8, 0xf
jbe 0x1400113c7
mov rdx, qword [rsp + 0x198]
lea rcx, [rsp + 0x198]
call fcn.140014300
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x88]
call fcn.140013c50
lea rcx, [rsp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x90]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x108]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, 1
jmp 0x140010c67
mov dword [rsp + 0x68], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.140003000
call fcn.140002f50
nop
call fcn.14000f150
call fcn.14000f280
int3