Function at 0x140042320
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140135558]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, rcx
xor r14d, r14d
call fcn.140049d70
mov rdx, qword [rsi]
mov qword [rdx + 0x138], rax
mov rcx, qword [rsi]
xor edx, edx
mov rcx, qword [rcx + 0x138]
call fcn.140049aa0
mov byte [rsp + 0x30], r14b
mov rax, qword [rsi]
mov qword [rbp - 0x69], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x61], rax
lea ecx, [r14 + 0x10]
call fcn.1400b9b24
test rax, rax
je 0x1400423a7
movups xmm0, xmmword [rbp - 0x69]
movups xmmword [rax], xmm0
jmp 0x1400423aa
mov rax, r14
mov qword [rbp - 0x59], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140042b50]
xor edx, edx
xor ecx, ecx
call fcn.1400c2ed8
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400426bd
mov rax, qword [rsi]
cmp byte [rax + 0x20], 0
jne 0x140042634
movabs r13, 0x7fffffffffffffff
movabs r15, 0x311cdad160000
movabs r12, 0x112e0be826d694b3
movsd xmm6, qword [0x1400f78e0]
movabs rdi, 0x7ffffffffe363c7f
call fcn.1400b8104
mov rbx, rax
call fcn.1400b80e8
mov r8, rax
cmp rbx, 0x989680
jne 0x14004243a
imul rax, r8, 0x64
jmp 0x14004245d
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
mov rax, r8
cqo
idiv rbx
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, rdi
lea rdi, [rax + 0x1c9c380]
jl 0x140042470
mov rdi, r13
nop dword [rax]
call fcn.1400b8104
mov rbx, rax
call fcn.1400b80e8
mov r8, rax
cmp rbx, 0x989680
jne 0x14004248f
imul rbx, r8, 0x64
jmp 0x1400424b3
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
mov rax, r8
cqo
idiv rbx
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
lea rbx, [rax + rcx]
cmp rbx, rdi
jge 0x14004251f
call fcn.1400b81fc
imul rcx, rax, 0x64
mov rax, rdi
sub rax, rbx
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
comisd xmm0, xmm6
lea r8, [rcx + r15]
ja 0x1400424dd
lea r8, [rcx + rax]
add rax, rcx
lea rdx, [rcx + r15]
comisd xmm0, xmm6
cmovbe rdx, rax
mov rax, r12
imul rdx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp + 7], rdx
imul eax, edx, 0x3b9aca00
sub r8d, eax
mov dword [rbp + 0xf], r8d
lea rcx, [rbp + 7]
call fcn.1400b63d8
jmp 0x140042470
mov rcx, qword [rsi]
mov rcx, qword [rcx + 0x138]
call fcn.140049cb0
movzx ecx, byte [rsp + 0x30]
test rax, rax
je 0x14004261b
cmp rax, r14
je 0x140042551
cmp rax, 0x2800
jae 0x140042551
test cl, cl
je 0x14004261b
mov rdi, qword [rsi]
add rdi, 0xa0
mov qword [rbp - 0x79], rdi
mov byte [rbp - 0x71], 0
mov rcx, rdi
call fcn.1400b6750
test eax, eax
jne 0x1400426cd
mov byte [rbp - 0x71], 1
call fcn.1400017f0
mov rcx, qword [rsi]
lea rdx, vtable.std::_Func_impl_no_alloc_class__lambda_88c1e13150e22c1c058e8af59b1625c9___class_std::shared_ptr_class_Promise____.0
mov qword [rbp - 0x39], rdx
mov qword [rbp - 0x31], rcx
lea rcx, [rbp - 0x39]
mov qword [rbp - 1], rcx
lea r9, [rbp - 0x39]
mov r8d, 2
lea rdx, [rbp - 0x49]
mov rcx, rax
call fcn.140001a00
mov rcx, qword [rsi]
add rcx, 0xf0
mov rdx, rdi
call fcn.1400b699c
mov rcx, qword [rsi]
mov rcx, qword [rcx + 0x138]
call fcn.140049cb0
mov r14, rax
mov rbx, qword [rbp - 0x41]
test rbx, rbx
je 0x14004260c
mov edx, 0xffffffff
lock xadd dword [rbx + 8], edx
cmp edx, 1
jne 0x140042608
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140042608
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rbp - 0x79]
mov rcx, rdi
call fcn.1400b6774
movzx ecx, byte [rsp + 0x30]
jmp 0x14004261e
mov r14, rax
mov rax, qword [rsi]
test cl, cl
jne 0x14004262f
cmp byte [rax + 0x20], cl
jne 0x140042634
jmp 0x140042411
or qword [rax + 0x10], 2
cmp dword [rsp + 0x48], 0
je 0x1400426d5
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rsp + 0x48], eax
je 0x1400426e0
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp - 0x69], xmm0
xor edx, edx
lea rcx, [rbp - 0x69]
call fcn.1400b6370
test eax, eax
jne 0x1400426eb
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov rcx, qword [rsi]
mov rcx, qword [rcx + 0x138]
call fcn.140049ba0
nop
cmp dword [rsp + 0x48], 0
jne 0x1400426f6
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400b9890
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rsp + 0x48], r14d
mov ecx, 6
call fcn.1400b6cbc
nop
mov ecx, eax
call fcn.1400b6c80
int3
mov ecx, 1
call fcn.1400b6cbc
int3
mov ecx, 5
call fcn.1400b6cbc
int3
mov ecx, 2
call fcn.1400b6cbc
nop
call fcn.1400c1234
int3