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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xdc], 0
je 0x4f5c7e
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe8]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4f5c31
cmp eax, 0x3e8
jbe 0x4f5c3d
jmp 0x4f5c33
jle 0x4f5c3d
mov eax, dword [ebp - 4]
mov byte [eax + 0xdc], 0
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xec]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4f5c65
cmp eax, 0x28
jbe 0x4f5c7e
jmp 0x4f5c67
jle 0x4f5c7e
mov eax, dword [ebp - 4]
inc dword [eax + 0xe4]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xec], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xdc], 0
je 0x4f5e58
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
mov eax, dword [0x529bec]
mov eax, dword [eax]
cmp eax, dword [ebp - 4]
jne 0x4f5cbb
mov dword [ebp - 0x1c], 0x18
jmp 0x4f5cd2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x12], 0
je 0x4f5ccb
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x4f5cd2
mov dword [ebp - 0x1c], 0xc
cmp dword [ebp - 0x1c], 0x18
jne 0x4f5ce1
mov dword [ebp - 0x20], 0xc
jmp 0x4f5ce8
mov dword [ebp - 0x20], 8
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0
jle 0x4f5d14
mov edx, dword [ebp - 0x1c]
add edx, 0x3f3
mov eax, dword [0x52a078]
mov eax, dword [eax]
mov eax, dword [eax + 0x3a4]
call fcn.00494f5c
mov dword [ebp - 0x18], eax
jmp 0x4f5d32
mov edx, dword [ebp - 0x1c]
add edx, 0x3f2
mov eax, dword [0x52a078]
mov eax, dword [eax]
mov eax, dword [eax + 0x3a4]
call fcn.00494f5c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4f5da1
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.0048ee8c
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 1
mov eax, dword [ebp - 0x18]
call fcn.0048f0ec
sar eax, 1
jns 0x4f5d5c
adc eax, 0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xb8]
sub edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
add eax, eax
add edx, eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add ecx, dword [eax + 0x110]
mov eax, dword [ebp - 4]
add ecx, dword [eax + 0xf4]
sub ecx, 0xa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
add eax, eax
sub ecx, eax
mov eax, dword [ebp - 8]
call fcn.0048e884
cmp dword [ebp - 0xc], 0
jl 0x4f5e58
push ebp
lea eax, [ebp - 0xc]
call fcn.004f5b48
pop ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x1c]
mov eax, dword [0x52a078]
mov eax, dword [eax]
mov eax, dword [eax + 0x3a4]
call fcn.00494f5c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4f5e4b
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.0048ee8c
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 1
mov eax, dword [ebp - 0x18]
call fcn.0048f0ec
sar eax, 1
jns 0x4f5dfd
adc eax, 0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xb8]
sub edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
add eax, eax
add edx, eax
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x20]
add edx, eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add ecx, dword [eax + 0x110]
mov eax, dword [ebp - 4]
add ecx, dword [eax + 0xf4]
sub ecx, 0xa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe4]
add eax, eax
sub ecx, eax
mov eax, dword [ebp - 8]
call fcn.0048e884
inc dword [ebp - 0x10]
cmp dword [ebp - 0xc], 0
jge 0x4f5dab
mov esp, ebp
pop ebp
ret 4