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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
mov esi, dword [0x53e6d8]
cmp dword [esi], 0
je 0x4a2ee3
mov eax, dword [0x53e824]
cmp dword [eax], 0
jl 0x4a2ddd
mov eax, ebx
call fcn.004ae26c
test al, al
je 0x4a2ddd
mov eax, ebx
call fcn.004ae240
test al, al
je 0x4a2ddd
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [0x53e824]
cmp eax, dword [edx]
jne 0x4a27ba
mov edx, dword [0x53e6cc]
mov edx, dword [edx]
mov ecx, dword [esi]
cmp edx, dword [ecx + 0xc]
je 0x4a2ddd
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov edi, dword [0x53e824]
mov edi, dword [edi]
mov ebp, dword [0x53e6cc]
mov ebp, dword [ebp]
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.005388ac
mov byte [esp + 0xc], al
mov eax, dword [0x53ed98]
mov al, byte [eax]
sub al, 1
jb 0x4a2809
je 0x4a2a3c
dec al
je 0x4a2bba
jmp 0x4a2ddd
mov eax, dword [esi]
call fcn.0052006c
mov dword [esp + 8], eax
xor ecx, ecx
mov cl, byte [esp + 0xc]
mov edx, 0xbc3
mov eax, ebx
call fcn.004ae3b0
test al, al
je 0x4a2a2c
cmp dword [esp + 8], 0
jle 0x4a2a2c
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xc]
call fcn.00538768
mov byte [esp + 0xf], 0
mov eax, dword [0x53e520]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
call fcn.00510ca8
test al, al
jne 0x4a29f7
mov byte [esp + 0xe], 0
mov byte [esp + 0xd], 0
cmp byte [esp + 0xe], 0
jne 0x4a28b0
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xc]
call fcn.00538768
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.004a8390
test al, al
je 0x4a28b0
mov byte [esp + 0xf], 1
cmp byte [esp + 0xf], 0
jne 0x4a296e
mov eax, dword [0x53e520]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
call fcn.00510ce0
test al, al
jne 0x4a296e
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
xor eax, eax
mov al, byte [esp + 0xc]
call fcn.005390e8
mov byte [esp + 0xd], al
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xd]
call fcn.00538768
mov eax, dword [0x53f170]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
call fcn.0050a91c
test al, al
jne 0x4a2969
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
xor eax, eax
mov al, byte [esp + 0xc]
call fcn.005390f8
mov byte [esp + 0xd], al
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xd]
call fcn.00538768
mov eax, dword [0x53f170]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
call fcn.0050a91c
test al, al
je 0x4a296e
mov byte [esp + 0xe], 1
jmp 0x4a296e
mov byte [esp + 0xe], 1
cmp byte [esp + 0xe], 0
je 0x4a29aa
mov eax, dword [esp + 4]
push eax
xor eax, eax
mov al, byte [esp + 0x11]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc3
call fcn.0051f124
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53e458]
mov dword [edx], eax
jmp 0x4a2ddd
push ebp
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, edi
call fcn.005388ac
mov edx, dword [esi]
cmp al, byte [edx + 0x10]
je 0x4a29e7
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
push edx
and eax, 0xff
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [esi]
mov dx, 0xbc2
call fcn.0051ee08
mov eax, dword [0x53e824]
mov dword [eax], 0xffffffff
jmp 0x4a2ddd
mov eax, dword [esp + 4]
push eax
xor eax, eax
mov al, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc3
call fcn.0051f124
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53e458]
mov dword [edx], eax
jmp 0x4a2ddd
mov eax, dword [0x53e824]
mov dword [eax], 0xffffffff
jmp 0x4a2ddd
mov eax, dword [esi]
call fcn.00520090
mov dword [esp + 8], eax
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.0053873c
cmp eax, 2
jl 0x4a2809
cmp dword [esp + 8], 0
jle 0x4a2809
xor ecx, ecx
mov cl, byte [esp + 0xc]
mov edx, 0xbc5
mov eax, ebx
call fcn.004ae3b0
test al, al
je 0x4a2baa
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xc]
call fcn.005387cc
mov byte [esp + 0xf], 0
mov eax, dword [esp]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov eax, dword [0x53e520]
mov eax, dword [eax]
call fcn.00510af8
test al, al
jne 0x4a2b75
mov byte [esp + 0xe], 0
cmp byte [esp + 0xe], 0
jne 0x4a2b03
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xc]
call fcn.005387cc
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.004a8390
test al, al
je 0x4a2b03
mov byte [esp + 0xf], 1
cmp byte [esp + 0xf], 0
jne 0x4a2b20
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
jmp 0x4a2809
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xc]
call fcn.005387cc
mov eax, dword [esp + 4]
push eax
xor eax, eax
mov al, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc5
call fcn.0051f124
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53e458]
mov dword [edx], eax
jmp 0x4a2ddd
mov eax, dword [esp + 4]
push eax
xor eax, eax
mov al, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc5
call fcn.0051f124
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53e458]
mov dword [edx], eax
jmp 0x4a2ddd
mov eax, dword [0x53e824]
mov dword [eax], 0xffffffff
jmp 0x4a2ddd
mov eax, dword [esi]
call fcn.00520090
mov dword [esp + 8], eax
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.0053873c
cmp eax, 3
jl 0x4a2db4
cmp dword [esp + 8], 0
jle 0x4a2db4
xor ecx, ecx
mov cl, byte [esp + 0xc]
mov edx, 0xbc5
mov eax, ebx
call fcn.004ae3b0
test al, al
je 0x4a2da7
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xc]
call fcn.0053883c
mov byte [esp + 0xf], 0
mov eax, dword [esp]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov eax, dword [0x53e520]
mov eax, dword [eax]
call fcn.00510af8
test al, al
jne 0x4a2d75
mov byte [esp + 0xe], 0
cmp byte [esp + 0xe], 0
jne 0x4a2c81
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xc]
call fcn.0053883c
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.004a8390
test al, al
je 0x4a2c81
mov byte [esp + 0xf], 1
cmp byte [esp + 0xf], 0
jne 0x4a2d23
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xc]
call fcn.005387cc
mov eax, dword [esp]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov eax, dword [0x53e520]
mov eax, dword [eax]
call fcn.00510af8
test al, al
je 0x4a2ce5
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
jmp 0x4a2a3c
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.004a8390
test al, al
je 0x4a2d0d
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
jmp 0x4a2a3c
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
jmp 0x4a2809
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xc]
call fcn.0053883c
mov eax, dword [esp + 4]
push eax
xor eax, eax
mov al, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc1
call fcn.0051f124
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53e458]
mov dword [edx], eax
jmp 0x4a2ddd
mov eax, dword [esp + 4]
push eax
xor eax, eax
mov al, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 0xbc1
call fcn.0051f124
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x53e458]
mov dword [edx], eax
jmp 0x4a2ddd
mov eax, dword [0x53e824]
mov dword [eax], 0xffffffff
jmp 0x4a2ddd
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.0053873c
cmp eax, 2
jl 0x4a2809
cmp dword [esp + 8], 0
jg 0x4a2a3c
jmp 0x4a2809
mov eax, dword [0x53e824]
mov dword [eax], 0xffffffff
mov eax, dword [esi]
mov eax, dword [eax + 0x334]
test eax, eax
jle 0x4a2ee3
mov dword [ebx + 0x380], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x340]
mov dword [ebx + 0x384], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x334]
cmp eax, 0xbc9
jne 0x4a2e49
mov edx, dword [esi]
mov edx, dword [edx + 0x33c]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x340]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x344]
push edx
mov edx, dword [esi]
mov ecx, dword [edx + 0x338]
mov edx, eax
mov eax, ebx
call fcn.004abd48
jmp 0x4a2e6c
mov edx, dword [esi]
mov edx, dword [edx + 0x33c]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x340]
push edx
mov edx, dword [esi]
mov ecx, dword [edx + 0x338]
mov edx, eax
mov eax, ebx
call fcn.004abcb0
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x334], edx
mov eax, dword [0x53ecfc]
cmp dword [eax], 0xffffffff
je 0x4a2ee3
mov eax, dword [0x53ecfc]
mov eax, dword [eax]
mov edx, dword [esi]
sub eax, dword [edx + 8]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x4a2eac
mov eax, dword [0x53ebdc]
mov eax, dword [eax]
mov edx, dword [esi]
sub eax, dword [edx + 0xc]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jl 0x4a2ee3
mov eax, dword [0x53f218]
mov eax, dword [eax]
call fcn.004e1c3c
mov eax, dword [0x53f218]
mov eax, dword [eax]
call fcn.004e1cc8
mov eax, dword [0x53f218]
mov eax, dword [eax]
mov eax, dword [eax + 0x6ac]
xor edx, edx
call fcn.0047d810
mov eax, dword [0x53ecfc]
mov dword [eax], 0xffffffff
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret