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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
lea rcx, [0x14002db18]
mov edi, edx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.1400010b0
lea rcx, [0x14002db18]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
jne 0x14000caaf
lea rcx, str.OnConnect:_Fail_To_Handle_Session_n
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
jmp fcn.140002780
mov qword [rsp + 0x60], rsi
lea rcx, str.UDP_Resolve_Host_n
xor esi, esi
mov dword [rbx + 0x120], esi
call fcn.140002780
test edi, edi
jne 0x14000ccde
cmp qword [rbx + 0x110], rsi
je 0x14000ccde
cmp qword [rbx + 0x108], rsi
je 0x14000caed
mov qword [rbx + 0x108], rsi
lock add dword [0x14002e1f8], 1
mov rax, qword [rbx + 0x110]
mov r8, qword [rbx + 0x30]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov ecx, dword [rax]
mov dword [rsp + 0x70], esi
mov dword [rbx + 0x60], ecx
lea rcx, [r8 + 0xa]
call fcn.140001410
mov ecx, dword [rbx + 0x3c]
movsxd rdi, eax
sub ecx, edi
lea rdx, [rdi + r8 + 0xa]
mov qword [rbx + 0xa8], rdx
lea rdx, [rbx + 0xa0]
mov dword [rdx], ecx
cmp dword [rbx + 0x11c], esi
jne 0x14000cb74
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea rcx, [rbx + 0x5c]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x70]
mov r8d, 1
mov dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_WSASendTo]
jmp 0x14000cba8
mov rcx, qword [rbx + 0x10]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea rax, [rbx + 0x5c]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r8d, 1
mov dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x14000cbda
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14000ccee
lea rcx, str.The_Data_Socket_Is_Full_n
call fcn.140002780
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x14000cbe5
add dword [rbx + 0x40], eax
mov eax, dword [rbx + 0x3c]
sub eax, edi
cmp dword [rbx + 0x40], eax
jne 0x14000cc04
mov r8d, dword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov dword [rbx + 0x40], esi
mov dword [rbx + 0x3c], esi
call fcn.140013cc0
mov eax, dword [rbx + 0xc0]
test eax, eax
je 0x14000cc65
test al, 0x20
je 0x14000cc3f
add eax, 0xffffffe0
mov dword [rbx + 0xc0], eax
cmp dword [rbx + 0x11c], esi
jne 0x14000cc3f
mov r8, qword [rbx + 8]
mov rcx, qword [0x14002dfe0]
mov r9d, 1
mov edx, 0x403
call qword [sym.imp.USER32.dll_PostMessageA]
cmp dword [rbx + 0xc0], esi
je 0x14000cc65
lea rcx, str.UDP_Event_Quest_Has_More_Events_n
call fcn.140002780
mov edx, dword [rbx + 0xc0]
lea rcx, [0x140025bb4]
call fcn.14001347c
cmp dword [0x14002dfe8], esi
je 0x14000ccb2
lea rcx, str.Socks_Server___
call fcn.14001347c
mov ecx, dword [rbx + 0x60]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, eax
call fcn.1400013d0
movzx ecx, word [rbx + 0x5e]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rcx, [0x140025b9c]
movzx edx, ax
call fcn.14001347c
mov edx, dword [rsp + 0x70]
lea rcx, str._:__d_Bytes_Sent_n_n
call fcn.14001347c
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x14000ccf6
lock xadd dword [0x14002e1d4], eax
mov eax, dword [rsp + 0x70]
lock xadd dword [0x14002e1dc], eax
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
cmp qword [rbx + 0x108], rsi
je 0x14000ccee
mov qword [rbx + 0x108], rsi
mov rcx, qword [rbx]
call fcn.140005d50
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret