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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov byte [eax + edx - 1], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
sub eax, 3
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x4387e1
xor eax, eax
jmp 0x438aa0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x10], 0
je 0x438a87
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0xea60
jbe 0x43880c
jmp 0x438a87
cmp dword [ebp - 8], 0
jg 0x438833
mov edx, dword [ebp - 0x10]
mov byte [edx], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046b430
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 1
jmp 0x438aa0
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.00438780
test eax, eax
je 0x43887e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 2
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
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 0x43887c
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
xor eax, eax
jmp 0x438aa0
jmp 0x438883
jmp 0x4387ea
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
mov dword [ebp - 0x18], 0
push 0x49780c
mov eax, dword [ebp - 0x10]
push eax
call fcn.0046b360
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x438963
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x24], 0
jmp 0x4388d3
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0xc]
jge 0x4388fa
push 0
push 1
lea ecx, [ebp - 0x1d]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4388f8
xor eax, eax
jmp 0x438aa0
jmp 0x4388ca
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
mov byte [ecx], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.0046b430
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x438937
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x1c]
movsx ecx, byte [eax - 1]
cmp ecx, 0xd
jne 0x438937
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x1c]
mov byte [edx - 1], 0
push 0x497810
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046b270
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0046b430
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, 1
jmp 0x438aa0
push 0x497814
mov eax, dword [ebp - 0x10]
push eax
call fcn.0046b360
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x438a30
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0x29], 0
mov dword [ebp - 0x30], 0
jmp 0x4389a3
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0xc]
jge 0x4389ca
push 0
push 1
lea ecx, [ebp - 0x29]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4389c8
xor eax, eax
jmp 0x438aa0
jmp 0x43899a
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
mov byte [ecx], 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.0046b430
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x438a07
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x28]
movsx ecx, byte [eax - 1]
cmp ecx, 0xa
jne 0x438a07
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x28]
mov byte [edx - 1], 0
push 0x497818
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046b270
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0046b430
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, 1
jmp 0x438aa0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x34], 0
jmp 0x438a46
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0xc]
jge 0x438a70
push 0
push 1
lea edx, [ebp - 0x11]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x438a6e
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
xor eax, eax
jmp 0x438aa0
jmp 0x438a3d
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4387ea
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0046b430
add esp, 4
test eax, eax
jbe 0x438a9e
mov eax, 1
jmp 0x438aa0
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc