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

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov dword [esp + 0x14], ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x10053e14]
mov edi, 1
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [0x10053e24], edi
mov dword [esp + 0x14], ebx
jne 0x1000be75
or esi, 0xffffffff
jmp 0x1000be96
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, dword [0x10053e14]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 5
add esi, eax
mov eax, dword [0x10053e08]
cmp eax, ebx
jne 0x1000bea9
mov eax, 0x3c
mov dword [0x10053e08], eax
imul eax, eax, 0x3e8
lea ecx, [esp + 0x1c]
mov ebp, eax
push ecx
call fcn.1000c100
add esp, 4
test eax, eax
jne 0x1000becf
mov dword [esp + 0x10], 0xfffffffe
jmp 0x1000c0e3
mov edx, dword [0x10053e0c]
push edx
call fcn.1000b6b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1000bef1
mov dword [esp + 0x10], 0xfffffffd
jmp 0x1000c0e3
mov eax, dword [0x10053e18]
test eax, eax
je 0x1000bf33
lea eax, [esp + 0x1c]
push 0
push eax
push ebx
mov dword [esp + 0x20], edi
call fcn.1000b880
add esp, 0xc
test eax, eax
jne 0x1000bf1f
mov dword [esp + 0x10], 0xfffffffc
jmp 0x1000c0e3
mov ecx, dword [0x10053e10]
test ecx, ecx
je 0x1000bf33
mov eax, edi
xor edx, edx
div ecx
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
mov edi, eax
add edi, ebp
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x1000c0e3
mov ecx, dword [esp + 0x18]
push 0
call fcn.1000cf20
test eax, eax
je 0x1000bf66
mov edx, dword [esp + 0x18]
mov dword [edx + 0x18], 1
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x10053e20]
test eax, eax
je 0x1000c017
mov eax, dword [0x10053e0c]
mov ecx, dword [0x10015668]
cmp eax, ecx
mov dword [0x10053e20], 0
je 0x1000bfbb
test ebx, ebx
je 0x1000bfa3
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov eax, dword [0x10053e0c]
push eax
call fcn.1000b6b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000c0c7
mov eax, dword [0x10053e14]
mov dword [esp + 0x14], 0
test eax, eax
jne 0x1000bfd1
or esi, 0xffffffff
jmp 0x1000bff2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, dword [0x10053e14]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 5
add esi, ecx
mov eax, dword [0x10053e08]
test eax, eax
jne 0x1000c005
mov eax, 0x3c
mov dword [0x10053e08], eax
imul eax, eax, 0x3e8
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
add edi, ebp
mov eax, dword [0x10053e18]
test eax, eax
je 0x1000c0b6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x1000c0b6
cmp eax, esi
lea edi, [eax + ebp]
jbe 0x1000c059
push 0x14
push 0x10053e08
push str.SnapParam
mov dword [0x10053e18], 0
call fcn.1000b500
add esp, 0xc
jmp 0x1000c0b6
call fcn.10005f80
test eax, eax
je 0x1000c06c
push 0
call fcn.10005f30
add esp, 4
mov edx, dword [0x10053e0c]
push edx
push ebx
call fcn.1000b830
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1000c0d1
mov ecx, dword [esp + 0x14]
mov eax, ecx
inc ecx
push eax
lea eax, [esp + 0x20]
push eax
push ebx
mov dword [esp + 0x20], ecx
call fcn.1000b880
add esp, 0xc
test eax, eax
je 0x1000c0db
mov ecx, dword [0x10053e10]
test ecx, ecx
je 0x1000c0b6
mov eax, dword [esp + 0x14]
xor edx, edx
div ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x1000bf4c
jmp 0x1000c0e3
mov dword [esp + 0x10], 0xfffffffb
jmp 0x1000c0e3
mov dword [esp + 0x10], 0xfffffffa
jmp 0x1000c0e3
mov dword [esp + 0x10], 0xfffffff9
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [0x10053e24], 0
pop ebx
add esp, 0x214
ret