Function at 0x140005a60
Capabilities:
Send data
Send data on socket
Terminate thread

Disassembly:
mov r11, rsp
push rbx
push r15
sub rsp, 0x268
mov rax, qword [0x140116008]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [r11 + 0x10], rbp
mov rbx, rcx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
call fcn.140009a00
mov rbp, rax
call fcn.140009a00
movsxd rcx, dword [rbx + 0xb60]
sub rax, rbp
mov esi, 0x100
cmp rax, rcx
jae 0x140005b48
lea rdi, str.yapi
nop word [rax + rax]
mov rcx, rbx
call fcn.14001d430
test eax, eax
je 0x140005b48
mov rcx, qword [0x140118680]
test rcx, rcx
jne 0x140005b01
mov dword [rsp + 0x28], 0x112c
lea r9, str.API_not_initialized
lea r8, str._s___s:_d_
mov qword [rsp + 0x20], rdi
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.1400217a0
jmp 0x140005b25
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x140005b25
call fcn.14000e430
mov rcx, qword [0x140118680]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140009a00
movsxd rcx, dword [rbx + 0xb60]
sub rax, rbp
cmp rax, rcx
jb 0x140005ac0
mov dword [rbx + 0x100], 3
cmp dword [rbx + 0xf0], 1
jne 0x140005b65
mov dword [rbx + 0xf0], 2
mov rcx, qword [rbx + 0xd8]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x260], r14
mov byte [rsp + 0x40], 0
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
xor r15d, r15d
test eax, eax
jns 0x140005c41
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.ytcp
mov edx, esi
mov dword [rsp + 0x20], 0x114
lea r8, str._s:_d:tcp__d_:
mov r14d, eax
lea rcx, [rsp + 0x50]
call fcn.1400217a0
mov rdi, 0xffffffffffffffff
lea rax, [rsp + 0x50]
mov rcx, rdi
inc rcx
cmp byte [rax + rcx], r15b
jne 0x140005bd4
movsxd rax, ecx
mov edx, esi
sub edx, ecx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], edx
lea rcx, [rsp + 0x50]
add rcx, rax
mov r9d, 0x400
mov qword [rsp + 0x20], rcx
mov r8d, r14d
mov ecx, 0x1200
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rax, [rsp + 0x50]
inc rdi
cmp byte [rax + rdi], r15b
jne 0x140005c15
movsxd rax, edi
test edi, edi
jle 0x140005c41
movzx ecx, byte [rsp + rax + 0x4f]
cmp cl, 0xa
je 0x140005c34
cmp cl, 0xd
jne 0x140005c41
mov byte [rsp + rax + 0x4f], r15b
dec rax
test rax, rax
jg 0x140005c25
mov ecx, dword [rbx + 0xf0]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x140005c76
call fcn.140009a00
movsxd rcx, dword [rbx + 0xb60]
sub rax, rbp
cmp rax, rcx
jae 0x140005c70
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140005c41
mov ecx, dword [rbx + 0xf0]
lea eax, [rcx - 1]
mov edx, r15d
mov rcx, qword [rbx + 0xf8]
cmp eax, 1
setbe dl
test edx, edx
je 0x140005cad
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140005cc5
mov rcx, qword [rbx + 0xf8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140005cc5
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x80
lea rdx, [rsp + 0x150]
mov r9d, r15d
lea rax, [rbx + 0x960]
nop dword [rax]
movzx r8d, word [rax]
cmp r8w, 0xffff
je 0x140005cfc
test ecx, ecx
je 0x140005cf9
mov word [rdx], r8w
add rdx, 2
dec ecx
inc r9d
add rax, 2
sub rsi, 1
jne 0x140005ce0
movsxd rbp, r9d
test r9d, r9d
jle 0x140005d68
mov rdi, r15
movzx esi, word [rsp + rdi*2 + 0x150]
cmp si, 0xffff
je 0x140005d60
movzx ecx, si
call fcn.1400183b0
test eax, eax
js 0x140005d55
cdqe
lea r14, [rax*8 + 0x5160]
mov rax, qword [0x140118680]
mov rcx, qword [r14 + rax]
test rcx, rcx
je 0x140005d55
call fcn.14001d380
mov rax, qword [0x140118680]
mov qword [r14 + rax], r15
movzx edx, si
mov rcx, rbx
call fcn.140002230
inc rdi
cmp rdi, rbp
jl 0x140005d11
mov r9, qword [0x140118680]
mov r8d, r15d
mov r14, qword [rsp + 0x260]
mov rax, r15
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x288]
lea rcx, [r9 + 0x5060]
nop dword [rax]
mov rdx, qword [rcx]
test rdx, rdx
je 0x140005dad
cmp rdx, rbx
je 0x140005dbf
inc r8d
inc rax
add rcx, 8
cmp rax, 0x20
jl 0x140005da0
jmp 0x140005dca
movsxd rax, r8d
mov qword [r9 + rax*8 + 0x5060], r15
mov rcx, rbx
call fcn.140005800
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14004ee60
add rsp, 0x268
pop r15
pop rbx
ret