Function at 0x140133510
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, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov rsi, rcx
xor r14d, r14d
cmp byte [rcx + 0x40], r14b
jne 0x1401337aa
mov byte [rcx + 0x40], 1
mov edi, r14d
mov rcx, qword [rcx + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x1401337aa
lea r13, vtable.td::NullLog.0
lea r15, [0x1402cbef0]
lea r12, [0x1402cbef4]
nop dword [rax + rax]
lea rbx, [rcx + rdi*8]
mov rcx, qword [rbx]
call fcn.140150490
test rdi, rdi
je 0x14013378f
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov ecx, 8
call fcn.1402c5360
test rax, rax
je 0x1401335b0
mov qword [rax], rbx
jmp 0x1401335b3
mov rax, r14
mov qword [rbp + 0x6f], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140129a60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1401337f5
xorps xmm0, xmm0
movaps xmm6, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmmword [rbp - 0x49], xmm6
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 0x1401337d4
mov qword [rbp - 0x39], rdx
mov qword [rbp - 0x31], 0x20000
lea rax, [rbp + 0x6f]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x79], rdx
mov qword [rbp - 0x71], 0x20000
test rdx, rdx
je 0x1401337db
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rsp + 0x30], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x21]
call fcn.140154660
lea rax, [rbp + 0x67]
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], r14d
mov qword [rbp - 0x69], r15
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [r15 + rax], 0
jne 0x140133690
mov qword [rbp - 0x61], rax
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x21]
call fcn.140154960
mov rdx, rdi
lea rcx, [rbp - 0x21]
call fcn.140154a60
mov qword [rbp - 0x59], r12
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r12 + rax], 0
jne 0x1401336c2
mov qword [rbp - 0x51], rax
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x21]
call fcn.140154960
mov rax, qword [rbp - 0x11]
add rax, 0x1e
mov rcx, qword [rbp - 0x19]
cmp rcx, rax
jae 0x1401337cd
mov byte [rcx], 0
cmp qword [rbp - 0x21], 0
je 0x140133831
lea rcx, [rbp - 0x39]
call fcn.14015a700
movdqa xmm0, xmm6
psrldq xmm0, 8
movd eax, xmm0
test eax, eax
setne cl
test eax, eax
je 0x140133742
test cl, cl
je 0x140133805
movdqa xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x140133805
xorps xmm6, xmm6
movdqa xmm0, xmm6
psrldq xmm0, 8
movd ebx, xmm0
test ebx, ebx
setne al
test ebx, ebx
je 0x14013378f
test al, al
je 0x140133826
call sub.MSVCP140.dll__Thrd_id
cmp ebx, eax
je 0x14013381b
movdqa xmmword [rsp + 0x30], xmm6
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll__Thrd_join
test eax, eax
jne 0x140133810
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x49], xmm0
inc rdi
mov rcx, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, rcx
sar rax, 3
cmp rdi, rax
jb 0x140133580
mov rbx, qword [rsp + 0x148]
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
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 r8d, 0x21
lea rdx, str.D:_a_ton_ton_tdutils_td_utils_Slice.h
lea rcx, str.s____nullptr
call fcn.140153ae0
nop
mov dword [rsp + 0x48], r14d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 2
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
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