Function at 0x140043980
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x90
mov rax, qword [0x140480c38]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov r12, rdx
mov qword [rbp + 7], rdx
xor r13d, r13d
mov r10d, dword [rbp + 0x7f]
mov dword [0x14060b4f8], r10d
mov rbx, qword [rcx + 8]
sub rbx, qword [rcx]
sar rbx, 5
mov dword [0x14060b4f0], ebx
mov rax, qword [r8 + 8]
sub rax, qword [r8]
sar rax, 5
mov dword [0x14060b4f4], eax
mov dword [0x14060b530], r9d
mov qword [rbp - 0x21], rcx
mov qword [rbp - 0x19], rdx
mov qword [rbp - 0x11], r8
mov eax, dword [rbp + 0x77]
mov dword [rbp - 9], eax
lea rax, [rbp + 0x7f]
mov qword [rbp - 1], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov esi, r13d
mov qword [rbp - 0x29], r13
cmp r10d, ebx
cmovg r10d, ebx
mov dword [rbp + 0x7f], r10d
mov r14d, r13d
mov rdi, qword [rbp - 0x31]
test r10d, r10d
jle 0x140043aeb
nop dword [rax]
lea ecx, [r10 + r10*4]
add ecx, ecx
cmp ecx, 0x96
jl 0x140043a43
mov ecx, __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp - 0x49], ebx
cmp rdi, rsi
je 0x140043abd
mov ecx, Ordinal_50
call fcn.1400b7434
test rax, rax
je 0x140043a7e
mov dword [rax], ebx
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rax + 8], xmm0
movups xmm1, xmmword [rbp - 0x11]
movups xmmword [rax + 0x18], xmm1
movsd xmm0, qword [rbp - 1]
movsd qword [rax + 0x28], xmm0
jmp 0x140043a81
mov rax, r13
mov qword [rbp - 0x49], rax
lea r15, [rdi + 8]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r13d
mov r9, rax
lea r8, [0x140006100]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140043c35
add rdi, 0x10
mov qword [rbp - 0x31], rdi
jmp 0x140043ad9
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x21]
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.1400052f0
mov rsi, qword [rbp - 0x29]
mov rdi, qword [rbp - 0x31]
inc r14d
dec ebx
mov r10d, dword [rbp + 0x7f]
cmp r14d, r10d
jl 0x140043a30
mov r14, qword [rbp - 0x39]
mov rbx, r14
cmp r14, rdi
je 0x140043b41
nop word [rax + rax]
cmp dword [rbx + 8], 0
je 0x140043c2a
call sub.MSVCP140.dll__Thrd_id
cmp dword [rbx + 8], eax
je 0x140043c4e
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x49], xmm0
xor edx, edx
lea rcx, [rbp - 0x49]
call sub.MSVCP140.dll__Thrd_join
test eax, eax
jne 0x140043c43
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x140043b00
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov byte [section..data], 0
test r14, r14
je 0x140043bb1
mov rax, r14
cmp r14, rdi
je 0x140043b6f
cmp dword [rax + 8], 0
jne 0x140043b9e
add rax, 0x10
cmp rax, rdi
jne 0x140043b60
sub rsi, r14
and rsi, 0xfffffffffffffff0
mov rax, r14
cmp rsi, 0x1000
jb 0x140043ba5
add rsi, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043ba5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rdx, rsi
mov rcx, r14
call fcn.1400b7470
nop
mov rdx, qword [r12 + 0x18]
cmp rdx, 0x10
jb 0x140043be9
inc rdx
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x140043be4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140043c23
mov rcx, r8
call fcn.1400b7470
mov qword [r12 + 0x10], r13
mov qword [r12 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r12], 0
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400b7590
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
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__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [r15], r13d
mov ecx, 6
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