Function at 0x1400a5380
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 0x1400a58e3
mov rax, qword [rcx + 0x68]
test rax, rax
je 0x1400a53d6
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 0x1400a58e5
mov qword [rsp + 0x78], r14
lea r8, [0x140000000]
mov r14d, 0xffffffff
test ebx, ebx
js 0x1400a583a
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1400a5416
mov r9, qword [rax + 0x108]
test r9, r9
je 0x1400a5416
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call r9
jmp 0x1400a57a7
movzx edx, byte [rdi + 0x90]
lea eax, [rdx - 2]
cmp eax, 6
ja case.default.0x1400a5436
cdqe
mov ecx, dword [r8 + rax*4 + 0xa58f4]
add rcx, r8
jmp rcx
mov dword [rsp + 0x70], 0
test rbp, rbp
je 0x1400a5573
xor r8d, r8d
lea r9, [rsp + 0x70]
test byte [rdi + 0x8c], 1
mov edx, esi
mov rcx, rbp
je 0x1400a547e
mov dword [rsp + 0x20], 2
call fcn.14010ec80
cmp eax, 0xffffff36
je 0x1400a5488
mov r15d, r14d
mov ebx, r14d
jmp 0x1400a57a9
mov dword [rsp + 0x20], 0
jmp 0x1400a5467
mov eax, dword [rsp + 0x70]
test eax, eax
jne 0x1400a549a
xor r15d, r15d
xor ebx, ebx
jmp 0x1400a57a9
mov rcx, rax
mov rax, qword [0x143e6a4b0]
test rax, rax
je 0x1400a54ad
call rax
jmp 0x1400a54b2
call fcn.14003fa18
mov rbx, rax
test rax, rax
je 0x1400a5473
test byte [rdi + 0x8c], 1
lea r9, [rsp + 0x70]
mov r8, rax
mov edx, esi
mov rcx, rbp
je 0x1400a550d
mov dword [rsp + 0x20], 2
call fcn.14010ec80
test eax, eax
jns 0x1400a553a
mov rax, qword [0x143e6a4a0]
mov rcx, rbx
test rax, rax
je 0x1400a54fd
call rax
mov r15d, r14d
mov ebx, r14d
jmp 0x1400a57a9
call fcn.14003c204
mov r15d, r14d
mov ebx, r14d
jmp 0x1400a57a9
mov dword [rsp + 0x20], 0
call fcn.14010ec80
test eax, eax
jns 0x1400a553a
mov rax, qword [0x143e6a4a0]
mov rcx, rbx
test rax, rax
je 0x1400a54fd
call rax
mov r15d, r14d
mov ebx, r14d
jmp 0x1400a57a9
test r12, r12
je 0x1400a5557
mov rax, qword [0x143e6a4a0]
mov rcx, r12
test rax, rax
je 0x1400a5552
call rax
jmp 0x1400a5557
call fcn.14003c204
mov r12, rbx
mov ebx, esi
mov r15d, esi
test esi, esi
jle 0x1400a57a9
mov esi, dword [rsp + 0x70]
mov rbp, r12
jmp 0x1400a57a9
mov ebx, 0xffffff53
mov r15d, ebx
jmp case.default.0x1400a5436
test rbp, rbp
je 0x1400a564e
mov ebx, 0xfffffffe
cmp dl, 5
je 0x1400a559a
xor ebx, ebx
jmp 0x1400a57a9
cmp qword [rdi + 0x30], 0
je 0x1400a562b
movsxd rax, dword [rdi + 0x78]
test esi, esi
jne 0x1400a55c3
mov r9, rax
add r9, qword [rdi + 0x40]
mov qword [rsp + 0x88], r9
xor ebx, ebx
jmp 0x1400a57a9
mov ecx, dword [rdi + 0x7c]
cmp eax, ecx
jge 0x1400a55d4
mov r8d, dword [rdi + 0x70]
mov edx, ecx
sub edx, eax
jmp 0x1400a55fe
test ecx, ecx
jle 0x1400a55e0
cmp eax, ecx
je 0x1400a5476
mov r8d, dword [rdi + 0x70]
mov edx, r8d
sub edx, eax
test edx, edx
jg 0x1400a55fe
test ecx, ecx
je 0x1400a5476
mov edx, ecx
jg 0x1400a55fc
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 0x1400a5633
test ecx, ecx
jle 0x1400a5633
mov dword [rdi + 0x78], 0
jmp 0x1400a5633
mov r9, qword [rsp + 0x88]
test ebx, ebx
jle 0x1400a57a9
movsxd r8, ebx
mov rdx, rbp
mov rcx, r9
call fcn.14014cbf0
jmp 0x1400a57a9
mov ebx, 0xffffff53
jmp case.default.0x1400a5436
test rbp, rbp
je 0x1400a5669
test dword [rdi + 0x8c], 0x200
je 0x1400a5670
xor ebx, ebx
jmp case.default.0x1400a5436
test esi, esi
jne 0x1400a567c
lea ebx, [rsi + 1]
jmp case.default.0x1400a5436
mov eax, dword [rdi + 0x70]
mov rcx, rdi
add eax, esi
movsxd rdx, eax
call fcn.140093850
test eax, eax
jne 0x1400a5697
xor ebx, ebx
jmp 0x1400a57a9
mov rax, qword [rdi]
test rax, rax
jne 0x1400a56a6
xor ebx, ebx
jmp 0x1400a57a9
movsxd rcx, dword [rdi + 0x70]
mov rdx, rbp
add rcx, rax
movsxd r8, esi
call fcn.14014cbf0
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 0x1400a57a9
mov r9, qword [rdi + 0x40]
test r9, r9
je 0x1400a56f6
movsxd r8, esi
mov edx, 1
mov rcx, rbp
call fcn.140042c74
mov rbx, rax
jmp 0x1400a57a9
mov ebx, 0xffffff52
jmp case.default.0x1400a5436
cmp qword [rdi + 0x28], 0
je case.default.0x1400a5436
test rbp, rbp
je 0x1400a564e
mov r9, qword [rdi + 0x40]
test r9, r9
je 0x1400a5779
cmp dword [r9 + 0x320], 0
jne 0x1400a575e
cmp qword [0x1401c8768], 0
lea rax, [0x1401c8760]
je 0x1400a574f
mov ecx, dword [r9 + 0x310]
nop
cmp ecx, dword [rax]
je 0x1400a5774
add rax, 0x10
cmp qword [rax + 8], 0
jne 0x1400a5740
mov ecx, dword [r9 + 0x310]
cmp ecx, 0x357
jne 0x1400a5779
mov r8d, esi
mov rdx, rbp
mov rcx, r9
call fcn.1400a2990
dec eax
neg eax
sbb ebx, ebx
jmp 0x1400a57a9
mov ecx, dword [rax + 4]
jmp 0x1400a5756
movsxd r8, esi
mov rdx, rbp
mov rcx, r9
call fcn.1400a1140
xor ebx, ebx
cmp eax, 1
cmovne ebx, r14d
jmp 0x1400a57a9
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 0x1400a53e8
jmp 0x1400a583a
cmp dword [r13 + 0x88], 0
jne 0x1400a5837
mov rbx, qword [rdi + 0x40]
test rbx, rbx
jne 0x1400a57d9
mov ebx, 0xffffff53
jmp 0x1400a583a
and dword [rdi + 0x8c], 0xffffffef
test rbp, rbp
je 0x1400a587e
test esi, esi
js 0x1400a587e
mov rax, qword [rbx + 0xeaa0]
test rax, rax
je 0x1400a5815
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.1400c8e40
test eax, eax
js 0x1400a5884
mov r14d, eax
jne 0x1400a5837
mov dword [r13 + 0x88], 1
mov ebx, r14d
mov rax, qword [r13 + 0x68]
mov r14, qword [rsp + 0x78]
test rax, rax
je 0x1400a5866
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 0x1400a58d7
mov rax, qword [0x143e6a4a0]
mov rcx, r12
test rax, rax
je 0x1400a58d2
call rax
jmp 0x1400a58d7
mov r14d, 0xffffff53
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x1400a582c
mov edx, dword [rcx + 0xe8d8]
lea eax, [rdx + 0x147]
test eax, 0xfffffffb
je 0x1400a58c6
cmp edx, 0xfffffea9
je 0x1400a582c
mov eax, 0x100
test word [rcx + 0xea7a], ax
jne 0x1400a582c
lea eax, [rdx - 2]
cmp eax, 1
ja 0x1400a582c
or dword [rdi + 0x8c], 0x10
jmp 0x1400a5837
call fcn.14003c204
test r15d, r15d
jle 0x1400a58e3
mov eax, r15d
test ebx, ebx
jg 0x1400a58e5
mov eax, ebx
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret