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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x14015d460]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, qword [rcx + 0x2b10]
mov rbx, rcx
test rax, rax
mov dword [rbp - 0x51], r8d
mov ecx, 0xa
mov qword [rbp - 0x49], rdx
mov esi, 4
mov r15, rdx
cmovne esi, ecx
lea rdi, [rbx + 0x28]
xor ecx, ecx
mov qword [rbp - 0x59], rsi
mov qword [rbp + 7], rcx
mov dword [rbp + 0xf], ecx
mov word [rbp + 0x13], cx
mov qword [rbp - 0x69], rdi
test rax, rax
je 0x14000d51e
mov rax, qword [rdi]
movzx r14d, word [rax + 0x28]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
lea ecx, [r14 + 1]
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 + 7], ax
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 0xf3df
mov word [rbp + 9], ax
and cx, si
mov eax, 0x920d
or cx, ax
call qword [sym.imp.WS2_32.dll_ntohs]
mov rsi, qword [rbp - 0x59]
lea rdi, [rbx + 0x28]
mov word [rbp + 0xb], ax
jmp 0x14000d522
mov qword [rbp - 0x69], rdi
xor r13d, r13d
nop word [rax + rax]
mov rdi, qword [rdi]
imul rax, qword [rbx + 0x30], 0x1d8
mov dword [rbx + 0x58], r13d
add rax, rdi
mov qword [rbp - 0x61], rdi
cmp rdi, rax
jae 0x14000db98
mov rcx, qword [rbp - 0x69]
lea r14, [rdi + 0xe0]
nop word [rax + rax]
mov eax, dword [r14 - 0xa8]
test eax, eax
je 0x14000db64
cmp eax, 9
je 0x14000db64
lea rax, [rbx + 0xa88]
mov word [rbx + 0x68], r13w
mov qword [rax], 1
mov qword [rbx + 0x670], r13
mov qword [rbx + 0x60], rsi
mov r12, qword [r14]
cmp r12, r14
je 0x14000d6c1
lea rsi, [rbx + 0x6a]
lea r15, [rbx + 0x688]
lea r13, [rbx + 0x66a]
cmp rsi, r13
jae 0x14000d66d
cmp r15, rax
jae 0x14000d66d
mov eax, dword [r14 - 0x10]
sub rax, qword [rbx + 0x60]
cmp rax, 8
jb 0x14000d66d
mov rdi, r12
mov r12, qword [r12]
mov qword [r15 + 8], rsi
mov qword [r15], 8
add qword [rbx + 0x60], 8
movzx ecx, word [rdi + 0x16]
call qword [sym.imp.WS2_32.dll_htons]
mov byte [rsi], 1
movzx ecx, byte [rdi + 0x15]
mov byte [rsi + 1], cl
mov word [rsi + 2], ax
mov word [rsi + 4], ax
movzx ecx, word [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 6], ax
movzx eax, byte [rdi + 0x14]
and al, 0xf
cmp al, 4
jne 0x14000d635
mov rdx, qword [rbp - 0x61]
mov r8d, 9
mov rcx, rbx
call fcn.14000b070
mov rdx, qword [rdi + 8]
mov rcx, rdi
mov rax, qword [rdi]
mov qword [rdx], rax
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
call qword [fcn.1401082ca]
add rsi, 0x30
lea rax, [rbx + 0xa88]
add r15, 0x10
cmp r12, r14
jne 0x14000d5b4
jmp 0x14000d674
mov dword [rbx + 0x58], 1
mov rdi, qword [rbp - 0x61]
sub r15, rbx
sub rsi, rbx
sub r15, 0x678
sub rsi, 0x6a
sar r15, 4
movabs rax, 0x2aaaaaaaaaaaaaab
mov qword [rbx + 0xa88], r15
mov r15, qword [rbp - 0x49]
imul rsi
mov rsi, qword [rbp - 0x59]
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbx + 0x670], rdx
xor r13d, r13d
cmp dword [rbp - 0x51], 0
je 0x14000d709
lea rax, [r14 + 0x10]
cmp qword [rax], rax
je 0x14000d709
mov eax, dword [rbx + 0x40]
sub eax, dword [r14 - 0x70]
cmp eax, 0x5265c00
jae 0x14000d709
mov r8, r15
mov rdx, rdi
mov rcx, rbx
call fcn.14000ced0
cmp eax, 1
jne 0x14000d709
test r15, r15
je 0x14000db60
cmp dword [r15], 0
je 0x14000db60
jmp 0x14000dbb4
lea rax, [r14 + 0x30]
cmp qword [rax], rax
je 0x14000d725
mov rdx, rdi
mov rcx, rbx
call fcn.14000d0a0
test eax, eax
je 0x14000d7be
lea rax, [r14 + 0x10]
cmp qword [rax], rax
jne 0x14000d7be
mov edx, dword [r14 - 0x74]
mov ecx, dword [rbx + 0x40]
sub ecx, edx
sub edx, dword [rbx + 0x40]
cmp ecx, 0x5265c00
cmovb edx, ecx
cmp edx, dword [r14 - 0x38]
jb 0x14000d7be
mov eax, dword [r14 - 0x10]
sub rax, qword [rbx + 0x60]
cmp rax, 4
jb 0x14000d7be
cmp dword [r14 - 0xa8], 5
jne 0x14000d7b3
mov ecx, 0x60
mov word [rbp - 0x41], 0xff85
call qword [fcn.1401082d0]
test rax, rax
jne 0x14000d783
call qword [0x14015d618]
jmp 0x14000d7b3
movups xmm0, xmmword [rbp - 0x41]
mov rdx, rax
mov rcx, rdi
movups xmm1, xmmword [rbp - 0x31]
mov dword [rax + 0x20], r13d
movups xmmword [rax + 0x28], xmm0
mov word [rax + 0x24], r13w
movups xmm0, xmmword [rbp - 0x21]
mov qword [rax + 0x58], r13
movups xmmword [rax + 0x38], xmm1
movups xmmword [rax + 0x48], xmm0
call fcn.14000a8b0
mov rdx, rdi
mov rcx, rbx
call fcn.14000d0a0
lea r13, [r14 + 0x40]
cmp qword [r13], r13
je 0x14000d7d3
mov rdx, rdi
mov rcx, rbx
call fcn.14000cb50
cmp qword [rbx + 0x670], 0
je 0x14000db60
mov ecx, dword [r14 - 0x68]
mov edx, dword [rbx + 0x40]
test ecx, ecx
jne 0x14000d7f2
mov dword [r14 - 0x68], edx
jmp 0x14000d86d
mov eax, edx
sub eax, ecx
sub ecx, edx
cmp eax, 0x5265c00
cmovb ecx, eax
cmp ecx, 0x2710
jb 0x14000d86d
mov ecx, dword [r14 - 0x64]
test ecx, ecx
je 0x14000d86d
mov eax, dword [r14 - 0x60]
xor edx, edx
shl eax, 0x10
div ecx
mov edx, dword [r14 - 0x58]
mov ecx, edx
shr ecx, 2
mov r8d, eax
sub edx, ecx
mov ecx, dword [r14 - 0x5c]
cmp eax, ecx
jb 0x14000d83d
sub eax, ecx
shr eax, 3
add ecx, eax
sub r8d, ecx
jmp 0x14000d84f
mov eax, ecx
sub eax, r8d
shr eax, 3
sub ecx, eax
mov eax, ecx
sub eax, r8d
mov r8d, eax
mov dword [r14 - 0x5c], ecx
shr r8d, 2
add r8d, edx
mov dword [r14 - 0x58], r8d
mov eax, dword [rbx + 0x40]
mov dword [r14 - 0x68], eax
mov qword [r14 - 0x64], 0
cmp word [rbx + 0x68], 0
lea rax, [rbp + 7]
mov qword [rbx + 0x680], rax
mov rax, qword [rbx + 0x2b10]
jge 0x14000d8ad
movzx ecx, word [rbx + 0x40]
test rax, rax
je 0x14000d89e
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0xf], ax
mov rax, rsi
jmp 0x14000d8bc
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 9], ax
mov rax, rsi
jmp 0x14000d8bc
test rax, rax
mov eax, 8
jne 0x14000d8bc
mov eax, 2
lea r12, [rbx + 0x678]
mov rcx, rbx
mov qword [r12], rax
xor esi, esi
mov rcx, qword [rbx + 0xa98]
test rcx, rcx
je 0x14000d92a
mov r10, qword [rbx + 0xaa0]
test r10, r10
je 0x14000d92a
mov rdi, qword [rbx + 0x60]
lea rax, [rbx + 0x1ab8]
mov r8, qword [rbx + 0xa88]
lea rdx, [rbx + 0x688]
sub rdi, 4
dec r8
mov qword [rsp + 0x28], rdi
mov r9, rdi
mov qword [rsp + 0x20], rax
call r10
test rax, rax
je 0x14000d92a
cmp rax, rdi
jae 0x14000d92a
mov ecx, 0x4000
mov rsi, rax
or word [rbx + 0x68], cx
mov r15d, 0xfff
cmp word [r14 - 0xc8], r15w
jae 0x14000d94a
movzx eax, byte [r14 - 0xc0]
shl ax, 0xc
or word [rbx + 0x68], ax
movzx ecx, word [r14 - 0xc8]
or cx, word [rbx + 0x68]
cmp qword [rbx + 0x2b10], 0
je 0x14000d96c
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0xd], ax
jmp 0x14000d976
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 7], ax
mov r8, qword [rbx + 0xa90]
test r8, r8
je 0x14000d9bb
mov rcx, qword [r12]
lea rdi, [rbp + 7]
add rdi, rcx
cmp word [r14 - 0xc8], r15w
jae 0x14000d9a0
mov eax, dword [r14 - 0xc4]
jmp 0x14000d9a2
xor eax, eax
mov rdx, qword [rbx + 0xa88]
mov dword [rdi], eax
lea rax, [rcx + 4]
mov rcx, r12
mov qword [r12], rax
call r8
mov dword [rdi], eax
mov ecx, 2
test rsi, rsi
je 0x14000d9e1
lea rax, [rbx + 0x1ab8]
mov qword [rbx + 0x688], rsi
mov qword [rbx + 0x690], rax
mov qword [rbx + 0xa88], rcx
mov eax, dword [rbx + 0x40]
lea rdi, [r14 - 0xbc]
mov dword [r14 - 0x78], eax
mov rsi, qword [rbx + 0xa88]
mov r15, qword [rbx]
test rdi, rdi
je 0x14000da20
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov word [rbp - 9], cx
movzx ecx, word [r14 - 0xb8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 7], ax
mov eax, dword [rdi]
mov dword [rbp - 5], eax
mov ecx, 0
mov rax, rdi
mov qword [rsp + 0x40], rcx
neg rax
mov qword [rsp + 0x38], rcx
lea rax, [rbp - 9]
sbb r9d, r9d
mov r8d, esi
and r9d, 0x10
mov rdx, r12
mov dword [rsp + 0x30], r9d
test rdi, rdi
lea r9, [rbp - 0x11]
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 0x14000da7f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb r12d, r12d
jmp 0x14000da83
mov r12d, dword [rbp - 0x11]
mov rdi, qword [r14 + 0x20]
lea r15, [r14 + 0x20]
cmp rdi, r15
je 0x14000db4a
nop dword [rax]
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 0x14000db07
dec qword [rax]
mov rax, qword [rdi + 0x58]
cmp qword [rax], 0
jne 0x14000db07
or dword [rax + 8], 0x100
mov rsi, qword [rdi + 0x58]
test rsi, rsi
je 0x14000db07
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x14000dae9
mov rcx, rsi
call rax
test byte [rsi + 8], 4
jne 0x14000dafe
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14000dafe
call qword [fcn.1401082ca]
mov rcx, rsi
call qword [fcn.1401082ca]
mov rcx, rdi
call qword [fcn.1401082ca]
mov rdi, qword [r15]
cmp rdi, r15
jne 0x14000daa0
cmp dword [r14 - 0xa8], 6
jne 0x14000db4a
lea rax, [r14 + 0x30]
cmp qword [rax], rax
jne 0x14000db4a
cmp qword [r13], r13
jne 0x14000db4a
lea rax, [r14 + 0x10]
cmp qword [rax], rax
jne 0x14000db4a
mov edx, dword [r14 + 0xec]
mov rcx, qword [rbp - 0x61]
call fcn.14000a6d0
test r12d, r12d
js 0x14000dbab
add dword [rbx + 0x2ad0], r12d
inc dword [rbx + 0x2ad4]
mov rdi, qword [rbp - 0x61]
mov rcx, qword [rbp - 0x69]
imul rax, qword [rbx + 0x30], 0x1d8
mov r15, qword [rbp - 0x49]
add rdi, 0x1d8
add rax, qword [rcx]
add r14, 0x1d8
mov rsi, qword [rbp - 0x59]
mov r13d, 0
mov qword [rbp - 0x61], rdi
cmp rdi, rax
jb 0x14000d560
cmp dword [rbx + 0x58], 0
je 0x14000dbb2
mov rsi, qword [rbp - 0x59]
mov rdi, qword [rbp - 0x69]
jmp 0x14000d530
mov eax, 0xffffffff
jmp 0x14000dbb4
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140106d80
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret