Function at 0x14008bd90
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov esi, ecx
mov ebp, r9d
mov ecx, r9d
movzx ebx, dl
call qword [sym.imp.WS2_32.dll_htonl]
mov edi, eax
test bl, bl
jne 0x14008bf0e
cmp esi, 1
jbe 0x14008bec0
mov qword [rsp + 0xa0], r12
mov r12, qword [rsp + 0xc0]
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0x70], r15
movzx ecx, word [r12 + 0xe]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [r12 + 0xc]
movzx r13d, ax
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [r12 + 0xa]
movzx r15d, ax
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [r12 + 8]
movzx r14d, ax
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [r12 + 6]
movzx ebp, ax
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [r12 + 4]
movzx esi, ax
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [r12 + 2]
movzx edi, ax
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [r12]
movzx ebx, ax
call qword [sym.imp.WS2_32.dll_htons]
movsxd rdx, dword [rsp + 0xd0]
lea r8, str.__x:_x:_x:_x:_x:_x:_x:_x_
mov rcx, qword [rsp + 0xc8]
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], edi
movzx r9d, ax
mov dword [rsp + 0x20], ebx
call fcn.1400192b0
mov r15, qword [rsp + 0x70]
xor al, al
mov r14, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xa0]
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
movsxd rdx, dword [rsp + 0xd0]
shr eax, 8
movzx r8d, al
mov eax, edi
movzx r9d, dil
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r8d
lea r8, [0x14011f450]
shr eax, 0x10
movzx ecx, al
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0xc8]
shr edi, 0x18
mov r9d, edi
call fcn.1400192b0
xor al, al
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdx, qword [0x14018e768]
mov rbx, qword [rsp + 0xc0]
test rdx, rdx
je 0x14008bf9f
cmp esi, 1
ja 0x14008bf64
cmp dword [rdx], 1
ja 0x14008bf64
cmp dword [rdx + 0x10c], edi
jne 0x14008bf93
add rdx, 4
lea rcx, [rsp + 0x60]
call fcn.140074380
movsxd rdx, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
mov r8, qword [rax]
call fcn.1400e86e4
mov rdx, qword [rsp + 0x60]
jmp 0x14008c0a4
lea eax, [rsi - 2]
cmp eax, 1
ja 0x14008bf93
mov eax, dword [rdx]
sub eax, 2
cmp eax, 1
ja 0x14008bf93
mov rax, qword [rdx + 0x110]
cmp rax, qword [rbx]
jne 0x14008bf93
mov rax, qword [rdx + 0x118]
cmp rax, qword [rbx + 8]
je 0x14008c079
mov rdx, qword [rdx + 0x120]
test rdx, rdx
jne 0x14008bf22
movsxd rdx, dword [rsp + 0xd0]
mov eax, edi
shr eax, 8
mov r9d, edi
movzx r8d, al
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx r10d, dil
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r8d
lea r8, [0x14011f450]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0xc8]
shr r9d, 0x18
call fcn.1400192b0
lea rcx, [0x14018f1c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14018e770]
test rax, rax
je 0x14008c014
nop
cmp dword [rax + 0x10c], edi
je 0x14008c061
mov rax, qword [rax + 0x120]
test rax, rax
jne 0x14008c000
mov ecx, 0x128
call fcn.1400e8270
mov dword [rax], esi
mov dword [rax + 0x108], ebp
mov dword [rax + 0x10c], edi
test rbx, rbx
je 0x14008c03b
movups xmm0, xmmword [rbx]
movups xmmword [rax + 0x110], xmm0
mov rdx, qword [0x14018e770]
lea rcx, [0x140089c30]
mov qword [rax + 0x120], rdx
mov r8, rax
xor edx, edx
mov qword [0x14018e770], rax
call fcn.1400f7c20
lea rcx, [0x14018f1c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
add rdx, 4
lea rcx, [rsp + 0x68]
call fcn.140074380
movsxd rdx, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
mov r8, qword [rax]
call fcn.1400e86e4
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14008c0c0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov al, 1
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret