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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rax, qword [rsp + 0xb8]
mov r13d, dword [rsp + 0xb0]
lea rbp, [rdx + 0x40]
mov qword [rdx + 0x70], rax
mov rdi, rcx
mov rsi, rdx
mov dword [rdx + 8], 3
mov rbx, r8
mov r12, r9
mov qword [rdx + 0x80], r8
mov qword [rdx + 0x40], 0
mov qword [rdx + 0x48], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
test byte [r8 + 0x5a], 8
je 0x1400c1748
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0xa0], rax
test rax, rax
je 0x1400c1a09
mov qword [rsi + 0xa8], 0xffffffffffffffff
or rax, 1
mov qword [rsi + 0x58], rax
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x28], rbp
mov r8d, r13d
mov qword [rsp + 0x30], 0
mov rdx, r12
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x1400c1810
test byte [rbx + 0x5a], 2
je 0x1400c18b8
mov qword [rsi + 0x60], 0
mov eax, dword [rbx + 0x7c]
add dword [rbx + 0x78], 1
lea edx, [rax + 1]
add dword [rbx + 0x100], 1
mov dword [rbx + 0x7c], edx
test eax, eax
je 0x1400c1950
test edx, edx
jg 0x1400c17ca
mov r8d, 0x3b2
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e062]
call qword [sym.imp.msvcrt.dll__assert]
add dword [rdi + 0x20], 1
mov qword [rsi + 0x68], 0
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x1400c189d
mov rax, qword [rax + 0x68]
mov qword [rsi + 0x68], rax
mov rax, qword [rdi + 0x48]
mov qword [rax + 0x68], rsi
xor eax, eax
mov qword [rdi + 0x48], rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400c18b8
mov qword [rsi + 0x60], 0
mov eax, dword [rbx + 0x7c]
add dword [rbx + 0x78], 1
lea edx, [rax + 1]
add dword [rbx + 0x100], 1
mov dword [rbx + 0x7c], edx
test eax, eax
je 0x1400c1980
test edx, edx
jg 0x1400c1863
mov r8d, 0x3c7
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e062]
call qword [sym.imp.msvcrt.dll__assert]
add dword [rdi + 0x20], 1
mov rbx, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbx
test eax, eax
jle 0x1400c1a00
call rbx
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rsi + 0x40], rax
mov qword [rsi + 0x68], 0
mov rax, qword [rdi + 0x48]
test rax, rax
jne 0x1400c17e3
xor eax, eax
mov qword [rsi + 0x68], rsi
mov qword [rdi + 0x48], rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov edx, r13d
mov rcx, r12
call fcn.1400a9050
mov qword [rsi + 0x60], rax
mov eax, dword [rbx + 0x7c]
add dword [rbx + 0x78], 1
lea edx, [rax + 1]
add dword [rbx + 0x100], 1
mov dword [rbx + 0x7c], edx
test eax, eax
jne 0x1400c1927
mov eax, dword [rbx + 0x58]
test al, 4
je 0x1400c1910
add dword [rdi + 0x20], 1
mov rax, qword [rsi + 0x60]
add qword [rbx + 0x60], rax
test byte [rbx + 0x5a], 8
jne 0x1400c19b0
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov edx, eax
or edx, 4
mov dword [rbx + 0x58], edx
test al, 8
je 0x1400c18e6
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
mov edx, dword [rbx + 0x7c]
test edx, edx
jg 0x1400c18e6
mov r8d, 0x3b9
lea rdx, str.src_win_tcp.c
lea rcx, [0x14029e062]
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400c18e6
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x1400c17ca
mov edx, eax
or edx, 4
mov dword [rbx + 0x58], edx
test al, 8
je 0x1400c17ca
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
mov edx, dword [rbx + 0x7c]
jmp 0x1400c17ac
mov eax, dword [rbx + 0x58]
test al, 4
jne 0x1400c1863
mov edx, eax
or edx, 4
mov dword [rbx + 0x58], edx
test al, 8
je 0x1400c1863
mov rax, qword [rbx + 8]
add dword [rax + 8], 1
mov edx, dword [rbx + 0x7c]
jmp 0x1400c1845
mov dword [rsp + 0x28], 0xc
mov rdx, qword [rsi + 0xa0]
lea rcx, [rsi + 0xa8]
mov r9, rsi
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x1400bfce0]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x1400c18fc
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
call rbx
test eax, eax
jg 0x1400c1878
nop word [rax + rax]
call rbx
cdqe
jmp 0x1400c1884
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x14029e208]
mov ecx, eax
call fcn.1400ab420
nop
nop