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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0xf0]
xor r14d, r14d
mov r13, qword [rbp + 0xd0]
mov r15d, r14d
mov rsi, qword [rbp + 0xd8]
mov r12d, dword [rbp + 0xe0]
mov edi, dword [rbp + 0xe8]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x3c], r12d
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x34], r14d
mov byte [rsp + 0x30], r14b
test r13, r13
je 0x1400bf2d6
cmp dword [r13], 0xbab1e
jne 0x1400bf2d6
cmp byte [r13 + 0x1b3], r14b
je 0x1400bec38
lea eax, [r14 + 8]
jmp 0x1400bed10
test edi, edi
jns 0x1400bec46
mov eax, 0xa
jmp 0x1400bed10
mov qword [rsp + 0x188], rbx
mov rbx, qword [r13 + 8]
test rbx, rbx
je 0x1400becb4
nop word [rax + rax]
lea rdx, [rbp - 0x58]
mov rcx, rbx
call fcn.1400bd4c0
mov r10d, eax
lea r9, [rbp - 0x58]
mov eax, 1
mov r8d, r14d
nop dword [rax + rax]
lea ecx, [r8 + 0x10]
mov edx, eax
bts edx, ecx
test r10d, edx
je 0x1400beca6
cmp qword [r9], 0xffffffffffffffff
jae 0x1400beca6
inc r15d
rol eax, 1
inc r8d
add r9, 8
cmp r8d, 5
jb 0x1400bec80
mov rbx, qword [rbx + 0x10]
mov dword [rsp + 0x40], r15d
test rbx, rbx
jne 0x1400bec60
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.1400bea80
mov eax, dword [rsp + 0x38]
test eax, eax
js 0x1400becd2
cmp eax, edi
cmovl edi, eax
mov dword [rsp + 0x50], edi
cmp byte [rbp + 0x100], r14b
lea eax, [r12 + r15]
lea ecx, [rax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x1400bed34
mov rax, qword [fcn.140154a40]
shl rcx, 4
call qword [case.0x1400cc851.0]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x1400bed2f
mov eax, 3
mov rbx, qword [rsp + 0x188]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140133600
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov byte [rsp + 0x30], 1
xor r10d, r10d
mov dword [rsp + 0x38], r10d
test r15d, r15d
je 0x1400bee95
mov rax, qword [r13 + 8]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400bee95
nop word [rax + rax]
lea rdx, [rbp - 0x58]
mov rcx, rax
call fcn.1400bd4c0
xor r10d, r10d
lea rdi, [rbp - 0x58]
mov esi, r10d
mov r12d, eax
nop dword [rax]
mov ecx, esi
lea r8d, [rsi + 0x10]
mov edx, 1
shl edx, cl
mov ecx, edx
bts ecx, r8d
test r12d, ecx
je 0x1400bee6f
mov rax, qword [rdi]
cmp rax, 0xffffffffffffffff
jae 0x1400bee6f
mov r15, qword [rsp + 0x48]
mov ebx, r14d
inc r14d
shl rbx, 4
add rbx, r15
mov dword [rsp + 0x38], r14d
mov r14d, r10d
mov qword [rbx], rax
mov word [rbx + 8], r10w
test r12d, edx
je 0x1400beddf
mov eax, 0x300
mov r14d, 0x29
mov word [rbx + 8], ax
bt r12d, r8d
jae 0x1400bee3d
mov r15, qword [rdi]
lea rax, [rsp + 0x54]
mov rcx, r15
mov dword [rsp + 0x54], 4
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1008
or r14d, 0x32
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400bee33
cmp dword [rsp + 0x58], 1
jne 0x1400bee33
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
or word [rbx + 8], 0x10
mov r15, qword [rsp + 0x48]
mov rdx, qword [r13 + 0x1a8]
mov r8d, r14d
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x1400befb2
mov r14d, dword [rsp + 0x38]
inc esi
add rdi, 8
mov r10d, eax
cmp esi, 5
jb 0x1400bed80
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1400bed60
mov r15d, dword [rsp + 0x40]
mov r12d, dword [rsp + 0x3c]
mov rsi, qword [rsp + 0x68]
mov r14d, r10d
test r12d, r12d
je 0x1400befe1
lea rbx, [rsi + 8]
nop word [rax + rax]
movzx edx, word [rbx]
movzx eax, dl
and al, 1
neg al
movzx eax, dl
sbb ecx, ecx
and ecx, 0x29
mov edi, ecx
or edi, 4
and al, 2
cmove edi, ecx
test dl, 4
je 0x1400bef1f
mov rsi, qword [rbx - 8]
lea rax, [rsp + 0x58]
mov rcx, rsi
mov dword [rsp + 0x58], 4
lea r9, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1008
or edi, 0x32
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400bef1f
cmp dword [rsp + 0x54], 1
jne 0x1400bef1f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov rdx, qword [r13 + 0x1a8]
mov r8d, edi
mov rcx, qword [rbx - 8]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x1400befbe
mov rax, qword [rbx - 8]
xor r10d, r10d
mov edi, dword [rsp + 0x38]
mov r9, qword [rsp + 0x48]
mov edx, edi
shl rdx, 4
add rdx, r9
mov qword [rdx], rax
movzx eax, r10w
mov word [rdx + 8], r10w
movzx ecx, word [rbx]
test cl, 1
je 0x1400bef79
mov r8d, 0x300
mov word [rdx + 8], r8w
mov eax, r8d
movzx ecx, word [rbx]
test cl, 2
je 0x1400bef8d
mov ecx, 0x400
or ax, cx
mov word [rdx + 8], ax
movzx ecx, word [rbx]
test cl, 4
je 0x1400bef9a
or ax, 0x10
mov word [rdx + 8], ax
inc edi
inc r14d
add rbx, 0x10
mov dword [rsp + 0x38], edi
cmp r14d, r12d
jb 0x1400beeb0
jmp 0x1400befea
cmp byte [rsp + 0x30], 0
je 0x1400befd7
mov rcx, r15
jmp 0x1400befca
cmp byte [rsp + 0x30], 0
je 0x1400befd7
mov rcx, qword [rsp + 0x48]
mov rax, qword [fcn.140143670]
call qword [case.0x1400cc851.0]
mov eax, 4
jmp 0x1400bed08
mov edi, dword [rsp + 0x38]
mov r9, qword [rsp + 0x48]
test edi, edi
jne 0x1400bf003
movzx esi, byte [rbp + 0x100]
test sil, sil
je 0x1400bf24e
mov r14d, r10d
jmp 0x1400bf02e
xor r8d, r8d
mov edx, edi
mov rcx, r9
call fcn.1400e6440
mov r14d, eax
test eax, eax
jns 0x1400bf021
mov eax, ntohs
jmp 0x1400bed08
jle 0x1400bf02b
mov ebx, eax
mov dword [rsp + 0x34], eax
jmp 0x1400bf050
xor r10d, r10d
mov r9d, dword [rsp + 0x50]
lea rdx, [r13 + 0x1a8]
xor r8d, r8d
mov dword [rsp + 0x20], r10d
lea ecx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ebx, dword [rsp + 0x34]
xor edx, edx
mov esi, edx
test r12d, r12d
je 0x1400bf175
mov edi, edx
jmp 0x1400bf072
xor edx, edx
mov rax, qword [rsp + 0x48]
lea ecx, [r15 + rsi]
mov r15, qword [rsp + 0x68]
lea r8, [rsp + 0x78]
add rcx, rcx
movzx ebx, dx
mov r15, qword [rdi + r15]
movsx r12d, word [rax + rcx*8 + 0xa]
mov rcx, r15
mov dword [rsp + 0x78], edx
xor edx, edx
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x1400bf104
mov r8d, dword [rsp + 0x78]
mov ecx, eax
test r8b, 0x29
mov eax, r8d
setne cl
movzx edx, cx
or dx, 4
and al, 0x32
mov eax, r8d
cmove dx, cx
movzx ecx, dx
or cx, 2
and al, 4
cmove cx, dx
cmp qword [rsp + 0x70], 0
movzx ebx, cx
je 0x1400bf104
test r14d, r14d
jne 0x1400bf104
test r8d, r8d
je 0x1400bf104
inc dword [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [r13 + 0x1a8]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x1400bf152
mov rdx, qword [r13 + 0x1a8]
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
test r14d, r14d
je 0x1400bf152
movzx ecx, bx
mov eax, r12d
or cx, 1
and eax, 0x300
mov eax, r12d
cmove cx, bx
movzx edx, cx
or dx, 4
and al, 0x10
mov eax, 0x400
cmove dx, cx
movzx ebx, dx
or bx, 2
and r12d, eax
cmove bx, dx
mov rax, qword [rsp + 0x68]
inc esi
mov r15d, dword [rsp + 0x40]
mov word [rax + rdi + 0xa], bx
add rdi, 0x10
cmp esi, dword [rsp + 0x3c]
jb 0x1400bf070
mov ebx, dword [rsp + 0x34]
cmp dword [rsp + 0x40], 0
je 0x1400bf234
mov r15, qword [r13 + 8]
mov qword [rsp + 0x60], r15
test r15, r15
je 0x1400bf234
lea rdx, [rbp - 0x58]
mov rcx, r15
call fcn.1400bd4c0
mov r15d, dword [rsp + 0x34]
lea rsi, [rbp - 0x58]
mov r12d, eax
mov ebx, 1
xor eax, eax
mov edi, eax
lea ecx, [rdi + 0x10]
mov edx, ebx
bts edx, ecx
test r12d, edx
je 0x1400bf214
mov rcx, qword [rsi]
lea r8, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x78], eax
call qword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x1400bf1ef
cmp qword [rsp + 0x70], 0
je 0x1400bf1ef
test r14d, r14d
jne 0x1400bf1ef
cmp dword [rsp + 0x78], r14d
je 0x1400bf1ef
inc r15d
mov rdx, qword [r13 + 0x1a8]
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
inc edi
rol ebx, 1
add rsi, 8
mov eax, 0
cmp edi, 5
jb 0x1400bf1b3
mov dword [rsp + 0x34], r15d
mov r15, qword [rsp + 0x60]
mov r15, qword [r15 + 0x10]
mov qword [rsp + 0x60], r15
test r15, r15
jne 0x1400bf192
mov ebx, dword [rsp + 0x34]
mov rcx, qword [r13 + 0x1a8]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
mov edi, dword [rsp + 0x38]
movzx esi, byte [rbp + 0x100]
jmp 0x1400bf252
mov ebx, dword [rsp + 0x34]
cmp byte [rsp + 0x30], 0
je 0x1400bf26b
mov rcx, qword [rsp + 0x48]
mov rax, qword [fcn.140143670]
call qword [case.0x1400cc851.0]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x1400bf277
mov dword [rax], ebx
cmp byte [rbp + 0xf8], 0
je 0x1400bf2cf
test edi, edi
jne 0x1400bf2cf
test sil, sil
jne 0x1400bf2cf
cmp dword [r13], 0xbab1e
mov dword [rsp + 0x3c], edi
jne 0x1400bf2cf
cmp byte [r13 + 0x1b3], sil
jne 0x1400bf2cf
lea rdx, [rsp + 0x3c]
mov rcx, r13
call fcn.1400bea80
test eax, eax
jne 0x1400bf2cf
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x1400bf2cf
mov ecx, dword [rsp + 0x50]
cmp eax, ecx
jg 0x1400bf2c5
test eax, eax
jns 0x1400bf2c7
mov eax, ecx
movsxd rcx, eax
call fcn.1400e69d0
xor eax, eax
jmp 0x1400bed08
mov eax, 1
jmp 0x1400bed10