Function at 0x140010b70
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 [0x14009a2c0]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov r12, rdx
mov r15d, ecx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
lea rax, [0x1400841b8]
mov qword [rsp + 0x70], rax
lea rax, [0x1400840c8]
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.140010340
test al, al
jne 0x140010e14
mov rdx, qword [rsp + 0x1d0]
cmp rdx, 0x10
jb 0x140010d3e
inc rdx
mov rcx, qword [rsp + 0x1b8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010d38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001141e
call fcn.140067250
nop
mov rdx, qword [rsp + 0x1b0]
cmp rdx, 0x10
jb 0x140010d82
inc rdx
mov rcx, qword [rsp + 0x198]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010d7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001145e
call fcn.140067250
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.1400140a0
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.140066cd0
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.140066e10
mov rbx, rax
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x1b8]
mov rcx, rax
call fcn.140013330
lea rax, [rsp + 0x70]
mov qword [rbx + 0x20], rax
lea rax, [0x14000fb40]
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, [0x14001e2d0]
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 0x1400115b5
xor r8d, r8d
lea rdx, [0x140083ca4]
lea rcx, str.GPU_MAX_HEAP_SIZE
call fcn.14002b010
xor r8d, r8d
lea rdx, [0x140083ca4]
lea rcx, str.GPU_MAX_ALLOC_PERCENT
call fcn.14002b010
xor r8d, r8d
lea rdx, [0x140083ca4]
lea rcx, str.GPU_SINGLE_ALLOC_PERCENT
call fcn.14002b010
lea rcx, str.NO_COLOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140010ede
mov byte [reloc.WS2_32.dll_accept], sil
jmp 0x140010f37
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x140010f37
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 0x140010f37
mov dword [rsp + 0x30], esi
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x140010f37
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 0x140010f37
mov byte [reloc.WS2_32.dll_accept], 1
lea rcx, [rsp + 0x1e0]
call fcn.140008a50
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 0x14001129a
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], 0x10
cmovae rdi, r13
cmp r14, rcx
ja 0x1400115c5
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
cmp r14, 0x10
jae 0x140010fcd
mov qword [rsp + 0x50], r14
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x40], xmm0
jmp 0x140011056
mov rbx, r14
or rbx, 0xf
cmp rbx, rcx
jbe 0x140010ffe
mov rbx, rcx
lea rax, [rdx + 0x27]
mov rcx, rax
call fcn.140066e10
mov rcx, rax
test rax, rax
je 0x140011022
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140011038
cmp rbx, 0x16
cmovb rbx, r8
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140011029
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400115ca
jmp 0x140010fe0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140011035
call fcn.140066e10
jmp 0x140011038
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.140008c80
test al, al
jne 0x1400111a0
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 0x1400110b0
lea rcx, [rsp + 0x178]
call fcn.140017010
nop
lea rcx, [rsp + 0x178]
cmp qword [rsp + 0x190], 0x10
setae sil
mov rdi, qword [rsp + 0x178]
cmovae rcx, rdi
mov rbx, qword [rsp + 0x188]
cmp rbx, 2
jne 0x14001110a
mov r8, rbx
lea rdx, [0x140083d04]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140011136
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 0xb
jne 0x1400111ab
mov r8, rbx
lea rdx, str.__verbosity
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400111ab
mov eax, dword [rsp + 0x30]
inc eax
cmp eax, r15d
jge 0x1400111ab
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, 0x10
jb 0x14001119e
inc rdx
mov rcx, qword [rsp + 0x178]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011199
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011199
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140067250
xor esi, esi
mov edi, dword [rsp + 0x30]
inc edi
jmp 0x140010f55
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 2
jne 0x1400111d7
mov r8, rbx
lea rdx, [0x140083d14]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400115d0
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 6
jne 0x140011203
mov r8, rbx
lea rdx, str.__help
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400115d0
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 2
jne 0x14001122f
mov r8, rbx
lea rdx, [0x140083d20]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400115d5
lea rcx, [rsp + 0x178]
test sil, sil
cmovne rcx, rdi
cmp rbx, 9
jne 0x14001125b
mov r8, rbx
lea rdx, str.__version
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400115d5
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.1400149f0
lea rdx, [rsp + 0x178]
mov rcx, rax
call fcn.140014bc0
lea rdx, [0x1400151c0]
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.14000c390
nop
mov rcx, qword [0x14009ebd0]
test rcx, rcx
je 0x1400112c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14009ebd0], rsi
mov rcx, qword [0x14009ebb8]
test rcx, rcx
je 0x1400112da
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [0x14009ebb8], rsi
mov rcx, qword [0x14009ebc0]
test rcx, rcx
je 0x1400112f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14009ebc0], rsi
mov rcx, qword [0x14009ebb0]
test rcx, rcx
je 0x14001130c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [0x14009ebb0], rsi
mov rdx, qword [rsp + 0x2a0]
cmp rdx, 0x10
jb 0x14001134b
inc rdx
mov rcx, qword [rsp + 0x288]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011346
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400113b9
call fcn.140067250
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.140011b20
mov rcx, qword [rsp + 0x1f8]
test rcx, rcx
je 0x1400113d9
mov rax, qword [rsp + 0x208]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400113c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400113c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140067250
mov qword [rsp + 0x1f8], rsi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x200], xmm0
cmp dword [rsp + 0x68], 0
jne 0x1400114f8
mov rdx, qword [rsp + 0x1d0]
cmp rdx, 0x10
jb 0x14001142b
inc rdx
mov rcx, qword [rsp + 0x1b8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011425
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011425
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140067250
nop
mov rax, qword [rsp + 0x1b0]
cmp rax, 0x10
jb 0x14001146e
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x140011465
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011465
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.140067250
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.1400140a0
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 0x140010de7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov rdx, qword [rsp + 0x1d0]
cmp rdx, 0x10
jb 0x14001151e
inc rdx
mov rcx, qword [rsp + 0x1b8]
call fcn.1400173c0
nop
mov rdx, qword [rsp + 0x1b0]
cmp rdx, 0x10
jb 0x14001153d
inc rdx
mov rcx, qword [rsp + 0x198]
call fcn.1400173c0
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.1400140a0
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 0x140010de7
mov dword [rsp + 0x68], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.140003110
call fcn.140002fb0
nop
call fcn.14000f310
call fcn.14000f440
int3