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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x50
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
test rdx, rdx
je 0x1400310dd
test rbx, rbx
je 0x1400310dd
cmp dword [rcx + 0x74], 0
je 0x140030ed8
mov eax, dword [rcx + 0x8c]
shr eax, 2
not eax
test al, 1
je 0x140030f20
nop
or r8d, 0xffffffff
xor edx, edx
xor ecx, ecx
call fcn.140033c70
cmp eax, 0xffffffff
je 0x140030f2b
cmp dword [rdi + 0x74], 0
jne 0x140030ec0
mov qword [rsp + 0x60], rsi
mov esi, dword [rdi + 0x78]
test esi, esi
je 0x140030f3e
call fcn.140084fc0
mov ecx, esi
mov r9, rax
call fcn.1400303e0
mov dword [r9], eax
lea rcx, str.ERROR:_d__io:_p
mov edx, dword [rdi + 0x78]
mov r8, rdi
call fcn.140046c70
or eax, 0xffffffff
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.140084fc0
mov dword [rax], inet_ntoa
or eax, 0xffffffff
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rax, qword [rdi + 0x60]
mov ecx, 0x11800
mov dword [rsp + 0x40], ecx
test rax, rax
jne 0x140030f8a
call fcn.140088334
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x140030f7d
call fcn.140084fc0
mov dword [rax], reloc.WS2_32.dll_inet_ntoa
call fcn.140084fc0
mov r8, rdi
lea rcx, str.send___ERROR:_d__io:_p
mov edx, dword [rax]
jmp 0x140030f03
mov ecx, dword [rsp + 0x40]
mov dword [rdi + 0x68], ecx
mov qword [rdi + 0x60], rax
jmp 0x140030f8f
mov qword [rsp + 0x48], rax
cmp ecx, ebx
mov r8, rbp
cmovb ebx, ecx
mov rcx, rax
mov edx, ebx
mov r9d, ebx
mov dword [rsp + 0x40], ebx
call fcn.140028eb0
test eax, eax
je 0x140030fbf
mov edx, eax
lea rcx, str.memcpy_s_failed_with_error:__d.
call fcn.140046c70
jmp 0x140030f08
xor ebx, ebx
lea rcx, [0x140030e30]
mov qword [rsp + 0x30], rcx
lea rax, [rdi + 0x20]
mov rcx, qword [rdi + 0x90]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea r8d, [rbx + 1]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x140031042
mov eax, dword [rsp + 0x40]
lea edx, [rbx + 1]
xor ecx, ecx
mov dword [rdi + 0x6c], eax
mov dword [rdi + 0x74], 1
call qword [sym.imp.KERNEL32.dll_SleepEx]
cmp dword [rdi + 0x74], ebx
jne 0x140031023
cmp dword [rdi + 0x6c], ebx
jne 0x140031023
mov eax, dword [rsp + 0x40]
jmp 0x140030f0b
call fcn.140084fc0
mov rdx, rdi
lea rcx, str.send___ERROR:_Unexpected_IO_state__io:_p
mov dword [rax], 0x83
call fcn.140046c70
jmp 0x140030f08
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x1400310b0
mov eax, dword [rdi + 0x8c]
mov ecx, dword [rsp + 0x40]
shr eax, 2
not eax
mov dword [rdi + 0x74], 1
mov dword [rdi + 0x6c], ecx
test al, 1
je 0x1400310a9
nop dword [rax]
or r8d, 0xffffffff
xor edx, edx
xor ecx, ecx
call fcn.140033c70
cmp eax, 0xffffffff
jne 0x1400310a0
call fcn.140084fc0
cmp dword [rax], 4
jne 0x140030f08
cmp dword [rdi + 0x74], ebx
jne 0x140030f08
call fcn.140084fc0
mov dword [rax], ebx
cmp dword [rdi + 0x74], ebx
jne 0x140031070
mov ecx, dword [rsp + 0x40]
mov eax, ecx
jmp 0x140030f0b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400303e0
mov ebx, eax
call fcn.140084fc0
mov dword [rax], ebx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rdi
lea rcx, str.send___WSASend___ERROR:_d__io:_p
mov edx, eax
jmp 0x140030f03
call fcn.140084fc0
mov r9, rdi
lea rcx, str.send___ERROR_invalid_arguments__buf:_p__len:_d__io:_p
mov r8, rbx
mov rdx, rbp
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140046c70
mov rbx, qword [rsp + 0x68]
or eax, 0xffffffff
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret