Function at 0x14000dd00
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r12
sub rsp, 0x40
xor r12d, r12d
mov rbx, rcx
movsxd rcx, dword [rcx + 0x3c]
mov esi, r8d
mov rbp, rdx
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0x60], r12d
test ecx, ecx
je 0x14000debf
cmp ecx, dword [rbx + 0x40]
jle 0x14000de7d
test r8d, r8d
je 0x14000dd75
cmp dword [rbx + 0x48], 3
jne 0x14000debf
mov eax, dword [rbx + 0xc0]
test al, 1
jne 0x14000dda4
inc eax
mov dword [rbx + 0xc0], eax
cmp dword [0x14002dfe8], r12d
je 0x14000dda4
lea edx, [r12 + 1]
lea rcx, str.Event_Queue_Plus__d_n
call fcn.14001347c
jmp 0x14000dda4
mov eax, dword [rbx + 0xc0]
test al, 2
jne 0x14000dda4
lea r8d, [rax + 2]
mov dword [rbx + 0xc0], r8d
cmp dword [0x14002dfe8], r12d
je 0x14000dda4
lea rcx, str.Event_Queue_Plus__d._Queue:__d_n
mov edx, 2
call fcn.14001347c
cmp dword [rbx + 0xe0], r12d
jne 0x14000de94
test byte [rbx + 0xc0], 4
je 0x14000de15
cmp dword [0x14002dfe8], r12d
je 0x14000ddd2
mov rdx, qword [rbx]
lea rcx, str.Post_Write_Event_To_Control_Socket__d_n
call fcn.14001347c
mov r8, qword [rbx]
mov rcx, qword [0x14002dfe0]
mov r9d, 2
mov edx, 0x401
call qword [sym.imp.USER32.dll_PostMessageA]
add dword [rbx + 0xc0], 0xfffffffc
cmp dword [0x14002dfe8], r12d
je 0x14000de15
mov r8d, dword [rbx + 0xc0]
lea rcx, str.Event_Queue_Min__d._Queue:__d_n
mov edx, 4
call fcn.14001347c
test byte [rbx + 0xc0], 8
je 0x14000de94
cmp dword [0x14002dfe8], r12d
je 0x14000de37
mov rdx, qword [rbx + 8]
lea rcx, str.Post_Write_Event_To_Data_Socket__d_n
call fcn.14001347c
mov r8, qword [rbx + 8]
mov rcx, qword [0x14002dfe0]
mov r9d, 2
mov edx, 0x402
call qword [sym.imp.USER32.dll_PostMessageA]
add dword [rbx + 0xc0], 0xfffffff8
cmp dword [0x14002dfe8], r12d
je 0x14000deaf
mov r8d, dword [rbx + 0xc0]
lea rcx, str.Event_Queue_Min__d._Queue:__d_n
mov edx, 8
call fcn.14001347c
jmp 0x14000de94
mov r8d, dword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov dword [rbx + 0x3c], r12d
mov dword [rbx + 0x40], r12d
call fcn.140013cc0
cmp dword [0x14002dfe8], r12d
je 0x14000deaf
mov edx, dword [rbx + 0x3c]
lea rcx, str.Still_Have_Data__d_Bytes_To_Send_n
sub edx, dword [rbx + 0x40]
call fcn.14001347c
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rsi
pop rbp
ret
mov rax, rcx
lea rdx, [rbx + 0xa0]
mov qword [rsp + 0x30], r12
add rax, qword [rbx + 0x30]
lea r9, [rsp + 0x60]
mov r8d, 1
mov qword [rbx + 0xa8], rax
mov eax, dword [rbx + 0x38]
mov qword [rsp + 0x28], r12
sub eax, ecx
mov rcx, rbp
mov dword [rdx], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x14000df45
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14000df35
cmp dword [0x14002dfe8], r12d
je 0x14000df2d
lea rcx, str.Fail_To_Read_Data_From_Data_Socket__d_n
mov rdx, rbp
call fcn.14001347c
mov rcx, qword [rbx]
call fcn.140005d50
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rsi
pop rbp
ret
mov eax, dword [rsp + 0x60]
lea rcx, [0x14002da20]
mov qword [rsp + 0x68], rdi
mov dword [rbx + 0x3c], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rsp + 0x60]
add qword [rbx + 0xc8], rax
lea rcx, [0x14002da20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14002db18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [rbx + 0x48]
lea rcx, [0x14002db18]
mov dword [rbx + 0xb8], eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 3
jne 0x14000dfcf
mov rcx, qword [rbx]
mov edx, 0x258
call fcn.14000d650
test eax, eax
je 0x14000dfcf
cmp dword [0x14002dfe8], r12d
je 0x14000dfcf
lea rcx, str.Set_Time_Out_To__d_Seconds_OK_n
mov edx, 0x258
call fcn.14001347c
lea rcx, [0x14002dac8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [rsp + 0x60]
mov rax, qword [0x14002e1c0]
add rax, rdx
lea rcx, [0x14002dac8]
mov qword [0x14002e1c0], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [rsp + 0x60]
lock xadd dword [0x14002e1bc], edx
mov eax, dword [rsp + 0x60]
lock xadd dword [0x14002e1cc], eax
cmp dword [rbx + 0xf0], r12d
je 0x14000e0c7
test esi, esi
je 0x14000e0c7
cmp dword [rbx + 0x48], 4
je 0x14000e0fb
mov rcx, qword [rbx + 0x30]
lea rdx, [0x1400261c8]
call fcn.140013420
test rax, rax
je 0x14000e0b0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, str.The_Test_Is_Complete
repne scasb al, byte [rdi]
lea rdx, str.The_Test_Is_Complete
not rcx
lea r8, [rcx - 1]
mov rcx, qword [rbx]
call fcn.1400012e0
or rcx, 0xffffffffffffffff
lea rdi, str.The_Test_Is_Complete
mov edx, eax
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp edx, ecx
jne 0x14000e0b0
lea rcx, str.Test_Proxy_Complete_n
call fcn.140002780
lea rcx, str.About_To_Perform_The_Last_Test_n
call fcn.140002780
mov dword [rbx + 0x48], 4
mov dword [rbx + 0xf4], r12d
mov r8d, dword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
xor edx, edx
call fcn.140013cc0
mov dword [rbx + 0x3c], r12d
mov dword [rbx + 0x40], r12d
cmp dword [0x14002dfe8], r12d
je 0x14000e0e3
mov edx, dword [rsp + 0x60]
lea rcx, str.TCP_Read_Socket:__d_Bytes_Read_From__d_n
mov r8, rbp
call fcn.14001347c
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x40
pop r12
pop rsi
pop rbp
ret
mov rax, qword [rbx + 0x30]
lea rdi, str.You_Can_Test_The_Speed_Now
mov ecx, 0x1b
mov rsi, rax
repe cmpsb byte [rsi], byte [rdi]
jne 0x14000e146
mov r8d, dword [rbx + 0x38]
mov edx, 0x41
mov rcx, rax
call fcn.140013cc0
mov edx, dword [rbx + 0x38]
mov r8, qword [rbx]
mov dword [rbx + 0x3c], edx
mov rcx, qword [0x14002dfe0]
mov r9d, 2
mov edx, 0x401
call qword [sym.imp.USER32.dll_PostMessageA]
jmp 0x14000e0c7
lea rdi, str.The_Test_Is_Complete
mov rsi, rax
mov ecx, reloc.WS2_32.dll_setsockopt
repe cmpsb byte [rsi], byte [rdi]
jne 0x14000e0c7
mov r8d, dword [rbx + 0x38]
xor edx, edx
mov rcx, rax
call fcn.140013cc0
mov dword [rbx + 0x3c], r12d
mov dword [rbx + 0x40], r12d
jmp 0x14000e0e3