Function at 0x180018410
Capabilities:
Create thread

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov rdi, r9
mov r12, r8
mov rbx, rdx
mov r14, qword [rbp + 0xa0]
cmp ecx, 1
je 0x180018463
cmp ecx, 2
jne 0x1800185b6
mov rcx, qword [r12]
mov rdx, qword [r12 + 8]
mov r9, qword [r14]
mov r8, rdi
call fcn.180018810
mov rsi, qword [r12 + 8]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
jb 0x180018479
mov rcx, qword [rdi]
mov r15, qword [r12]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rax
mov rcx, qword [r14]
mov qword [rbp - 0x10], rcx
movaps xmm0, xmmword [0x18018bec0]
movaps xmmword [rbp - 0x30], xmm0
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], reloc.WS2_32.dll_ntohs
lea rdx, [rax + rsi]
add rdx, 0x20
cmp rdx, 0x10
jb 0x1800184cc
mov rcx, rbp
call fcn.180008760
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x20], 2
lea rax, [rbp - 0x30]
mov qword [rbp + 0x28], rax
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], rsi
lea rcx, [rbp - 0x48]
mov rdx, rbp
lea r8, [rbp - 0x40]
lea r9, [rbp + 0x20]
call fcn.1800088a0
mov ecx, Ordinal_41
call fcn.1800c38b8
mov rsi, rax
movaps xmm0, xmmword [rbp]
movaps xmm1, xmmword [rbp + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x18015e0d0]
movaps xmmword [rbp + 0x10], xmm0
mov byte [rbp], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x1800189c0]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call fcn.180136d40
mov qword [rbp + 0x20], rax
test rax, rax
je 0x180018661
cmp dword [rbp + 0x28], 0
je 0x180018676
movups xmm0, xmmword [rbp + 0x20]
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call fcn.1800c52b8
test eax, eax
jne 0x180018680
mov rax, qword [rbp + 0x18]
cmp rax, 0xf
jbe 0x1800185b6
mov rcx, qword [rbp]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1800185b1
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x180018687
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1800c38fc
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x1800185c4
mov rdi, qword [rdi]
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rax
mov rcx, qword [r14]
mov qword [rbp - 0x10], rcx
movaps xmm0, xmmword [0x18018bec0]
movaps xmmword [rbp - 0x30], xmm0
mov rdi, qword [r12]
mov rsi, qword [r12 + 8]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
lea rdx, [rax + rsi]
add rdx, 0x20
cmp rdx, 0x10
mov qword [rbp + 0x30], rbx
jb 0x180018623
mov rcx, rbx
call fcn.180008760
mov rbx, qword [rbp + 0x30]
mov qword [rbx + 0x10], 0
mov qword [rbp], 2
lea rax, [rbp - 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], rsi
lea rcx, [rbp - 0x40]
lea r8, [rbp + 0x20]
mov r9, rbp
mov rdx, rbx
call fcn.1800088a0
nop
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 0x30], rsi
mov dword [rbp + 0x28], 0
mov ecx, 6
call fcn.1800c4584
mov ecx, 1
call fcn.1800c4584
mov ecx, eax
call fcn.1800c4548
call fcn.180139754
int3