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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov eax, dword [rcx + 0x2b80]
mov rbx, rcx
test eax, eax
mov ecx, 0xa
mov r12d, 4
cmovne r12d, ecx
xor ecx, ecx
mov qword [rbp + 0x17], rcx
lea rdi, [rbx + 0x88]
mov dword [rbp + 0x1f], ecx
mov word [rbp + 0x23], cx
mov qword [rbp - 0x29], rdi
test eax, eax
je 0x140002420
mov rax, qword [rdi]
movzx r14d, word [rax + 0x32]
cmp dword [rbx + 0x2b88], ecx
je 0x1400023c6
movzx ecx, word [rbx + 0x40]
call qword [sym.imp.WS2_32.dll_htons]
movzx r14d, ax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx ecx, r14w
cdq
inc ecx
idiv ecx
mov edi, edx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx ecx, di
mov esi, eax
call qword [sym.imp.WS2_32.dll_htons]
xor di, r14w
mov word [rbp + 0x17], ax
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 0xf3df
mov word [rbp + 0x19], ax
and cx, si
mov eax, 0x920d
or cx, ax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbp + 0x1b], ax
lea rdi, [rbx + 0x88]
jmp 0x140002424
mov qword [rbp - 0x29], rdi
xor r15d, r15d
nop word [rax + rax]
imul rax, qword [rbx + 0x90], 0x208
mov r13, qword [rdi]
add rax, r13
mov dword [rbx + 0xb8], r15d
cmp r13, rax
jae 0x14000294b
lea rsi, [r13 + 0x110]
nop dword [rax + rax]
mov eax, dword [rsi - 0xd0]
test eax, eax
je 0x140002926
cmp eax, 9
je 0x140002926
mov word [rbx + 0xc8], r15w
mov qword [rbx + 0x6d0], r15
mov qword [rbx + 0xae8], 1
mov qword [rbx + 0xc0], r12
cmp qword [rsi], rsi
je 0x1400024a8
mov rdx, r13
mov rcx, rbx
call fcn.140001950
lea rax, [rsi + 0x30]
cmp qword [rax], rax
je 0x1400024c4
mov rdx, r13
mov rcx, rbx
call fcn.140001f60
test eax, eax
je 0x140002563
lea rax, [rsi + 0x10]
cmp qword [rax], rax
jne 0x140002563
mov eax, dword [rbx + 0xa0]
mov ecx, eax
mov edx, dword [rsi - 0x84]
sub ecx, edx
sub edx, eax
cmp ecx, 0x5265c00
cmovb edx, ecx
cmp edx, dword [rsi - 0x3c]
jb 0x140002563
mov eax, dword [rsi - 0x14]
sub rax, qword [rbx + 0xc0]
cmp rax, 4
jb 0x140002563
cmp dword [rsi - 0xd0], 5
jne 0x140002558
mov ecx, 0x60
mov word [rbp - 0x19], 0xff85
call qword [0x1400e94e8]
test rax, rax
jne 0x140002528
call qword [0x1400e94f8]
jmp 0x140002558
movups xmm0, xmmword [rbp - 0x19]
mov rdx, rax
mov rcx, r13
movups xmm1, xmmword [rbp - 9]
mov dword [rax + 0x20], r15d
movups xmmword [rax + 0x28], xmm0
mov word [rax + 0x24], r15w
movups xmm0, xmmword [rbp + 7]
mov qword [rax + 0x58], r15
movups xmmword [rax + 0x38], xmm1
movups xmmword [rax + 0x48], xmm0
call fcn.140002fb0
mov rdx, r13
mov rcx, rbx
call fcn.140001f60
lea rax, [rsi + 0x40]
cmp qword [rax], rax
je 0x140002577
mov rdx, r13
mov rcx, rbx
call fcn.140001b50
cmp qword [rbx + 0x6d0], 0
je 0x140002926
mov ecx, dword [rsi - 0x78]
mov edx, dword [rbx + 0xa0]
test ecx, ecx
jne 0x14000259a
mov dword [rsi - 0x78], edx
jmp 0x140002624
mov eax, edx
sub eax, ecx
sub ecx, edx
cmp eax, 0x5265c00
cmovb ecx, eax
cmp ecx, 0x2710
jb 0x140002624
mov ecx, dword [rsi - 0x74]
test ecx, ecx
je 0x140002624
mov r9d, dword [rsi - 0x5c]
xor edx, edx
mov eax, dword [rsi - 0x68]
shl eax, 0x10
div ecx
mov ecx, r9d
shr ecx, 2
mov r8d, eax
sub r9d, ecx
mov ecx, dword [rsi - 0x60]
mov dword [rsi - 0x5c], r9d
cmp eax, ecx
jb 0x1400025e8
sub eax, ecx
shr eax, 3
add ecx, eax
sub r8d, ecx
jmp 0x1400025fa
mov eax, ecx
sub eax, r8d
shr eax, 3
sub ecx, eax
mov eax, ecx
sub eax, r8d
mov r8d, eax
mov rax, rsi
shr r8d, 2
add r8d, r9d
mov r9, 0xffffffffffffffa0
mov dword [r9 + rax], ecx
mov dword [rsi - 0x5c], r8d
mov eax, dword [rbx + 0xa0]
mov dword [rsi - 0x78], eax
mov dword [rsi - 0x74], r15d
mov dword [rsi - 0x68], r15d
cmp word [rbx + 0xc8], 0
lea rax, [rbp + 0x17]
mov qword [rbx + 0x6e0], rax
mov eax, dword [rbx + 0x2b80]
jge 0x140002668
movzx ecx, word [rbx + 0xa0]
test eax, eax
je 0x140002659
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1f], ax
mov rax, r12
jmp 0x140002676
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x19], ax
mov rax, r12
jmp 0x140002676
test eax, eax
mov eax, 8
jne 0x140002676
mov eax, 2
mov rcx, rbx
mov qword [rbx + 0x6d8], rax
mov rcx, qword [rbx + 0xaf8]
mov r14, r15
test rcx, rcx
je 0x1400026e6
mov r10, qword [rbx + 0xb00]
test r10, r10
je 0x1400026e6
mov rdi, qword [rbx + 0xc0]
lea rax, [rbx + 0x1b18]
mov r8, qword [rbx + 0xae8]
lea rdx, [rbx + 0x6e8]
sub rdi, r12
dec r8
mov qword [rsp + 0x28], rdi
mov r9, rdi
mov qword [rsp + 0x20], rax
call r10
test rax, rax
je 0x1400026e6
cmp rax, rdi
jae 0x1400026e6
mov ecx, 0x4000
mov r14, rax
or word [rbx + 0xc8], cx
mov eax, 0xfff
cmp word [rsi - 0xf8], ax
jae 0x140002706
movzx eax, byte [rsi - 0xf0]
shl ax, 0xc
or word [rbx + 0xc8], ax
movzx ecx, word [rbx + 0xc8]
or cx, word [rsi - 0xf8]
cmp dword [rbx + 0x2b80], 0
je 0x140002729
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1d], ax
jmp 0x140002733
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x17], ax
mov r8, qword [rbx + 0xaf0]
test r8, r8
je 0x140002786
mov rcx, qword [rbx + 0x6d8]
lea rdi, [rbp + 0x17]
add rdi, rcx
mov eax, 0xfff
cmp word [rsi - 0xf8], ax
jae 0x140002763
mov eax, dword [rsi - 0xf4]
jmp 0x140002766
mov eax, r15d
mov rdx, qword [rbx + 0xae8]
mov dword [rdi], eax
lea rax, [rcx + 4]
lea rcx, [rbx + 0x6d8]
mov qword [rbx + 0x6d8], rax
call r8
mov dword [rdi], eax
test r14, r14
je 0x1400027ab
lea rax, [rbx + 0x1b18]
mov qword [rbx + 0x6e8], r14
mov qword [rbx + 0x6f0], rax
mov qword [rbx + 0xae8], 2
mov eax, dword [rbx + 0xa0]
mov dword [rsi - 0x88], eax
cmp dword [rbx + 0x2b88], 0
je 0x1400027f6
lea rdx, [rbx + 0x6d8]
mov r8d, 0x400
lea rcx, [rbx + 0x6e8]
call sub.VCRUNTIME140.dll_memmove
inc qword [rbx + 0xae8]
lea rax, [rbx + 0x38]
mov qword [rbx + 0x6e0], rax
mov qword [rbx + 0x6d8], 0xa
mov r14, qword [rbx + 0xae8]
lea rdi, [rsi - 0xee]
mov r15, qword [rbx]
test rdi, rdi
je 0x140002847
movzx ecx, word [rsi - 0xde]
xor eax, eax
mov qword [rbp - 9], rax
xorps xmm0, xmm0
mov dword [rbp - 1], eax
mov eax, reloc.WS2_32.dll_socket
movups xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x19], ax
call qword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [rdi]
mov word [rbp - 0x17], ax
movzx eax, word [rsi - 0xdc]
movups xmmword [rbp - 0x11], xmm0
mov dword [rbp - 1], eax
mov ecx, 0
lea rdx, [rbx + 0x6d8]
mov qword [rsp + 0x40], rcx
mov rax, rdi
neg rax
mov qword [rsp + 0x38], rcx
lea rax, [rbp - 0x19]
mov r8d, r14d
sbb r9d, r9d
and r9d, 0x1c
mov dword [rsp + 0x30], r9d
test rdi, rdi
lea r9, [rbp - 0x21]
cmove rax, rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x1400028aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb r15d, r15d
jmp 0x1400028ae
mov r15d, dword [rbp - 0x21]
mov rdi, qword [rsi + 0x20]
lea r14, [rsi + 0x20]
cmp rdi, r14
je 0x14000290d
nop dword [rax + rax]
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
mov qword [rcx + 8], rax
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x1400028fc
dec qword [rax]
mov rax, qword [rdi + 0x58]
cmp qword [rax], 0
jne 0x1400028fc
or dword [rax + 8], 0x100
mov rcx, qword [rdi + 0x58]
call qword [0x1400e9508]
mov rcx, rdi
call qword [0x1400e94f0]
mov rdi, qword [r14]
cmp rdi, r14
jne 0x1400028c0
test r15d, r15d
js 0x140002987
add dword [rbx + 0x2b40], r15d
inc dword [rbx + 0x2b44]
mov rdi, qword [rbp - 0x29]
xor r15d, r15d
imul rax, qword [rbx + 0x90], 0x208
add r13, 0x208
add rsi, 0x208
add rax, qword [rdi]
cmp r13, rax
jb 0x140002460
cmp dword [rbx + 0xb8], 0
jne 0x140002430
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400a13e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 0xffffffff
jmp 0x14000295a