Function at 0x1400ca670
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 0x1400ca6df
jmp 0x1400cab76
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 0x1400ca739
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 0x1400ca6f6
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca782
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 0x1400ca73f
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca7cb
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 0x1400ca788
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 0x1400ca867
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 0x1400ca813
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca8c1
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 0x1400ca86d
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca91b
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 0x1400ca8c7
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca975
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 0x1400ca921
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400ca9be
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 0x1400ca97b
mov rax, qword [rsp + 0x78]
add rax, 0x1eb8
mov rcx, qword [rsp + 0x78]
cmp qword [rcx + 0x1eb8], rax
jae 0x1400caa07
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 0x1400ca9c4
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 0x1400caa0d
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.1400c9a30
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 0x1400caaed
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.14007e400
mov rax, qword [rsp + 0x78]
add rax, 0x1cbb
mov r8d, 4
mov rdx, rax
mov rcx, qword [rsp + 0xa0]
call fcn.1400cb370
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 0x1400cab76
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.14007e400
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400f3410
add rsp, 0x90
pop rdi
ret