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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x20]
mov ecx, Ordinal_32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0x1f
je 0x1400ca6cf
jmp 0x1400cab66
mov rax, qword [rsp + 0x78]
add rax, 0x1cb8
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x1eb8], rax
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca729
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
mov byte [rax], 0xff
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
inc rax
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x1eb8], rax
xor eax, eax
test eax, eax
jne 0x1400ca6e6
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca772
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
mov byte [rax], 0xfa
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
inc rax
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x1eb8], rax
xor eax, eax
test eax, eax
jne 0x1400ca72f
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca7bb
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
mov byte [rax], Ordinal_32
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
inc rax
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x1eb8], rax
xor eax, eax
test eax, eax
jne 0x1400ca778
mov rax, qword [rsp + 0x78]
movzx ecx, word [rax + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0x78]
movzx ecx, word [rax + 0x1caa]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x54], ax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca857
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x1eb8]
mov rdx, qword [rsp + 0x68]
movzx eax, byte [rdx + rax]
mov byte [rcx], al
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
inc rax
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x1eb8], rax
xor eax, eax
test eax, eax
jne 0x1400ca803
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca8b1
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x1eb8]
mov rdx, qword [rsp + 0x68]
movzx eax, byte [rdx + rax]
mov byte [rcx], al
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
inc rax
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x1eb8], rax
xor eax, eax
test eax, eax
jne 0x1400ca85d
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca90b
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x1eb8]
mov rdx, qword [rsp + 0x70]
movzx eax, byte [rdx + rax]
mov byte [rcx], al
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
inc rax
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x1eb8], rax
xor eax, eax
test eax, eax
jne 0x1400ca8b7
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca965
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x1eb8]
mov rdx, qword [rsp + 0x70]
movzx eax, byte [rdx + rax]
mov byte [rcx], al
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
inc rax
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x1eb8], rax
xor eax, eax
test eax, eax
jne 0x1400ca911
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca9ae
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
mov byte [rax], 0xff
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
inc rax
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x1eb8], rax
xor eax, eax
test eax, eax
jne 0x1400ca96b
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca9f7
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
mov byte [rax], 0xf0
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0x1eb8]
inc rax
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x1eb8], rax
xor eax, eax
test eax, eax
jne 0x1400ca9b4
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x1eb8]
mov qword [rax + 0x1ec0], rcx
mov rax, qword [rsp + 0x78]
add rax, 0x1cb8
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x1eb8], rax
xor eax, eax
test eax, eax
jne 0x1400ca9fd
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x1eb8]
mov rax, qword [rax + 0x1ec0]
sub rax, rcx
sub rax, 2
mov rcx, qword [rsp + 0x78]
add rcx, 0x1cba
mov r9, rax
mov r8, rcx
mov edx, 0x3e
mov rcx, qword [rsp + 0xa0]
call fcn.1400c9a20
mov rax, qword [rsp + 0x78]
add rax, 0x1cb8
mov ecx, 8
imul rcx, rcx, 0
xor r9d, r9d
mov r8d, 3
mov rdx, rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + rcx + 0x1e8]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jge 0x1400caadd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
mov r8d, dword [rsp + 0x28]
lea rdx, [0x140232ba8]
mov rcx, qword [rsp + 0xa0]
call fcn.14007e3f0
mov rax, qword [rsp + 0x78]
add rax, 0x1cbb
mov r8d, 4
mov rdx, rax
mov rcx, qword [rsp + 0xa0]
call fcn.1400cb360
mov rax, qword [rsp + 0x78]
add rax, 0x1cbf
mov ecx, 8
imul rcx, rcx, 0
xor r9d, r9d
mov r8d, 2
mov rdx, rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + rcx + 0x1e8]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jge 0x1400cab66
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
mov r8d, dword [rsp + 0x28]
lea rdx, str.Sending_data_failed___d_
mov rcx, qword [rsp + 0xa0]
call fcn.14007e3f0
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400f3400
add rsp, 0x90
pop rdi
ret