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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rsi, rcx
xor r14d, r14d
lea rax, [rcx + 0xb0]
mov qword [rsp + 0x20], rax
nop dword [rax]
mov rdi, r14
mov eax, dword [rsi + 0x1f0]
test eax, eax
jle 0x14007b6de
lea rcx, [rsi + 0x190]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [rsi + 0x1c0]
cmp rdi, qword [rsi + 0x1c8]
je 0x14007b6b0
mov rax, qword [rdi + 8]
mov qword [rsi + 0x1c0], rax
mov qword [rax + 0x10], r14
test rdi, rdi
je 0x14007b6d1
jmp 0x14007b6c3
test rdi, rdi
je 0x14007b6d1
mov qword [rsi + 0x1c0], r14
mov qword [rsi + 0x1c8], r14
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
dec dword [rsi + 0x1b8]
lea rcx, [rsi + 0x190]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], rdi
test rdi, rdi
je 0x14007b920
mov ecx, dword [rdi + 0x30]
mov edx, dword [rdi + 0x28]
cmp ecx, edx
je 0x14007b78c
nop word [rax + rax]
sub ecx, edx
cmp ecx, dword [rsi + 0x44]
cmovge ecx, dword [rsi + 0x44]
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 0x14007b775
lea rcx, [rsi + 0x190]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [rsi + 0x1f0]
sub ecx, ebp
mov dword [rsi + 0x1f0], ecx
lea rcx, [rsi + 0x190]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsi]
mov rax, qword [rcx + 0x180]
mov r8d, ebp
mov rdx, qword [rdi + 0x28]
mov rcx, rsi
call rax
mov edx, ebp
mov rcx, rdi
call fcn.140079720
jmp 0x14007b77e
cmp ebp, 0xffffffff
je 0x14007b81b
mov ecx, dword [rdi + 0x30]
mov edx, dword [rdi + 0x28]
cmp ecx, edx
jne 0x14007b700
mov r8, qword [rsp + 0x20]
cmp qword [r8 + 0x18], 0
je 0x14007b7fe
mov r10d, r14d
cmp dword [r8 + 0x10], r14d
jbe 0x14007b7fe
nop dword [rax]
nop word [rax + rax]
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 0x14007b7fe
xor edx, edx
mov eax, r9d
div r11d
mov rax, qword [r8 + 0x18]
lea rdx, [rax + rdx*8]
cmp qword [rdx], 0
jne 0x14007b7e8
xor eax, eax
lock cmpxchg qword [rdx], rdi
je 0x14007b80c
lea ecx, [r9 + 1]
mov eax, r9d
lock cmpxchg dword [r8 + 0x58], ecx
inc r10d
cmp r10d, dword [r8 + 0x10]
jb 0x14007b7b0
mov rcx, rdi
call fcn.1400796c0
nop
jmp 0x14007b670
lea ecx, [r9 + 1]
mov eax, r9d
lock cmpxchg dword [r8 + 0x58], ecx
jmp 0x14007b807
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14007b8ca
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 0x14007b8ae
cmp dword [r8 + 0x10], 0
jbe 0x14007b8ae
nop word [rax + rax]
mov r9d, dword [r8 + 0x58]
mov eax, dword [r8 + 0x98]
mov ecx, r9d
sub ecx, eax
mov r10d, dword [r8 + 0x10]
cmp ecx, r10d
jge 0x14007b8ae
xor edx, edx
mov eax, r9d
div r10d
mov rax, qword [r8 + 0x18]
lea rdx, [rax + rdx*8]
cmp qword [rdx], 0
jne 0x14007b898
xor eax, eax
lock cmpxchg qword [rdx], rdi
je 0x14007b8bb
lea ecx, [r9 + 1]
mov eax, r9d
lock cmpxchg dword [r8 + 0x58], ecx
inc r14d
cmp r14d, dword [r8 + 0x10]
jb 0x14007b860
mov rcx, rdi
call fcn.1400796c0
nop
xor eax, eax
jmp 0x14007b925
lea ecx, [r9 + 1]
mov eax, r9d
lock cmpxchg dword [r8 + 0x58], ecx
jmp 0x14007b8b7
lea rcx, [rsi + 0x190]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0x1c0]
test rax, rax
je 0x14007b8f4
mov qword [rax + 0x10], rdi
mov rax, qword [rsi + 0x1c0]
mov qword [rdi + 8], rax
jmp 0x14007b903
mov qword [rdi + 0x10], r14
mov qword [rdi + 8], r14
mov qword [rsi + 0x1c8], rdi
mov qword [rsi + 0x1c0], rdi
inc dword [rsi + 0x1b8]
lea rcx, [rsi + 0x190]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x14007b920
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret