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

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14032f0c0]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor r13d, r13d
lea r14, [rbp - 0x40]
mov dword [rsp + 0x38], r13d
mov esi, r13d
mov byte [rsp + 0x30], sil
mov r15, rcx
mov qword [rsp + 0x48], r14
mov r12d, 0x3e8
test rcx, rcx
je 0x1401882ab
cmp dword [rcx], 0xbab1e
jne 0x1401882ab
cmp byte [rcx + 0x1ab], sil
je 0x140187fe1
lea eax, [r13 + 8]
jmp 0x1401881b3
xorps xmm0, xmm0
mov qword [rsp + 0x1a8], rbx
mov rbx, qword [rcx + 8]
xor eax, eax
mov qword [rbp - 0x80], rax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
test rbx, rbx
je 0x14018802e
nop word [rax + rax]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140187e40
add esi, dword [rsp + 0x78]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140188010
mov dword [rsp + 0x38], esi
lea rdx, [rsp + 0x34]
mov rcx, r15
call fcn.14018b0f0
cmp dword [rsp + 0x34], 0x3e7
lea eax, [rsi + 1]
cmovbe r12d, dword [rsp + 0x34]
mov dword [rsp + 0x40], r12d
cmp eax, 0xa
jbe 0x14018807d
mov ecx, eax
shl rcx, 4
call qword [fcn.14022b0a0]
mov qword [rsp + 0x48], rax
mov r14, rax
test rax, rax
jne 0x140188078
lea eax, [r14 + 3]
jmp 0x1401881ab
mov byte [rsp + 0x30], 1
xor ecx, ecx
mov qword [rsp + 0x1b0], rdi
mov r12d, ecx
test esi, esi
je 0x1401881fc
mov r13, qword [r15 + 8]
test r13, r13
je 0x1401881fc
nop
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.140187e40
xor ecx, ecx
mov edi, ecx
cmp dword [rsp + 0x78], ecx
jbe 0x14018817b
nop dword [rax + rax]
mov rax, qword [rsp + rdi*8 + 0x50]
mov esi, ecx
mov ebx, r12d
inc r12d
shl rbx, 4
add rbx, r14
mov qword [rbx], rax
mov word [rbx + 8], cx
test byte [rsp + rdi + 0x7c], 1
je 0x1401880ed
mov esi, 0x29
mov word [rbx + 8], 0x300
test byte [rsp + rdi + 0x7c], 2
je 0x14018814d
mov r14, qword [rsp + rdi*8 + 0x50]
lea rax, [rsp + 0x34]
mov rcx, r14
mov dword [rsp + 0x34], 4
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1008
or esi, 0x32
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140188143
cmp dword [rsp + 0x3c], 1
jne 0x140188143
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
or word [rbx + 8], 0x10
mov r14, qword [rsp + 0x48]
mov rdx, qword [r15 + 0x198]
mov r8d, esi
mov rcx, qword [rsp + rdi*8 + 0x50]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x1401881d8
mov eax, dword [rsp + 0x78]
inc rdi
mov ecx, 0
cmp rdi, rax
jb 0x1401880c0
mov r13, qword [r13 + 0x10]
test r13, r13
jne 0x1401880a0
test r12d, r12d
je 0x1401881fc
xor r8d, r8d
mov edx, r12d
mov rcx, r14
call fcn.1401a6f30
test eax, eax
jns 0x1401881ef
lea eax, [r13 + 0xc]
mov rdi, qword [rsp + 0x1b0]
mov rbx, qword [rsp + 0x1a8]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1401f4d70
mov rsi, qword [rsp + 0x1b8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
cmp byte [rsp + 0x30], 0
je 0x1401881e8
mov rcx, r14
call qword [fcn.140229280]
mov eax, 4
jmp 0x1401881a3
jle 0x1401881fa
lea rsi, [r15 + 0x198]
jmp 0x140188227
xor ecx, ecx
mov r9d, dword [rsp + 0x40]
lea rdx, [r15 + 0x198]
xor r8d, r8d
mov dword [rsp + 0x20], ecx
lea ecx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [rsp + 0x38], 0
lea rsi, [r15 + 0x198]
je 0x14018828b
mov rdi, qword [r15 + 8]
test rdi, rdi
je 0x14018828b
xor r13d, r13d
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140187e40
mov rbx, r13
cmp dword [rsp + 0x78], ebx
jbe 0x140188282
nop dword [rax]
mov rcx, qword [rsp + rbx*8 + 0x50]
lea r8, [rbp - 0x78]
xor edx, edx
mov dword [rbp - 0x78], r13d
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov rdx, qword [rsi]
xor r8d, r8d
mov rcx, qword [rsp + rbx*8 + 0x50]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov eax, dword [rsp + 0x78]
inc rbx
cmp rbx, rax
jb 0x140188250
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x140188233
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [rsp + 0x30], 0
je 0x1401882a4
mov rcx, r14
call qword [fcn.140229280]
xor eax, eax
jmp 0x1401881a3
mov eax, 1
jmp 0x1401881b3