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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 0x10], 3
jae 0x4c7886
xor eax, eax
jmp 0x4c7ab5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005281f0
add esp, 0xc
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 0x10]
sub edx, 3
mov dword [ebp - 4], edx
jns 0x4c78ba
xor eax, eax
jmp 0x4c7ab5
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jge 0x4c7aa0
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x210], 0
je 0x4c7aa0
cmp dword [0x5fa5b4], 0
jle 0x4c78ff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
mov edx, dword [0x5fa5b4]
imul edx, edx, 0x3e8
cmp eax, edx
jle 0x4c78ff
xor eax, eax
jmp 0x4c7ab5
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004c7850
test eax, eax
jne 0x4c7911
jmp 0x4c78ba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx - 3]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 2
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x4c7957
xor eax, eax
jmp 0x4c7ab5
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
push 0x58bd3c
mov eax, dword [ebp - 0x10]
push eax
call fcn.00420b60
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4c798e
push 0x58bd40
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00420b60
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4c7a54
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jge 0x4c79ef
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 1]
sub edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x4c79ed
xor eax, eax
jmp 0x4c7ab5
jmp 0x4c79ab
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.00529140
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4c7a3c
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
movsx ecx, byte [eax - 1]
cmp ecx, 0xd
jne 0x4c7a23
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
mov byte [edx - 1], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
movsx ecx, byte [eax - 1]
cmp ecx, 0xa
jne 0x4c7a3c
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
mov byte [edx - 1], 0
push 0x58bd44
mov eax, dword [ebp + 0xc]
push eax
call fcn.0052a320
add esp, 8
mov eax, 1
jmp 0x4c7ab5
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
jge 0x4c7a9b
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x4c7a99
xor eax, eax
jmp 0x4c7ab5
jmp 0x4c7a61
jmp 0x4c78ba
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x210], 0
jne 0x4c7ab0
xor eax, eax
jmp 0x4c7ab5
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc