Function at 0x538850
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x54
call fcn.00508180
test eax, eax
jne 0x538870
jmp 0x538a48
push 0x40
push 0
mov eax, dword [ebp - 4]
add eax, 0x2f8
push eax
call fcn.00588e50
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
add ecx, 0x54
call fcn.00508180
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x5388aa
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x538a48
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x54
call fcn.005081c0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5388d3
jmp 0x5388a1
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10], 5
jne 0x538a43
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax + 0x60]
cmp ecx, 0x4b0
jae 0x5388f3
jmp 0x5388a1
mov eax, dword [ebp - 4]
add eax, 0x318
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
jmp 0x538917
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xc
jge 0x538938
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + eax*4 + 0xa4], 0
je 0x538936
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x53890e
mov ecx, dword [ebp - 0x10]
call fcn.00535c00
mov ecx, dword [ebp - 0x10]
call fcn.00538a50
mov dword [ebp - 0xc], 0
jmp 0x53895a
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xc
jge 0x53897e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor edx, edx
cmp dword [ecx + eax*4 + 0xa4], 0
setne dl
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
mov byte [eax + 8], dl
jmp 0x538951
cmp dword [ebp - 0x18], 0
jne 0x5389a8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x50]
cmp edx, dword [ecx + 0x64]
jne 0x5389a8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax + 0x60]
cmp ecx, 0x2ee0
jae 0x5389a8
jmp 0x5388a1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x50]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x60], ecx
mov dword [ebp - 0xc], 0
jmp 0x5389e8
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
cdq
sub eax, edx
sar eax, 1
push eax
push 1
call fcn.005188d0
add esp, 8
cmp dword [ebp - 0xc], eax
jg 0x538a3a
mov eax, dword [ebp - 4]
add eax, 0x1b4
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x40
mov edx, dword [ebp - 4]
add edx, 0x2f8
push edx
push 0x10
mov ecx, dword [ebp - 4]
call fcn.0053a2e0
movzx eax, al
test eax, eax
jne 0x538a38
call fcn.005370c0
movzx eax, al
test eax, eax
je 0x538a38
jmp 0x538a48
jmp 0x5389df
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
jmp 0x5388a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret