Function at 0x140010a00
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, [0x140083168]
mov qword [rsp + 0x70], rax
lea rax, [0x140083078]
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 0x140010ca4
mov rdx, qword [rsp + 0x1d0]
cmp rdx, 0xf
jbe 0x140010bce
inc rdx
mov rcx, qword [rsp + 0x1b8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010bc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400112ae
call fcn.140066980
nop
mov rdx, qword [rsp + 0x1b0]
cmp rdx, 0xf
jbe 0x140010c12
inc rdx
mov rcx, qword [rsp + 0x198]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010c0c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400112ee
call fcn.140066980
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.140013c60
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.140066410
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.140066550
mov rbx, rax
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x1b8]
mov rcx, rax
call fcn.1400131b0
lea rax, [rsp + 0x70]
mov qword [rbx + 0x20], rax
lea rax, [0x14000f970]
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, [0x14001dfa0]
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 0x14001144f
xor r8d, r8d
lea rdx, [0x140082c54]
lea rcx, str.GPU_MAX_HEAP_SIZE
call fcn.14002ada0
xor r8d, r8d
lea rdx, [0x140082c54]
lea rcx, str.GPU_MAX_ALLOC_PERCENT
call fcn.14002ada0
xor r8d, r8d
lea rdx, [0x140082c54]
lea rcx, str.GPU_SINGLE_ALLOC_PERCENT
call fcn.14002ada0
lea rcx, str.NO_COLOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140010d6e
mov byte [reloc.WS2_32.dll_accept], sil
jmp 0x140010dc7
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x140010dc7
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 0x140010dc7
mov dword [rsp + 0x30], esi
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x140010dc7
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 0x140010dc7
mov byte [reloc.WS2_32.dll_accept], 1
lea rcx, [rsp + 0x1e0]
call fcn.1400089d0
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 0x14001112a
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 0x14001145f
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
cmp r14, 0xf
ja 0x140010e5d
mov qword [rsp + 0x50], r14
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x40], xmm0
jmp 0x140010ee6
mov rbx, r14
or rbx, 0xf
cmp rbx, rcx
jbe 0x140010e8e
mov rbx, rcx
lea rax, [rdx + 0x27]
mov rcx, rax
call fcn.140066550
mov rcx, rax
test rax, rax
je 0x140010eb2
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140010ec8
cmp rbx, 0x16
cmovb rbx, r8
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140010eb9
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140011464
jmp 0x140010e70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140010ec5
call fcn.140066550
jmp 0x140010ec8
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.140008c10
test al, al
jne 0x140011030
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 0x140010f40
lea rcx, [rsp + 0x178]
call fcn.140016ca0
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 0x140010f9a
mov r8, rbx
lea rdx, [0x140082cb4]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140010fc6
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 0xb
jne 0x14001103b
mov r8, rbx
lea rdx, str.__verbosity
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001103b
mov eax, dword [rsp + 0x30]
inc eax
cmp eax, r15d
jge 0x14001103b
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 0x14001102e
inc rdx
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011029
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011029
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066980
xor esi, esi
mov edi, dword [rsp + 0x30]
inc edi
jmp 0x140010de5
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 2
jne 0x140011067
mov r8, rbx
lea rdx, [0x140082cc4]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001146a
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 6
jne 0x140011093
mov r8, rbx
lea rdx, str.__help
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001146a
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 2
jne 0x1400110bf
mov r8, rbx
lea rdx, [0x140082cd0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001146f
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 9
jne 0x1400110eb
mov r8, rbx
lea rdx, str.__version
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14001146f
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.1400144a0
lea rdx, [rsp + 0x178]
mov rcx, rax
call fcn.140014670
lea rdx, [0x140014c70]
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.14000c1d0
nop
mov rcx, qword [0x14009dc10]
test rcx, rcx
je 0x140011151
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14009dc10], rsi
mov rcx, qword [0x14009dbf8]
test rcx, rcx
je 0x14001116a
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [0x14009dbf8], rsi
mov rcx, qword [0x14009dc00]
test rcx, rcx
je 0x140011183
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14009dc00], rsi
mov rcx, qword [0x14009dbf0]
test rcx, rcx
je 0x14001119c
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 0x1400111db
inc rdx
mov rcx, qword [rsp + 0x288]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400111d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011249
call fcn.140066980
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.1400119c0
mov rcx, qword [rsp + 0x1f8]
test rcx, rcx
je 0x140011269
mov rax, qword [rsp + 0x208]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011250
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011250
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066980
mov qword [rsp + 0x1f8], rsi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x200], xmm0
cmp dword [rsp + 0x68], 0
jne 0x140011388
mov rdx, qword [rsp + 0x1d0]
cmp rdx, 0xf
jbe 0x1400112bb
inc rdx
mov rcx, qword [rsp + 0x1b8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400112b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400112b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066980
nop
mov rax, qword [rsp + 0x1b0]
cmp rax, 0xf
jbe 0x1400112fe
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x1400112f5
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400112f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.140066980
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.140013c60
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 0x140010c77
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov r8, qword [rsp + 0x1d0]
cmp r8, 0xf
jbe 0x1400113b3
mov rdx, qword [rsp + 0x1b8]
lea rcx, [rsp + 0x1b8]
call fcn.140014310
nop
mov r8, qword [rsp + 0x1b0]
cmp r8, 0xf
jbe 0x1400113d7
mov rdx, qword [rsp + 0x198]
lea rcx, [rsp + 0x198]
call fcn.140014310
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.140013c60
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 0x140010c77
mov dword [rsp + 0x68], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.140003070
call fcn.140002f30
nop
call fcn.14000f140
call fcn.14000f270
int3