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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, rcx
xor r14d, r14d
mov r15d, r14d
lea rax, [rcx + 0xb8]
mov qword [rsp + 0x20], rax
nop dword [rax]
mov rdi, r14
mov eax, dword [rsi + 0x1f8]
test eax, eax
jle 0x1402c8e3e
lea rcx, [rsi + 0x198]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [rsi + 0x1c8]
cmp rdi, qword [rsi + 0x1d0]
je 0x1402c8e10
mov rax, qword [rdi + 8]
mov qword [rsi + 0x1c8], rax
mov qword [rax + 0x10], r14
test rdi, rdi
je 0x1402c8e31
jmp 0x1402c8e23
test rdi, rdi
je 0x1402c8e31
mov qword [rsi + 0x1c8], r14
mov qword [rsi + 0x1d0], r14
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
dec dword [rsi + 0x1c0]
lea rcx, [rsi + 0x198]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], rdi
test rdi, rdi
je 0x1402c909b
mov rcx, qword [rsi + 0x40]
call qword [0x1404247f8]
mov ecx, dword [rdi + 0x30]
mov edx, dword [rdi + 0x28]
cmp ecx, edx
je 0x1402c8f0e
nop dword [rax]
nop dword [rax + rax]
sub ecx, edx
cmp ecx, dword [rsi + 0x50]
cmovge ecx, dword [rsi + 0x50]
xor r9d, r9d
mov r8d, ecx
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test eax, eax
jle 0x1402c8ee2
lea rcx, [rsi + 0x198]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rsi + 0x1f8]
sub eax, ebp
mov dword [rsi + 0x1f8], eax
lea rcx, [rsi + 0x198]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov r8d, ebp
mov rdx, qword [rdi + 0x28]
mov rcx, rsi
call qword [rax + 0x140]
mov edx, ebp
mov rcx, rdi
call fcn.1402c7250
jmp 0x1402c8ee7
cmp ebp, 0xffffffff
je 0x1402c8ef7
mov ecx, dword [rdi + 0x30]
mov edx, dword [rdi + 0x28]
cmp ecx, edx
jne 0x1402c8e70
jmp 0x1402c8f0e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1402c8fa3
mov r15d, 1
test r15d, r15d
jne 0x1402c9045
mov r8, qword [rsp + 0x20]
cmp qword [r8 + 0x18], 0
je 0x1402c8f95
mov ebx, r14d
mov r10d, r14d
cmp dword [r8 + 0x10], ebx
jbe 0x1402c8f91
nop
mov r9d, dword [r8 + 0x58]
mov eax, dword [r8 + 0x98]
mov ecx, r9d
sub ecx, eax
mov r11d, dword [r8 + 0x10]
cmp ecx, r11d
jge 0x1402c8f91
xor edx, edx
mov eax, r9d
div r11d
mov rax, qword [r8 + 0x18]
lea rdx, [rax + rdx*8]
cmp qword [rdx], rbx
jne 0x1402c8f67
xor eax, eax
lock cmpxchg qword [rdx], rdi
je 0x1402c8f7f
lea ecx, [r9 + 1]
mov eax, r9d
lock cmpxchg dword [r8 + 0x58], ecx
inc r10d
cmp r10d, dword [r8 + 0x10]
jb 0x1402c8f30
jmp 0x1402c8f91
lea ecx, [r9 + 1]
mov eax, r9d
lock cmpxchg dword [r8 + 0x58], ecx
mov ebx, 1
test ebx, ebx
jne 0x1402c8f9e
mov rcx, rdi
call fcn.1402c7240
nop
jmp 0x1402c8dd0
mov dword [rsi + 0x18], 1
mov dword [rsi + 0x1c], 3
mov dword [rsi + 0x20], eax
mov dword [rsi + 0x24], 1
mov r8, qword [rsp + 0x20]
cmp qword [r8 + 0x18], 0
je 0x1402c9038
mov r10d, r14d
cmp dword [r8 + 0x10], r14d
jbe 0x1402c9033
mov r9d, dword [r8 + 0x58]
mov eax, dword [r8 + 0x98]
mov ecx, r9d
sub ecx, eax
mov r11d, dword [r8 + 0x10]
cmp ecx, r11d
jge 0x1402c9033
xor edx, edx
mov eax, r9d
div r11d
mov rax, qword [r8 + 0x18]
lea rdx, [rax + rdx*8]
cmp qword [rdx], 0
jne 0x1402c9008
xor eax, eax
lock cmpxchg qword [rdx], rdi
je 0x1402c9020
lea ecx, [r9 + 1]
mov eax, r9d
lock cmpxchg dword [r8 + 0x58], ecx
inc r10d
cmp r10d, dword [r8 + 0x10]
jb 0x1402c8fd0
jmp 0x1402c9033
lea ecx, [r9 + 1]
mov eax, r9d
lock cmpxchg dword [r8 + 0x58], ecx
mov r14d, 1
test r14d, r14d
jne 0x1402c9041
mov rcx, rdi
call fcn.1402c7240
nop
xor eax, eax
jmp 0x1402c90a0
lea rcx, [rsi + 0x198]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0x1c8]
test rax, rax
je 0x1402c906f
mov qword [rax + 0x10], rdi
mov rax, qword [rsi + 0x1c8]
mov qword [rdi + 8], rax
jmp 0x1402c907e
mov qword [rdi + 0x10], r14
mov qword [rdi + 8], r14
mov qword [rsi + 0x1d0], rdi
mov qword [rsi + 0x1c8], rdi
inc dword [rsi + 0x1c0]
lea rcx, [rsi + 0x198]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x1402c909b
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret