Function at 0x14004e5e0
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 [0x1401cca00]
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 0x14004e6c0
mov rax, qword [rdi]
movzx r14d, word [rax + 0x32]
cmp dword [rbx + 0x2b84], ecx
je 0x14004e666
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 0x14004e6c4
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 0x14004ebeb
lea rsi, [r13 + 0x110]
nop dword [rax + rax]
mov eax, dword [rsi - 0xd0]
test eax, eax
je 0x14004ebc6
cmp eax, 9
je 0x14004ebc6
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 0x14004e748
mov rdx, r13
mov rcx, rbx
call fcn.14004dcb0
lea rax, [rsi + 0x30]
cmp qword [rax], rax
je 0x14004e764
mov rdx, r13
mov rcx, rbx
call fcn.14004e200
test eax, eax
je 0x14004e803
lea rax, [rsi + 0x10]
cmp qword [rax], rax
jne 0x14004e803
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 0x14004e803
mov eax, dword [rsi - 0x14]
sub rax, qword [rbx + 0xc0]
cmp rax, 4
jb 0x14004e803
cmp dword [rsi - 0xd0], 5
jne 0x14004e7f8
mov ecx, 0x60
mov word [rbp - 0x19], 0xff85
call qword [0x14023b720]
test rax, rax
jne 0x14004e7c8
call qword [0x14023b730]
jmp 0x14004e7f8
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.14004f320
mov rdx, r13
mov rcx, rbx
call fcn.14004e200
lea rax, [rsi + 0x40]
cmp qword [rax], rax
je 0x14004e817
mov rdx, r13
mov rcx, rbx
call fcn.14004deb0
cmp qword [rbx + 0x6d0], 0
je 0x14004ebc6
mov ecx, dword [rsi - 0x78]
mov edx, dword [rbx + 0xa0]
test ecx, ecx
jne 0x14004e83a
mov dword [rsi - 0x78], edx
jmp 0x14004e8c4
mov eax, edx
sub eax, ecx
sub ecx, edx
cmp eax, 0x5265c00
cmovb ecx, eax
cmp ecx, 0x2710
jb 0x14004e8c4
mov ecx, dword [rsi - 0x74]
test ecx, ecx
je 0x14004e8c4
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 0x14004e888
sub eax, ecx
shr eax, 3
add ecx, eax
sub r8d, ecx
jmp 0x14004e89a
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 0x14004e908
movzx ecx, word [rbx + 0xa0]
test eax, eax
je 0x14004e8f9
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1f], ax
mov rax, r12
jmp 0x14004e916
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x19], ax
mov rax, r12
jmp 0x14004e916
test eax, eax
mov eax, 8
jne 0x14004e916
mov eax, 2
mov rcx, rbx
mov qword [rbx + 0x6d8], rax
mov rcx, qword [rbx + 0xaf8]
mov r14, r15
test rcx, rcx
je 0x14004e986
mov r10, qword [rbx + 0xb00]
test r10, r10
je 0x14004e986
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 0x14004e986
cmp rax, rdi
jae 0x14004e986
mov ecx, 0x4000
mov r14, rax
or word [rbx + 0xc8], cx
mov eax, 0xfff
cmp word [rsi - 0xf8], ax
jae 0x14004e9a6
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 0x14004e9c9
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1d], ax
jmp 0x14004e9d3
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x17], ax
mov r8, qword [rbx + 0xaf0]
test r8, r8
je 0x14004ea26
mov rcx, qword [rbx + 0x6d8]
lea rdi, [rbp + 0x17]
add rdi, rcx
mov eax, 0xfff
cmp word [rsi - 0xf8], ax
jae 0x14004ea03
mov eax, dword [rsi - 0xf4]
jmp 0x14004ea06
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 0x14004ea4b
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 + 0x2b84], 0
je 0x14004ea96
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 0x14004eae7
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 0x14004eb4a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb r15d, r15d
jmp 0x14004eb4e
mov r15d, dword [rbp - 0x21]
mov rdi, qword [rsi + 0x20]
lea r14, [rsi + 0x20]
cmp rdi, r14
je 0x14004ebad
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 0x14004eb9c
dec qword [rax]
mov rax, qword [rdi + 0x58]
cmp qword [rax], 0
jne 0x14004eb9c
or dword [rax + 8], 0x100
mov rcx, qword [rdi + 0x58]
call qword [0x14023b740]
mov rcx, rdi
call qword [0x14023b728]
mov rdi, qword [r14]
cmp rdi, r14
jne 0x14004eb60
test r15d, r15d
js 0x14004ec27
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 0x14004e700
cmp dword [rbx + 0xb8], 0
jne 0x14004e6d0
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140162570
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 0x14004ebfa