Function at 0x140150490
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rsi, rcx
xor r14d, r14d
mov ebx, r14d
mov rax, qword [rcx + 0x20]
sub rax, qword [rcx + 0x18]
sar rax, 4
test rax, rax
je 0x1401506ae
mov qword [rbp - 0x19], rcx
mov edi, r14d
lea r13, vtable.td::NullLog.0
lea r15, [0x1402cbef0]
lea r12, str.:cpu
nop word [rax + rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x11], rbx
mov ecx, reloc.WS2_32.dll_recv
call fcn.1402c5360
test rax, rax
je 0x140150513
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rax], xmm0
jmp 0x140150516
mov rax, r14
mov qword [rbp + 0x6f], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14014ca90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14015083d
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov rax, qword [rsi + 0x18]
cmp dword [rdi + rax + 8], 0
jne 0x140150736
movdqa xmmword [rbp - 0x79], xmm0
movups xmmword [rdi + rax], xmm1
mov dword [rbp + 0x67], r14d
mov word [rbp + 0x6b], 0
mov qword [rbp + 0x6f], r13
call fcn.140153d10
mov rcx, qword [rax + 0x100000]
lea rdx, [rcx + rax]
add rcx, 0x20000
mov qword [rax + 0x100000], rcx
cmp rcx, 0x100000
ja 0x1401506e6
mov qword [rbp - 0x69], rdx
mov qword [rbp - 0x61], 0x20000
lea rax, [rbp + 0x6f]
mov qword [rbp - 0x59], rax
mov qword [rbp - 9], rdx
mov qword [rbp - 1], 0x20000
test rdx, rdx
je 0x1401508ab
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x79], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x51]
call fcn.140154660
lea rax, [rbp + 0x67]
mov qword [rbp - 0x29], rax
mov dword [rbp - 0x21], r14d
mov qword [rbp + 7], r15
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r15 + rax], 0
jne 0x140150603
mov qword [rbp + 0xf], rax
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x51]
call fcn.140154960
mov rax, qword [rsi + 0x10]
mov ecx, dword [rax]
test ecx, ecx
js 0x140150891
movzx edx, cl
lea rcx, [rbp - 0x51]
call fcn.1401547e0
mov qword [rbp + 0x17], r12
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r12 + rax], 0
jne 0x140150643
mov qword [rbp + 0x1f], rax
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x51]
call fcn.140154960
mov rdx, rbx
lea rcx, [rbp - 0x51]
call fcn.140154a60
mov rax, qword [rbp - 0x41]
add rax, 0x1e
mov rcx, qword [rbp - 0x49]
cmp rcx, rax
jae 0x1401506df
mov byte [rcx], 0
cmp qword [rbp - 0x51], 0
je 0x140150877
lea rcx, [rbp - 0x69]
call fcn.14015a700
inc rbx
add rdi, 0x10
mov rax, qword [rsi + 0x20]
sub rax, qword [rsi + 0x18]
sar rax, 4
cmp rbx, rax
jb 0x1401504f0
mov rax, qword [rsi + 0x10]
mov ecx, dword [rax]
test ecx, ecx
js 0x14015085d
test cl, cl
jne 0x140150744
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
mov ecx, 8
call fcn.1402c5360
test rax, rax
je 0x1401506ed
mov qword [rax], rsi
jmp 0x1401506f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
nop
mov rax, r14
mov qword [rbp + 0x67], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14014ca40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14015084d
movaps xmm1, xmmword [rsp + 0x30]
mov rax, qword [rsi]
cmp dword [rax + 0xb8], 0
je 0x14015073d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
movups xmmword [rax + 0xb0], xmm1
mov rax, qword [rsi + 0x10]
mov r15, qword [rax + 0x40]
mov rbx, qword [rsi]
add rbx, 0xa0
mov ecx, dword [0x14039f4c0]
mov rax, qword gs:[0x58]
mov r14, qword [rax + rcx*8]
mov r12d, 0x58
cmp byte [r12 + r14], 0
jne 0x14015077b
call fcn.1402c5654
mov r13d, 0x18
mov rdi, qword [r14 + r13]
mov qword [rbp + 0x67], rdi
cmp byte [r12 + r14], 0
jne 0x140150795
call fcn.1402c5654
mov qword [r14 + r13], rbx
mov r8d, dword [r15]
lea r9, [r15 + 0x48]
mov rdx, qword [rsi]
mov rax, qword [rsi + 0x10]
mov eax, dword [rax]
lea rcx, vtable.td::actor::core::Scheduler::ContextImpl.0
mov qword [rbp - 0x69], rcx
lea rcx, [r15 + 8]
mov qword [rbp - 0x61], rcx
mov dword [rbp - 0x59], eax
mov eax, dword [r15 + 0x40]
mov dword [rbp - 0x55], eax
mov qword [rbp - 0x51], rdx
lea rax, [rsi + 0x38]
test r8d, r8d
mov ecx, 0
cmovne rax, rcx
mov qword [rbp - 0x49], rax
lea rax, [rsi + 0x40]
cmovne rax, rcx
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], r9
mov r15d, reloc.WS2_32.dll_recv
mov rbx, qword [r15 + r14]
mov qword [rbp + 0x6f], rbx
lea rax, [rbp - 0x69]
mov qword [r15 + r14], rax
mov rcx, qword [rsi + 0x58]
call fcn.140128550
nop
mov qword [r15 + r14], rbx
cmp byte [r12 + r14], 0
jne 0x14015081e
call fcn.1402c5654
mov qword [r14 + r13], rdi
mov rbx, qword [rsp + 0x138]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x38], r14d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rsp + 0x38], r14d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov r8d, 0x24
lea rdx, str.D:_a_ton_ton_tdactor_td_actor_core_SchedulerId.h
lea rcx, str.is_valid__
call fcn.140153ae0
nop
mov r8d, 0x21
lea rdx, str.D:_a_ton_ton_tdutils_td_utils_Slice.h
lea rcx, str.s____nullptr
call fcn.140153ae0
int3
mov r8d, 0x24
lea rdx, str.D:_a_ton_ton_tdactor_td_actor_core_SchedulerId.h
lea rcx, str.is_valid__
call fcn.140153ae0
nop
mov r8d, 0x21
lea rdx, str.D:_a_ton_ton_tdutils_td_utils_Slice.h
lea rcx, str.s____nullptr
call fcn.140153ae0
int3