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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x970
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0xe0]
mov r8d, Ordinal_133
call fcn.1402767a0
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, Ordinal_133
call fcn.1402767a0
mov rbx, qword [r14 + 0x1b0]
mov edx, 0x3c
mov r15, qword [r14 + 0x18]
mov rcx, r14
mov r9, qword [rbx + 0x1ec0]
lea r8, [rbx + 0x1cb8]
sub r9, qword [rbx + 0x1eb8]
add r9, 2
call fcn.140165940
mov rax, qword [rbx + 0x1eb8]
movzx ecx, byte [rax]
inc rax
mov qword [rbx + 0x1eb8], rax
cmp ecx, 0x18
je 0x1401667c3
cmp ecx, 0x23
je 0x14016677e
cmp ecx, 0x27
jne 0x140166879
mov qword [rsp + 0x30], 0
lea r8, str._c_c_c_c
mov dword [rsp + 0x28], ecx
mov ebp, 0x800
mov edx, ebp
mov qword [rsp + 0x998], rsi
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x9a0], rdi
mov r9d, 0xff
mov dword [rsp + 0x20], 0xfa
call fcn.140145810
mov rsi, qword [rbx + 0x1cb0]
mov edi, 4
test rsi, rsi
je 0x1401666ee
or rbx, 0xffffffffffffffff
nop dword [rax]
mov rcx, qword [rsi]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x140166616
inc rax
add rax, rdi
cmp rax, 0x7fa
jae 0x1401666e1
mov byte [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsi]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
lea rdx, str._127____1____127s
mov word [rsp + 0x50], 0
call fcn.140056b40
cmp eax, 1
jne 0x140166697
lea rax, [rsp + 0xe0]
mov rdx, rbp
lea rcx, [rsp + 0x160]
mov qword [rsp + 0x20], rax
sub rdx, rdi
lea r8, str._c_s
add rcx, rdi
xor r9d, r9d
call fcn.140145810
jmp 0x1401666db
cmp eax, 2
jl 0x1401666e1
lea rax, [rsp + 0x60]
mov rdx, rbp
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x160]
lea rax, [rsp + 0xe0]
mov dword [rsp + 0x28], 1
sub rdx, rdi
mov qword [rsp + 0x20], rax
add rcx, rdi
lea r8, str._c_s_c_s
xor r9d, r9d
call fcn.140145810
movsxd rcx, eax
add rdi, rcx
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x140166610
sub rbp, rdi
mov dword [rsp + 0x20], 0xf0
lea rcx, [rsp + 0x160]
mov rdx, rbp
add rcx, rdi
lea r8, str._c_c
mov r9d, 0xff
call fcn.140145810
mov rcx, qword [r15 + 0x1e8]
lea r8d, [rdi + 2]
xor r9d, r9d
lea rdx, [rsp + 0x160]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x998]
test eax, eax
jns 0x140166759
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, r14
mov r8d, eax
call fcn.140140960
mov r9, rdi
lea r8, [rsp + 0x162]
mov edx, 0x3e
mov rcx, r14
call fcn.140165940
mov rdi, qword [rsp + 0x9a0]
jmp 0x140166879
lea rax, [rbx + 0x1c28]
or rbx, 0xffffffffffffffff
nop dword [rax]
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140166790
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_41
jmp 0x140166801
lea rax, [rbx + 0x1c08]
or rbx, 0xffffffffffffffff
nop
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x1401667d0
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_27
mov r9d, 0xff
mov dword [rsp + 0x20], 0xfa
lea r8, str._c_c_c_c_s_c_c
mov edx, 0x800
lea rcx, [rsp + 0x160]
call fcn.140145810
mov rcx, qword [r15 + 0x1e8]
lea r8d, [rbx + 6]
xor r9d, r9d
lea rdx, [rsp + 0x160]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140166860
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, r14
mov r8d, eax
call fcn.140140960
lea r9, [rbx + 4]
mov edx, 0x3e
lea r8, [rsp + 0x162]
mov rcx, r14
call fcn.140165940
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x9a8]
add rsp, 0x970
pop r15
pop r14
pop rbp
ret