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

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov rsi, rcx
xor r14d, r14d
mov r15d, r14d
lea rax, [rcx + 0xb0]
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdi, r14
mov eax, dword [rsi + 0x210]
test eax, eax
jle 0x18001051e
lea rcx, [rsi + 0x1b0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [rsi + 0x1e0]
cmp rdi, qword [rsi + 0x1e8]
je 0x1800104eb
mov rax, qword [rdi + 8]
mov qword [rsi + 0x1e0], rax
mov qword [rax + 0x10], r14
jmp 0x1800104fe
test rdi, rdi
je 0x180010511
mov qword [rsi + 0x1e0], r14
mov qword [rsi + 0x1e8], r14
test rdi, rdi
je 0x180010511
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], r14
dec dword [rsi + 0x1d8]
lea rcx, [rsi + 0x1b0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x30], rdi
test rdi, rdi
je 0x18001076b
mov ecx, dword [rdi + 0x30]
mov edx, dword [rdi + 0x28]
cmp ecx, edx
je 0x1800105de
nop word [rax + rax]
sub ecx, edx
cmp ecx, dword [rsi + 0x48]
cmovge ecx, dword [rsi + 0x48]
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 0x1800105b2
lea rcx, [rsi + 0x1b0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rsi + 0x210]
sub eax, ebp
mov dword [rsi + 0x210], eax
lea rcx, [rsi + 0x1b0]
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.18000e240
jmp 0x1800105b7
cmp ebp, 0xffffffff
je 0x1800105c7
mov ecx, dword [rdi + 0x30]
mov edx, dword [rdi + 0x28]
cmp ecx, edx
jne 0x180010540
jmp 0x1800105de
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180010673
mov r15d, 1
test r15d, r15d
jne 0x180010715
mov r8, qword [rsp + 0x28]
cmp qword [r8 + 0x38], 0
je 0x180010665
mov ebx, r14d
mov r10d, r14d
cmp dword [r8 + 0x30], ebx
jbe 0x180010661
nop
mov r9d, dword [r8 + 0x78]
mov eax, dword [r8 + 0xb8]
mov ecx, r9d
sub ecx, eax
mov r11d, dword [r8 + 0x30]
cmp ecx, r11d
jge 0x180010661
xor edx, edx
mov eax, r9d
div r11d
mov rax, qword [r8 + 0x38]
lea rdx, [rax + rdx*8]
cmp qword [rdx], rbx
jne 0x180010637
xor eax, eax
lock cmpxchg qword [rdx], rdi
je 0x18001064f
lea ecx, [r9 + 1]
mov eax, r9d
lock cmpxchg dword [r8 + 0x78], ecx
inc r10d
cmp r10d, dword [r8 + 0x30]
jae 0x180010661
jmp 0x180010600
lea ecx, [r9 + 1]
mov eax, r9d
lock cmpxchg dword [r8 + 0x78], ecx
mov ebx, 1
test ebx, ebx
jne 0x18001066e
mov rcx, rdi
call fcn.18000e1d0
nop
jmp 0x1800104b0
mov dword [rsi + 0x18], 1
mov dword [rsi + 0x1c], 3
mov dword [rsi + 0x20], eax
mov dword [rsi + 0x24], 1
mov r8, qword [rsp + 0x28]
cmp qword [r8 + 0x38], 0
je 0x180010708
mov r10d, r14d
cmp dword [r8 + 0x30], r14d
jbe 0x180010703
mov r9d, dword [r8 + 0x78]
mov eax, dword [r8 + 0xb8]
mov ecx, r9d
sub ecx, eax
mov r11d, dword [r8 + 0x30]
cmp ecx, r11d
jge 0x180010703
xor edx, edx
mov eax, r9d
div r11d
mov rax, qword [r8 + 0x38]
lea rdx, [rax + rdx*8]
cmp qword [rdx], 0
jne 0x1800106d8
xor eax, eax
lock cmpxchg qword [rdx], rdi
je 0x1800106f0
lea ecx, [r9 + 1]
mov eax, r9d
lock cmpxchg dword [r8 + 0x78], ecx
inc r10d
cmp r10d, dword [r8 + 0x30]
jae 0x180010703
jmp 0x1800106a0
lea ecx, [r9 + 1]
mov eax, r9d
lock cmpxchg dword [r8 + 0x78], ecx
mov r14d, 1
test r14d, r14d
jne 0x180010711
mov rcx, rdi
call fcn.18000e1d0
nop
xor eax, eax
jmp 0x180010770
lea rcx, [rsi + 0x1b0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 0x1e0]
test rax, rax
je 0x18001073f
mov qword [rax + 0x10], rdi
mov rax, qword [rsi + 0x1e0]
mov qword [rdi + 8], rax
jmp 0x18001074e
mov qword [rdi + 0x10], r14
mov qword [rdi + 8], r14
mov qword [rsi + 0x1e8], rdi
mov qword [rsi + 0x1e0], rdi
inc dword [rsi + 0x1d8]
lea rcx, [rsi + 0x1b0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x18001076b
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret