Function at 0x14004a390
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov dword [rbp + 0x10], 0
lea rdx, [0x140233678]
lea rcx, [rbp - 0x20]
call fcn.140049d90
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xor r10d, r10d
mov qword [rbp - 0x30], r10
mov r11d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x28], r11
mov byte [rbp - 0x40], r10b
mov dword [rbp + 0x10], 1
mov rdi, qword [rax + 8]
mov rbx, qword [rax]
cmp rbx, rdi
je 0x14004a4ac
nop dword [rax]
mov r8d, dword [rbx]
mov ecx, 0x55f
mov eax, 0x4f7c5a0b
mov r9d, 1
imul r8d
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x671
sub r8d, eax
nop dword [rax]
test cl, 1
je 0x14004a444
imul r9d, r8d
mov eax, 0x4f7c5a0b
imul r9d
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x671
sub r9d, eax
imul r8d, r8d
mov eax, 0x4f7c5a0b
imul r8d
sar edx, 9
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x671
sub r8d, eax
shr ecx, 1
jne 0x14004a420
cmp r10, r11
jae 0x14004a48d
lea rax, [r10 + 1]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x40]
cmp r11, 0xf
cmova rax, qword [rbp - 0x40]
mov byte [rax + r10], r9b
mov byte [rax + r10 + 1], 0
jmp 0x14004a496
lea rcx, [rbp - 0x40]
call fcn.14005ebc0
add rbx, 4
cmp rbx, rdi
je 0x14004a4ac
mov r11, qword [rbp - 0x28]
mov r10, qword [rbp - 0x30]
jmp 0x14004a3f0
mov rdx, qword [reloc.WS2_32.dll_ntohs]
cmp rdx, 0xf
jbe 0x14004a4e9
mov rcx, qword [0x140233658]
inc rdx
cmp rdx, 0x1000
jb 0x14004a4e4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004a543
mov rcx, r8
call fcn.140131704
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [0x140233658], xmm0
movups xmm1, xmmword [rbp - 0x30]
movups xmmword [0x140233668], xmm1
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14004a54f
mov rax, qword [rbp - 0x10]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a54a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004a54a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140131704
mov rax, qword [0x1402569a8]
cmp rax, qword [0x1402569b0]
je 0x14004a566
mov qword [0x1402569b0], rax
mov rax, qword [0x140256990]
cmp rax, qword [0x140256998]
je 0x14004a57d
mov qword [0x140256998], rax
mov rax, qword [0x140256598]
cmp rax, qword [0x1402565a0]
je 0x14004a594
mov qword [0x1402565a0], rax
mov ecx, 1
call fcn.140131488
mov qword [rbp + 0x10], rax
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140060240]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x40], rax
test rax, rax
je 0x14004a60b
cmp dword [rbp - 0x38], 0
je 0x14004a5ff
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14004a5ff
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3