Function at 0x18009d340
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rdi
sub rsp, 0x58
mov rdi, qword [r8 + 0xe8]
mov rbp, r8
mov qword [rax + 0x10], rbx
mov ebx, ecx
mov qword [rax - 0x28], r13
xor r13d, r13d
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], rdi
test ecx, ecx
jne 0x18009d5ec
mov qword [rax - 0x18], rsi
mov rsi, qword [r8 + 0x20]
mov qword [rax - 0x20], r12
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
movaps xmmword [rax - 0x48], xmm6
test rsi, rsi
je 0x18009d59f
movdqa xmm6, xmmword [0x1801374d0]
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rsi + 0x18]
lea r15, [rsi + 0x18]
test rax, rax
je 0x18009d3d3
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18009d3c4
inc rbx
jmp 0x18009d3d5
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x18009d3e5
mov r12d, reloc.WS2_32.dll_recv
jmp 0x18009d3f4
cmp eax, 0x17
jne 0x18009d58d
mov r12d, 0x1c
cmp qword [rsi + 0x20], 0
je 0x18009d58d
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x18009d58d
cmp rax, r12
jb 0x18009d58d
lea rcx, [rbx + 0x30]
add rcx, r12
call qword [fcn.1800ec4d0]
mov rdi, rax
test rax, rax
je 0x18009d5ae
mov ecx, dword [rsi]
lea r14, [rax + 0x18]
mov dword [rax], ecx
mov r8, r12
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rdi + 0x30]
mov dword [rax + 0x10], r12d
xor eax, eax
mov qword [r14], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.18011f220
test rbx, rbx
je 0x18009d56d
mov rcx, qword [rdi + 0x20]
xor edx, edx
add rcx, r12
mov qword [r14], rcx
test rbx, rbx
je 0x18009d565
cmp rbx, 0x20
jb 0x18009d550
mov r9, qword [r15]
lea r8, [rcx - 1]
lea rax, [rbx - 1]
add r8, rbx
lea rax, [r9 + rax*2]
cmp rcx, rax
ja 0x18009d4b1
cmp r8, r9
jae 0x18009d550
cmp rcx, r15
ja 0x18009d4bf
cmp r8, r15
jae 0x18009d550
cmp rcx, r14
ja 0x18009d4cd
cmp r8, r14
jae 0x18009d550
mov rax, rbx
and rax, 0xffffffffffffffe0
mov r8d, 0x20
nop word [rax + rax]
movdqu xmm0, xmmword [r8 + r9 - 0x20]
movdqu xmm1, xmmword [r8 + r9 - 0x10]
lea r8, [r8 + 0x40]
andps xmm0, xmm6
andps xmm1, xmm6
packuswb xmm0, xmm0
movq qword [rcx + rdx], xmm0
movdqu xmm0, xmmword [r8 + r9 - 0x40]
packuswb xmm1, xmm1
movq qword [rcx + rdx + 8], xmm1
andps xmm0, xmm6
movdqu xmm1, xmmword [r8 + r9 - 0x30]
packuswb xmm0, xmm0
movq qword [rcx + rdx + 0x10], xmm0
andps xmm1, xmm6
packuswb xmm1, xmm1
movq qword [rcx + rdx + 0x18], xmm1
add rdx, 0x20
cmp rdx, rax
jb 0x18009d4e0
cmp rdx, rbx
jae 0x18009d565
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r15]
mov rcx, qword [r14]
movzx eax, byte [rax + rdx*2]
mov byte [rdx + rcx], al
inc rdx
cmp rdx, rbx
jb 0x18009d550
mov rax, qword [rdi + 0x18]
mov byte [rbx + rax], 0
mov rax, qword [rsp + 0x80]
test r13, r13
cmove r13, rdi
test rax, rax
je 0x18009d585
mov qword [rax + 0x28], rdi
mov qword [rsp + 0x80], rdi
mov rsi, qword [rsi + 0x40]
test rsi, rsi
jne 0x18009d3b0
test r13, r13
jne 0x18009d5c0
mov ebx, 0x2af9
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x18009d5c4
mov rcx, r13
mov ebx, 8
call fcn.1800c13e0
xor r13d, r13d
jmp 0x18009d5c4
mov ebx, dword [rsp + 0x70]
mov rdi, qword [rsp + 0x88]
movaps xmm6, xmmword [rsp + 0x20]
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov qword [rbp + 0xb0], r13
mov rcx, qword [rbp + 0x20]
mov r13, qword [rsp + 0x40]
test rcx, rcx
je 0x18009d608
call qword [0x1802c7eb8]
mov qword [rbp + 0x20], 0
test ebx, ebx
je 0x18009d638
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x18009d632
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0xa8], eax
test eax, eax
jne 0x18009d638
mov dword [rbp + 0xa8], 8
jmp 0x18009d638
mov dword [rbp + 0xa8], ebx
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbp + 0x80], 0
mov rbx, qword [rsp + 0x78]
je 0x18009d6c4
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x18009d673
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbp + 0x78]
call qword [fcn.1800ec4c0]
mov rcx, qword [rbp + 0x88]
call qword [fcn.1800ec4c0]
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x18009d691
call fcn.1800c13e0
mov rcx, qword [rbp + 0xa0]
cmp rcx, 0xffffffffffffffff
je case.default.0x18009d6bd
call qword [sym.imp.WS2_32.dll_closesocket]
xor edx, edx
mov r8d, 0xf0
mov rcx, rbp
call fcn.18011f8c0
mov rcx, rdi
add rsp, 0x58
pop rdi
pop rbp
jmp qword [fcn.1800ec4c0]
mov rcx, qword [rbp + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x18009d6fa
xor r9d, r9d
mov byte [rsp + 0x70], 1
mov r8d, 1
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x18009d6fa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0xa8], eax
mov rcx, qword [rbp + 0x78]
mov dword [rbp + 0x80], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi]
test rcx, rcx
je 0x18009d71c
call qword [sym.imp.KERNEL32.dll_SetEvent]
add rsp, 0x58
pop rdi
pop rbp
ret