Function at 0x50873c
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 0x5087ce
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 0x508781
cmp eax, 0x3e8
jbe 0x50878d
jmp 0x508783
jle 0x50878d
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 0x5087b5
cmp eax, 0x28
jbe 0x5087ce
jmp 0x5087b7
jle 0x5087ce
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 0x5089a8
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 [0x5328dc]
mov eax, dword [eax]
cmp eax, dword [ebp - 4]
jne 0x50880b
mov dword [ebp - 0x1c], 0x18
jmp 0x508822
mov eax, dword [ebp - 4]
cmp byte [eax + 0x12], 0
je 0x50881b
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x508822
mov dword [ebp - 0x1c], 0xc
cmp dword [ebp - 0x1c], 0x18
jne 0x508831
mov dword [ebp - 0x20], 0xc
jmp 0x508838
mov dword [ebp - 0x20], 8
mov eax, dword [ebp - 4]
cmp dword [eax + 0xe0], 0
jle 0x508864
mov edx, dword [ebp - 0x1c]
add edx, 0x3f3
mov eax, dword [0x532d5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
call fcn.0048b5ac
mov dword [ebp - 0x18], eax
jmp 0x508882
mov edx, dword [ebp - 0x1c]
add edx, 0x3f2
mov eax, dword [0x532d5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
call fcn.0048b5ac
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5088f1
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.00485344
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 1
mov eax, dword [ebp - 0x18]
call fcn.004855a4
sar eax, 1
jns 0x5088ac
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.00484d3c
cmp dword [ebp - 0xc], 0
jl 0x5089a8
push ebp
lea eax, [ebp - 0xc]
call fcn.00508698
pop ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x1c]
mov eax, dword [0x532d5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
call fcn.0048b5ac
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x50899b
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x18]
call fcn.00485344
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 1
mov eax, dword [ebp - 0x18]
call fcn.004855a4
sar eax, 1
jns 0x50894d
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.00484d3c
inc dword [ebp - 0x10]
cmp dword [ebp - 0xc], 0
jge 0x5088fb
mov esp, ebp
pop ebp
ret 4