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

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
lea rcx, [0x14002db18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.140001240
lea rcx, [0x14002db18]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
jne 0x14000cd54
lea rcx, str.Fail_To_Get_UDP_Data_Socket_n
add rsp, 0x50
pop rbx
jmp fcn.140002780
mov eax, dword [rbx + 0x3c]
test eax, eax
jle 0x14000cead
mov ecx, dword [rbx + 0x40]
test ecx, ecx
js 0x14000cead
cmp eax, ecx
jle 0x14000cead
cmp dword [rbx + 0x118], 0
jne 0x14000cda7
mov eax, dword [rbx + 0x50]
cmp dword [rbx + 0x60], eax
jne 0x14000cda7
movzx eax, word [rbx + 0x5e]
cmp word [rbx + 0x4e], ax
je 0x14000cda7
lea rcx, str.The_Client_Is_Very_Likely_Behide_NAT_Or_In_Different_Network_From_The_Socks_Server_n
mov word [rbx + 0x4e], ax
mov dword [rbx + 0x118], 1
call fcn.140002780
mov ecx, dword [rbx + 0x60]
mov qword [rsp + 0x70], rdi
cmp ecx, dword [rbx + 0x50]
jne 0x14000cfca
movzx eax, word [rbx + 0x4e]
cmp word [rbx + 0x5e], ax
jne 0x14000cfca
cmp dword [rbx + 0x118], 0
mov qword [rsp + 0x60], rsi
jne 0x14000cdea
lea rcx, str.The_Client_Is_On_The_Same_Network_To_The_Socks_Server_n
mov dword [rbx + 0x118], 1
call fcn.140002780
cmp dword [0x14002dfe8], 0
je 0x14000ce2b
mov ecx, dword [rbx + 0x50]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, eax
call fcn.1400013d0
movzx ecx, word [rbx + 0x4e]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rcx, [0x140025b9c]
movzx edx, ax
call fcn.14001347c
mov edx, dword [rbx + 0x3c]
lea rcx, str.____Socks_Server_:__d_Bytes_n
call fcn.14001347c
mov r8, qword [rbx + 0x30]
lea rcx, [r8 + 0xa]
call fcn.140001410
mov ecx, dword [rbx + 0x3c]
xor edi, edi
mov qword [rsp + 0x40], rdi
movsxd rsi, eax
mov qword [rsp + 0x38], rdi
lea rdx, [rsi + r8 + 0xa]
sub ecx, esi
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [rbx + 0xa8], rdx
lea rdx, [rbx + 0xa0]
lea r9, [rsp + 0x68]
mov dword [rdx], ecx
lea rcx, [rbx + 0x5c]
lea r8d, [rdi + 1]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbx + 8]
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x14000cecf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14000ceb3
mov rcx, qword [rbx]
call fcn.140005d50
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret
lea rcx, str.The_Control_Socket_Is_Full_n
call fcn.140002780
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret
mov ecx, dword [rsp + 0x68]
test ecx, ecx
je 0x14000ceda
add dword [rbx + 0x40], ecx
mov eax, dword [rbx + 0x3c]
sub eax, esi
cmp dword [rbx + 0x40], eax
jne 0x14000cf4a
mov r8d, dword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov dword [rbx + 0x40], edi
mov dword [rbx + 0x3c], edi
call fcn.140013cc0
mov eax, dword [rbx + 0xc0]
test eax, eax
je 0x14000cf46
test al, 0x20
je 0x14000cf2c
mov r8, qword [rbx + 8]
add eax, 0xffffffe0
mov r9d, 1
mov dword [rbx + 0xc0], eax
mov rcx, qword [0x14002dfe0]
mov edx, 0x403
call qword [sym.imp.USER32.dll_PostMessageA]
cmp dword [rbx + 0xc0], edi
je 0x14000cf46
lea rcx, str.UDP_Event_Quest_Has_More_Events_n
call fcn.140002780
mov ecx, dword [rsp + 0x68]
jmp 0x14000cf4a
mov ecx, dword [rsp + 0x68]
cmp dword [0x14002dfe8], edi
je 0x14000cf9e
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 + 0x68]
lea rcx, str._:__d_Bytes.Header_Length:__d_Bytes_Less_Above_n_n
mov r8d, esi
call fcn.14001347c
mov ecx, dword [rsp + 0x68]
test ecx, ecx
je 0x14000cea3
lock xadd dword [0x14002e1d4], ecx
mov eax, dword [rsp + 0x68]
lock xadd dword [0x14002e1dc], eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret
cmp dword [0x14002dfe8], 0
je 0x14000d008
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 [rbx + 0x3c]
lea rcx, str.____Socks_Server_:__d_Bytes_n
call fcn.14001347c
mov rax, qword [rbx + 0x30]
xor edi, edi
lea rdx, [rbx + 0xa0]
mov byte [rax + 2], 0
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x40], rdi
mov byte [rax + 1], 0
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x38], rdi
mov byte [rax], 0
mov rax, qword [rbx + 0x30]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov byte [rax + 3], 1
mov eax, dword [rbx + 0x60]
mov rcx, qword [rbx + 0x30]
mov dword [rcx + 4], eax
mov rcx, qword [rbx + 0x30]
movzx eax, word [rbx + 0x5e]
mov word [rcx + 8], ax
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 8]
mov qword [rbx + 0xa8], rax
mov eax, dword [rbx + 0x3c]
lea r9, [rsp + 0x68]
add eax, 0xa
lea r8d, [rdi + 1]
mov dword [rdx], eax
lea rax, [rbx + 0x4c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x14000d0c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14000d0b0
mov rcx, qword [rbx]
call fcn.140005d50
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret
lea rcx, str.The_Data_Socket_Is_Full_n
call fcn.140002780
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret
mov ecx, dword [rsp + 0x68]
test ecx, ecx
je 0x14000d0d2
add dword [rbx + 0x40], ecx
mov eax, dword [rbx + 0x3c]
add eax, 0xa
cmp dword [rbx + 0x40], eax
jne 0x14000d143
mov r8d, dword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov dword [rbx + 0x40], edi
mov dword [rbx + 0x3c], edi
call fcn.140013cc0
mov eax, dword [rbx + 0xc0]
test eax, eax
je 0x14000d13f
test al, 0x20
je 0x14000d125
mov r8, qword [rbx + 8]
add eax, 0xffffffe0
mov r9d, 1
mov dword [rbx + 0xc0], eax
mov rcx, qword [0x14002dfe0]
mov edx, 0x403
call qword [sym.imp.USER32.dll_PostMessageA]
cmp dword [rbx + 0xc0], edi
je 0x14000d13f
lea rcx, str.UDP_Event_Quest_Has_More_Events_n
call fcn.140002780
mov ecx, dword [rsp + 0x68]
jmp 0x14000d143
mov ecx, dword [rsp + 0x68]
cmp dword [0x14002dfe8], edi
je 0x14000d194
lea rcx, str.Socks_Server___
call fcn.14001347c
mov ecx, dword [rbx + 0x50]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, eax
call fcn.1400013d0
movzx ecx, word [rbx + 0x4e]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rcx, [0x140025b9c]
movzx edx, ax
call fcn.14001347c
mov edx, dword [rsp + 0x68]
lea rcx, str._:__d_Bytes._10_Bytes_Plus_Above_n_n
call fcn.14001347c
mov ecx, dword [rsp + 0x68]
test ecx, ecx
je 0x14000cea8
lock xadd dword [0x14002e1d4], ecx
mov eax, dword [rsp + 0x68]
lock xadd dword [0x14002e1dc], eax
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbx
ret