Function at 0x18001bea0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push r14
sub rsp, 0xc0
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18012db10]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r14, rcx
cmp edx, 1
jne 0x18001c103
call fcn.18001a260
test al, al
jne 0x18001beee
xor eax, eax
jmp 0x18001c108
mov cl, 1
call fcn.18008e7e4
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x38]
call fcn.180048840
nop
lea r8, [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.180002fe0
mov rsi, rax
mov qword [rsp + 0x90], rax
call fcn.18001c140
mov qword [rsp + 0x78], rax
cmp word [rax], 0
jne 0x18001bf3c
xor ebx, ebx
mov ecx, ebx
or rdi, 0xffffffffffffffff
jmp 0x18001bf4f
or rdi, 0xffffffffffffffff
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], 0
jne 0x18001bf43
xor ebx, ebx
mov qword [rsp + 0x20], rcx
mov r9, rax
mov r8, qword [rsi + 0x10]
xor edx, edx
mov rcx, rsi
call fcn.180003020
test eax, eax
sete sil
cmp qword [rsp + 0x70], 8
jb 0x18001bf7d
mov rcx, qword [rsp + 0x58]
call fcn.180071ef0
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
cmp qword [rsp + 0x50], 8
jb 0x18001bfa2
mov rcx, qword [rsp + 0x38]
call fcn.180071ef0
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x38], bx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18001bfe0
mov rax, qword [rcx]
call qword [rax + select]
mov qword [rsp + 0x80], rax
test rax, rax
je 0x18001bfe0
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
test sil, sil
je 0x18001bfef
mov eax, 1
jmp 0x18001c108
mov qword [0x18013cfd8], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x18013cfd0], eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.18001c230
cmp word [rax], 0
jne 0x18001c01b
mov r8, rbx
jmp 0x18001c02b
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x18001c020
mov rdx, rax
lea rcx, [0x1801302f8]
call fcn.1800041a0
mov rcx, r14
call fcn.180049270
nop
call fcn.180002590
test al, al
je 0x18001c052
call fcn.180038280
nop
mov dword [rsp + 0x98], ebx
xor eax, eax
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x18001b8d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.1800635f0
nop
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x18001c0b1
mov rbx, qword [rax]
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rbx, qword [rsp + 0xa8]
test rbx, rbx
je 0x18001c103
mov eax, edi
lock xadd dword [rbx + 8], eax
dec eax
jne 0x18001c103
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
dec edi
jne 0x18001c103
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x18001c103
mov eax, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180093670
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret