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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov rax, qword [0x180066008]
xor rax, rsp
mov qword [rbp + 0x10], rax
test byte [0x180067c75], 4
mov rbx, r9
mov rsi, qword [rcx]
mov rdi, r8
mov r15, rdx
mov r14, rcx
mov r13, qword [rsi + 8]
jne 0x18003e55c
xor eax, eax
xor r12d, r12d
cmp word [rdi], 2
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], eax
jne 0x18003e58b
movups xmm0, xmmword [0x18004e950]
mov eax, reloc.WS2_32.dll_socket
mov dword [rbp - 0x74], r12d
mov word [rbp - 0x78], ax
movzx eax, word [rdi + 2]
mov word [rbp - 0x76], ax
movzx eax, byte [rdi + 4]
movups xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x64], al
movzx eax, byte [rdi + 5]
mov byte [rbp - 0x63], al
movzx eax, byte [rdi + 6]
mov byte [rbp - 0x62], al
movzx eax, byte [rdi + 7]
mov byte [rbp - 0x61], al
mov dword [rbp - 0x60], r12d
mov dword [rbp - 0x80], r12d
test byte [rsi], 4
jne 0x18001ce01
lea rax, [rbp - 0x78]
mov dword [rsp + 0x58], 0x1c
mov qword [rsp + 0x50], rax
movzx eax, byte [rbx + 0x34]
lea r10, [rbx + 0x38]
mov dword [rsp + 0x68], eax
mov ecx, r12d
lea rax, [rbp - 0x50]
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x78], rax
mov edx, 0x40
mov dword [rsp + 0x70], ecx
movzx eax, byte [rsi]
and al, 4
cmp word [r15], 2
jne 0x18001ce21
test al, al
jne 0x18001ce10
mov eax, dword [r15 + 0x18]
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x3c], eax
mov eax, dword [r15 + 4]
mov dword [rbp - 0x40], eax
mov dword [rbp - 0x48], r12d
mov dword [rbp - 0x44], shutdown
mov qword [rbp - 0x50], 0x18
mov dword [rsp + 0x70], 0x30
mov rdx, qword [rcx]
add rdx, 7
and rdx, 0xfffffffffffffff8
add rdx, rcx
lea rcx, [rbp - 0x20]
lea rax, [rdx + 0x10]
cmp rax, rcx
ja 0x18003e5a7
mov dword [rdx + 8], r12d
mov dword [rdx + 0xc], 0x32
mov qword [rdx], shutdown
mov eax, dword [rbx + 0x30]
mov dword [rdx + 0x10], eax
cmp word [rbx + 0x2c], r12w
jbe 0x18001cd12
mov eax, dword [rsp + 0x70]
add eax, 0x18
mov dword [rsp + 0x70], eax
mov ecx, eax
mov rax, qword [rdx]
add rcx, qword [rsp + 0x78]
add rax, 7
and rax, 0xfffffffffffffff8
add rdx, rax
lea rax, [rdx + 0x10]
cmp rax, rcx
cmova rdx, r12
mov dword [rdx + 8], shutdown
mov dword [rdx + 0xc], 2
mov qword [rdx], shutdown
movzx eax, word [rbx + 0x2c]
mov dword [rdx + 0x10], eax
xorps xmm0, xmm0
lea r9, [rbp - 0x58]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
test byte [rsi], 3
mov rcx, qword [r14 + 8]
jne 0x18003e5af
mov rax, qword [r13 + 0x18]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], r12
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [0x18004e538]
cmp eax, 0xffffffff
je 0x18003e5d2
mov rcx, qword [r14]
test byte [rcx], 3
jne 0x18003e62c
cmp word [rbx + 0x2c], r12w
mov edi, 0x60
mov r14, qword [rbx + 0x20]
mov eax, 0x40
cmovbe edi, eax
mov r13d, 0x100
add rdi, r14
xor sil, sil
cmp byte [rbx + 0x34], sil
jbe 0x18001cdbd
movzx eax, sil
mov rcx, rdi
add rax, 4
add rax, rax
mov r15, qword [rbx + rax*8]
call qword [sym.imp.KERNEL32.dll_QueryDepthSList]
cmp ax, r13w
jae 0x18003e64b
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
inc sil
cmp sil, byte [rbx + 0x34]
jb 0x18001cd86
lea rcx, [r14 + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDepthSList]
cmp ax, r13w
jae 0x18001ce87
mov rdx, rbx
lea rcx, [r14 + 0x20]
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
mov eax, r12d
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.180028c10
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
jmp 0x18001cc22
mov dword [rsp + 0x70], 0x18
lea rdx, [rbp - 0x50]
jmp 0x18001ccac
test al, al
je 0x18001ce32
add ecx, 0x18
lea rdx, [rbp - 0x50]
mov dword [rsp + 0x70], ecx
jmp 0x18001ce7b
mov eax, dword [r15 + 0x18]
lea rcx, [rbp - 0x50]
movups xmm0, xmmword [r15 + 8]
mov dword [rsp + 0x70], edx
mov dword [rbp - 0x30], eax
movaps xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x48], 0x29
mov dword [rbp - 0x44], shutdown
mov qword [rbp - 0x50], 0x24
mov rdx, qword [rcx]
add rdx, 7
and rdx, 0xfffffffffffffff8
add rdx, rcx
lea rcx, [rbp - 0x10]
lea rax, [rdx + 0x10]
cmp rax, rcx
ja 0x18001ce9e
mov dword [rdx + 8], 0x29
jmp 0x18001ccb0
mov rcx, qword [0x180069238]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001cdde
mov rdx, r12
jmp 0x18001ce7b
movzx eax, word [r9 + 0x2c]
mov r8, rsi
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], ax
movzx eax, byte [r9 + 0x34]
mov r9d, dword [r9 + 0x28]
mov byte [rsp + 0x20], al
call fcn.18004c4d4
nop
jmp 0x18001cba7
movups xmm0, xmmword [rdi]
mov eax, dword [rdi + 0x18]
movsd xmm1, qword [rdi + 0x10]
movups xmmword [rbp - 0x78], xmm0
mov dword [rbp - 0x60], eax
movsd qword [rbp - 0x68], xmm1
jmp 0x18001cc04
mov rdx, r12
jmp 0x18001ccac
movzx r8d, byte [rbx + 0x34]
mov rdx, r10
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_WSASend]
nop
jmp 0x18001cd49
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x3e5
je 0x18001cdde
test byte [0x180067c75], 8
je 0x18003e60c
mov r8, qword [r14]
lea rax, str.WSASendMsg
mov r9d, edi
mov qword [rsp + 0x20], rax
lea rdx, [0x180056a58]
call fcn.180042260
test edi, edi
jle 0x18003e61b
movzx edi, di
or edi, 0x80070000
test edi, edi
jns 0x18003e625
mov rcx, rbx
call fcn.18004bd7c
mov eax, edi
jmp 0x18001cde1
mov rax, qword [rcx + 8]
xor r8d, r8d
mov r9d, dword [rbx + 0x28]
mov rdx, qword [rcx + 0x50]
mov rax, qword [rax + 0x60]
call qword [0x18004e538]
nop
jmp 0x18001cd5e
mov rcx, qword [0x180069238]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
jmp 0x18001cdb4