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

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
add ebx, 8
mov esi, dword [0x585ebc]
xor eax, eax
push ebp
push 0x53e9c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
cmp eax, dword [edx + 0x460]
jne 0x53e69b
mov byte [0x58a468], 1
jmp 0x53e6a2
mov byte [0x58a468], 2
mov byte [0x58a3dc], 0
mov byte [0x58a3dd], 0
mov byte [0x58a3de], 1
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 1
jg 0x53e9a7
mov eax, dword [ebp + 8]
inc dword [eax - 0xc]
mov eax, dword [ebp + 8]
push eax
call fcn.0053e1f4
pop ecx
cmp byte [0x58a54c], 1
je 0x53e6ea
cmp byte [0x58a54c], 7
jne 0x53e75c
cmp dword [0x58a3a8], 0
jne 0x53e6fe
cmp dword [0x58a3a4], 0
jbe 0x53e75c
jmp 0x53e700
jle 0x53e75c
mov eax, dword [ebx]
mov dl, byte [eax + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov cl, 0xc
call fcn.00567bf4
cmp al, 1
jne 0x53e75c
lea edx, [ebp - 8]
mov eax, dword [0x5858c0]
call fcn.00405c64
lea eax, [ebp - 8]
push eax
push dword [0x58a3a8]
push dword [0x58a3a4]
lea eax, [ebp - 0xc]
call fcn.00408f54
mov edx, dword [ebp - 0xc]
pop eax
call fcn.00403e90
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
xor ecx, ecx
call fcn.004a728c
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
mov byte [eax + 0x58a3db], 0
mov eax, dword [ebx]
mov word [eax + 0x17c], 0
mov eax, dword [ebx]
xor edx, edx
call fcn.0057ad24
cmp byte [0x58a54c], 1
je 0x53e782
cmp byte [0x58a54c], 7
jne 0x53e7fc
cmp dword [0x58a3a8], 0
jne 0x53e796
cmp dword [0x58a3a4], 0
jbe 0x53e7fc
jmp 0x53e798
jle 0x53e7fc
mov eax, dword [ebx]
mov dl, byte [eax + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov cl, 0xc
call fcn.00567bf4
cmp al, 1
je 0x53e7fc
lea edx, [ebp - 8]
mov eax, dword [0x585c14]
call fcn.00405c64
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x10]
call fcn.00403e90
mov ecx, dword [ebp - 8]
mov eax, dword [ebx]
mov dl, 2
call fcn.004ab4c0
lea edx, [ebp - 8]
mov eax, dword [0x585c14]
call fcn.00405c64
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x10]
call fcn.00403e90
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.00579b38
jmp 0x53e848
lea edx, [ebp - 8]
mov eax, dword [0x5857d4]
call fcn.00405c64
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x10]
call fcn.00403e90
mov ecx, dword [ebp - 8]
mov eax, dword [ebx]
mov dl, 2
call fcn.004ab4c0
lea edx, [ebp - 8]
mov eax, dword [0x5857d4]
call fcn.00405c64
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x10]
call fcn.00403e90
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.00579b38
call sub.kernel32.dll_GetTickCount
mov edi, eax
push 0
push 1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
xor ecx, ecx
mov dl, 1
call fcn.004aab5c
mov eax, dword [ebp - 8]
mov edx, dword [esi]
call fcn.00403f98
jne 0x53e84f
mov eax, dword [ebx]
cmp word [eax + 0x17c], 0x18f
jle 0x53e884
mov byte [ebp - 1], 0
jmp 0x53e9a7
mov eax, dword [ebx]
cmp word [eax + 0x17c], 0
jg 0x53e8b6
mov eax, dword [ebx]
cmp byte [eax + 0x200], 0
je 0x53e8b6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov dl, 5
call fcn.00566770
call sub.kernel32.dll_GetTickCount
sub eax, edi
cmp eax, 0x1388
jbe 0x53e84f
lea edx, [ebp - 8]
mov eax, dword [0x585cb8]
call fcn.00405c64
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
call fcn.00403e90
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
xor ecx, ecx
call fcn.004a728c
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x140]
call fcn.00403ca4
mov eax, dword [ebx]
call fcn.0057ad7c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x200], 0
je 0x53e952
mov eax, dword [ebx]
cmp byte [eax + 0x200], 0
je 0x53e952
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [esi]
call fcn.00403f98
je 0x53e952
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 1
call fcn.004563bc
cmp eax, 5
je 0x53e952
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 1
call fcn.004563bc
cmp eax, 4
jne 0x53e9a7
mov eax, dword [ebx]
mov ax, word [eax + 0x17c]
cmp ax, 0xc8
jl 0x53e970
cmp ax, 0x12b
jg 0x53e970
test ax, ax
je 0x53e970
xor eax, eax
jmp 0x53e972
mov al, 1
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dx, word [eax + 0x17c]
cmp dx, 0x12b
jg 0x53e993
mov eax, dword [ebp + 8]
test dx, dx
je 0x53e993
xor eax, eax
jmp 0x53e995
mov al, 1
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
pop ecx
call fcn.0056d178
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53e9c9
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403c30
ret