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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x30
xor ebx, ebx
xor r15d, r15d
xor r12d, r12d
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
mov r13, rcx
test rcx, rcx
je 0x1400a67d3
mov rax, qword [rcx + 0x68]
test rax, rax
je 0x1400a62c6
mov r9d, r8d
mov dword [rsp + 0x28], 1
mov r8, rdx
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 3]
call rax
mov ebx, eax
test eax, eax
jle 0x1400a67d5
mov qword [rsp + 0x78], r14
lea r8, [0x140000000]
mov r14d, 0xffffffff
test ebx, ebx
js 0x1400a672a
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1400a6306
mov r9, qword [rax + 0x108]
test r9, r9
je 0x1400a6306
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call r9
jmp 0x1400a6697
movzx edx, byte [rdi + 0x90]
lea eax, [rdx - 2]
cmp eax, 6
ja case.default.0x1400a6326
cdqe
mov ecx, dword [r8 + rax*4 + 0xa67e4]
add rcx, r8
jmp rcx
mov dword [rsp + 0x70], 0
test rbp, rbp
je 0x1400a6463
xor r8d, r8d
lea r9, [rsp + 0x70]
test byte [rdi + 0x8c], 1
mov edx, esi
mov rcx, rbp
je 0x1400a636e
mov dword [rsp + 0x20], 2
call fcn.14010fb70
cmp eax, 0xffffff36
je 0x1400a6378
mov r15d, r14d
mov ebx, r14d
jmp 0x1400a6699
mov dword [rsp + 0x20], 0
jmp 0x1400a6357
mov eax, dword [rsp + 0x70]
test eax, eax
jne 0x1400a638a
xor r15d, r15d
xor ebx, ebx
jmp 0x1400a6699
mov rcx, rax
mov rax, qword [0x143e6b7e0]
test rax, rax
je 0x1400a639d
call rax
jmp 0x1400a63a2
call fcn.14003fdc8
mov rbx, rax
test rax, rax
je 0x1400a6363
test byte [rdi + 0x8c], 1
lea r9, [rsp + 0x70]
mov r8, rax
mov edx, esi
mov rcx, rbp
je 0x1400a63fd
mov dword [rsp + 0x20], 2
call fcn.14010fb70
test eax, eax
jns 0x1400a642a
mov rax, qword [0x143e6b7d0]
mov rcx, rbx
test rax, rax
je 0x1400a63ed
call rax
mov r15d, r14d
mov ebx, r14d
jmp 0x1400a6699
call fcn.14003c5b4
mov r15d, r14d
mov ebx, r14d
jmp 0x1400a6699
mov dword [rsp + 0x20], 0
call fcn.14010fb70
test eax, eax
jns 0x1400a642a
mov rax, qword [0x143e6b7d0]
mov rcx, rbx
test rax, rax
je 0x1400a63ed
call rax
mov r15d, r14d
mov ebx, r14d
jmp 0x1400a6699
test r12, r12
je 0x1400a6447
mov rax, qword [0x143e6b7d0]
mov rcx, r12
test rax, rax
je 0x1400a6442
call rax
jmp 0x1400a6447
call fcn.14003c5b4
mov r12, rbx
mov ebx, esi
mov r15d, esi
test esi, esi
jle 0x1400a6699
mov esi, dword [rsp + 0x70]
mov rbp, r12
jmp 0x1400a6699
mov ebx, 0xffffff53
mov r15d, ebx
jmp case.default.0x1400a6326
test rbp, rbp
je 0x1400a653e
mov ebx, 0xfffffffe
cmp dl, 5
je 0x1400a648a
xor ebx, ebx
jmp 0x1400a6699
cmp qword [rdi + 0x30], 0
je 0x1400a651b
movsxd rax, dword [rdi + 0x78]
test esi, esi
jne 0x1400a64b3
mov r9, rax
add r9, qword [rdi + 0x40]
mov qword [rsp + 0x88], r9
xor ebx, ebx
jmp 0x1400a6699
mov ecx, dword [rdi + 0x7c]
cmp eax, ecx
jge 0x1400a64c4
mov r8d, dword [rdi + 0x70]
mov edx, ecx
sub edx, eax
jmp 0x1400a64ee
test ecx, ecx
jle 0x1400a64d0
cmp eax, ecx
je 0x1400a6366
mov r8d, dword [rdi + 0x70]
mov edx, r8d
sub edx, eax
test edx, edx
jg 0x1400a64ee
test ecx, ecx
je 0x1400a6366
mov edx, ecx
jg 0x1400a64ec
mov edx, r8d
xor eax, eax
cmp esi, edx
movsxd r9, eax
mov ebx, esi
cmovge ebx, edx
add r9, qword [rdi + 0x40]
add eax, ebx
mov qword [rsp + 0x88], r9
mov dword [rdi + 0x78], eax
cmp eax, r8d
jne 0x1400a6523
test ecx, ecx
jle 0x1400a6523
mov dword [rdi + 0x78], 0
jmp 0x1400a6523
mov r9, qword [rsp + 0x88]
test ebx, ebx
jle 0x1400a6699
movsxd r8, ebx
mov rdx, rbp
mov rcx, r9
call fcn.14014dae0
jmp 0x1400a6699
mov ebx, 0xffffff53
jmp case.default.0x1400a6326
test rbp, rbp
je 0x1400a6559
test dword [rdi + 0x8c], 0x200
je 0x1400a6560
xor ebx, ebx
jmp case.default.0x1400a6326
test esi, esi
jne 0x1400a656c
lea ebx, [rsi + 1]
jmp case.default.0x1400a6326
mov eax, dword [rdi + 0x70]
mov rcx, rdi
add eax, esi
movsxd rdx, eax
call fcn.140094740
test eax, eax
jne 0x1400a6587
xor ebx, ebx
jmp 0x1400a6699
mov rax, qword [rdi]
test rax, rax
jne 0x1400a6596
xor ebx, ebx
jmp 0x1400a6699
movsxd rcx, dword [rdi + 0x70]
mov rdx, rbp
add rcx, rax
movsxd r8, esi
call fcn.14014dae0
mov rax, qword [rdi]
mov ebx, esi
add dword [rdi + 0x70], esi
add dword [rdi + 0x78], esi
mov qword [rdi + 0x40], rax
mov eax, dword [rdi + 0x10]
mov dword [rdi + 0x84], eax
jmp 0x1400a6699
mov r9, qword [rdi + 0x40]
test r9, r9
je 0x1400a65e6
movsxd r8, esi
mov edx, 1
mov rcx, rbp
call fcn.140043024
mov rbx, rax
jmp 0x1400a6699
mov ebx, 0xffffff52
jmp case.default.0x1400a6326
cmp qword [rdi + 0x28], 0
je case.default.0x1400a6326
test rbp, rbp
je 0x1400a653e
mov r9, qword [rdi + 0x40]
test r9, r9
je 0x1400a6669
cmp dword [r9 + 0x320], 0
jne 0x1400a664e
cmp qword [0x1401c98b8], 0
lea rax, [0x1401c98b0]
je 0x1400a663f
mov ecx, dword [r9 + 0x310]
nop
cmp ecx, dword [rax]
je 0x1400a6664
add rax, 0x10
cmp qword [rax + 8], 0
jne 0x1400a6630
mov ecx, dword [r9 + 0x310]
cmp ecx, 0x357
jne 0x1400a6669
mov r8d, esi
mov rdx, rbp
mov rcx, r9
call fcn.1400a3880
dec eax
neg eax
sbb ebx, ebx
jmp 0x1400a6699
mov ecx, dword [rax + 4]
jmp 0x1400a6646
movsxd r8, esi
mov rdx, rbp
mov rcx, r9
call fcn.1400a2030
xor ebx, ebx
cmp eax, 1
cmovne ebx, r14d
jmp 0x1400a6699
mov ecx, dword [rdi + 0x84]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
lea r8, [0x140000000]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400a62d8
jmp 0x1400a672a
cmp dword [r13 + 0x88], 0
jne 0x1400a6727
mov rbx, qword [rdi + 0x40]
test rbx, rbx
jne 0x1400a66c9
mov ebx, 0xffffff53
jmp 0x1400a672a
and dword [rdi + 0x8c], 0xffffffef
test rbp, rbp
je 0x1400a676e
test esi, esi
js 0x1400a676e
mov rax, qword [rbx + 0xeaa0]
test rax, rax
je 0x1400a6705
mov edx, 8
mov rcx, rbx
lea r8d, [rdx - 7]
call rax
mov dword [rbx + 0xeaa8], 8
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call fcn.1400c9d30
test eax, eax
js 0x1400a6774
mov r14d, eax
jne 0x1400a6727
mov dword [r13 + 0x88], 1
mov ebx, r14d
mov rax, qword [r13 + 0x68]
mov r14, qword [rsp + 0x78]
test rax, rax
je 0x1400a6756
mov dword [rsp + 0x28], ebx
mov r9d, esi
mov r8, rbp
mov dword [rsp + 0x20], 0
mov edx, 0x83
mov rcx, r13
call rax
mov ebx, eax
test r12, r12
je 0x1400a67c7
mov rax, qword [0x143e6b7d0]
mov rcx, r12
test rax, rax
je 0x1400a67c2
call rax
jmp 0x1400a67c7
mov r14d, 0xffffff53
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x1400a671c
mov edx, dword [rcx + 0xe8d8]
lea eax, [rdx + 0x147]
test eax, 0xfffffffb
je 0x1400a67b6
cmp edx, 0xfffffea9
je 0x1400a671c
mov eax, 0x100
test word [rcx + 0xea7a], ax
jne 0x1400a671c
lea eax, [rdx - 2]
cmp eax, 1
ja 0x1400a671c
or dword [rdi + 0x8c], 0x10
jmp 0x1400a6727
call fcn.14003c5b4
test r15d, r15d
jle 0x1400a67d3
mov eax, r15d
test ebx, ebx
jg 0x1400a67d5
mov eax, ebx
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret