Function at 0x4a2054
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 [0x544738]
cmp dword [esi], 0
je 0x4a2805
mov eax, dword [0x54488c]
cmp dword [eax], 0
jl 0x4a26f7
mov eax, ebx
call fcn.004adf78
test al, al
je 0x4a26f7
mov eax, ebx
call fcn.004adf4c
test al, al
je 0x4a26f7
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [0x54488c]
cmp eax, dword [edx]
jne 0x4a20ba
mov edx, dword [0x54472c]
mov edx, dword [edx]
mov ecx, dword [esi]
cmp edx, dword [ecx + 0xc]
je 0x4a26f7
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov edi, dword [0x54488c]
mov edi, dword [edi]
mov ebp, dword [0x54472c]
mov ebp, dword [ebp]
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.00527538
mov byte [esp + 0xc], al
mov eax, dword [0x544df8]
mov al, byte [eax]
dec al
je 0x4a210b
dec al
je 0x4a2346
dec al
je 0x4a24cc
jmp 0x4a26f7
mov eax, dword [esi]
call fcn.00514b58
mov dword [esp + 8], eax
xor ecx, ecx
mov cl, byte [esp + 0xc]
mov edx, 0xbc3
mov eax, ebx
call fcn.004ae0d4
test al, al
je 0x4a232e
cmp dword [esp + 8], 0
jle 0x4a232e
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xc]
call fcn.005273f4
mov byte [esp + 0xf], 0
mov eax, dword [0x544574]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
call fcn.00524e28
test al, al
jne 0x4a22f9
mov byte [esp + 0xe], 0
mov byte [esp + 0xd], 0
cmp byte [esp + 0xe], 0
jne 0x4a21b2
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.005273f4
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.004a7bf8
test al, al
je 0x4a21b2
mov byte [esp + 0xf], 1
cmp byte [esp + 0xf], 0
jne 0x4a2270
mov eax, dword [0x544574]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
call fcn.00524e60
test al, al
jne 0x4a2270
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.00527d74
mov byte [esp + 0xd], al
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xd]
call fcn.005273f4
mov eax, dword [0x5451f4]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
call fcn.00502d58
test al, al
jne 0x4a226b
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.00527d84
mov byte [esp + 0xd], al
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xd]
call fcn.005273f4
mov eax, dword [0x5451f4]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
mov edx, dword [esp]
call fcn.00502d58
test al, al
je 0x4a2270
mov byte [esp + 0xe], 1
jmp 0x4a2270
mov byte [esp + 0xe], 1
cmp byte [esp + 0xe], 0
je 0x4a22ac
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.00513c0c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5444a4]
mov dword [edx], eax
jmp 0x4a26f7
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.00527538
mov edx, dword [esi]
cmp al, byte [edx + 0x10]
je 0x4a22e9
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.005138f0
mov eax, dword [0x54488c]
mov dword [eax], 0xffffffff
jmp 0x4a26f7
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.00513c0c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5444a4]
mov dword [edx], eax
jmp 0x4a26f7
mov eax, dword [0x54488c]
mov dword [eax], 0xffffffff
mov eax, dword [0x544df8]
mov byte [eax], 0
jmp 0x4a26f7
mov eax, dword [esi]
call fcn.00514b7c
mov dword [esp + 8], eax
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.005273c8
cmp eax, 2
jl 0x4a210b
cmp dword [esp + 8], 0
jle 0x4a210b
xor ecx, ecx
mov cl, byte [esp + 0xc]
mov edx, 0xbc5
mov eax, ebx
call fcn.004ae0d4
test al, al
je 0x4a24b4
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xc]
call fcn.00527458
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 [0x544574]
mov eax, dword [eax]
call fcn.00524c78
test al, al
jne 0x4a247f
mov byte [esp + 0xe], 0
cmp byte [esp + 0xe], 0
jne 0x4a240d
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.00527458
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.004a7bf8
test al, al
je 0x4a240d
mov byte [esp + 0xf], 1
cmp byte [esp + 0xf], 0
jne 0x4a242a
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 0x4a210b
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.00527458
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.00513c0c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5444a4]
mov dword [edx], eax
jmp 0x4a26f7
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.00513c0c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5444a4]
mov dword [edx], eax
jmp 0x4a26f7
mov eax, dword [0x54488c]
mov dword [eax], 0xffffffff
mov eax, dword [0x544df8]
mov byte [eax], 0
jmp 0x4a26f7
mov eax, dword [esi]
call fcn.00514b7c
mov dword [esp + 8], eax
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.005273c8
cmp eax, 3
jl 0x4a26ce
cmp dword [esp + 8], 0
jle 0x4a26ce
xor ecx, ecx
mov cl, byte [esp + 0xc]
mov edx, 0xbc5
mov eax, ebx
call fcn.004ae0d4
test al, al
je 0x4a26b9
lea ecx, [esp + 4]
mov edx, esp
mov al, byte [esp + 0xc]
call fcn.005274c8
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 [0x544574]
mov eax, dword [eax]
call fcn.00524c78
test al, al
jne 0x4a2687
mov byte [esp + 0xe], 0
cmp byte [esp + 0xe], 0
jne 0x4a2593
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.005274c8
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.004a7bf8
test al, al
je 0x4a2593
mov byte [esp + 0xf], 1
cmp byte [esp + 0xf], 0
jne 0x4a2635
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.00527458
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 [0x544574]
mov eax, dword [eax]
call fcn.00524c78
test al, al
je 0x4a25f7
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 0x4a2346
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.004a7bf8
test al, al
je 0x4a261f
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 0x4a2346
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 0x4a210b
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.005274c8
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.00513c0c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5444a4]
mov dword [edx], eax
jmp 0x4a26f7
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.00513c0c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5444a4]
mov dword [edx], eax
jmp 0x4a26f7
mov eax, dword [0x54488c]
mov dword [eax], 0xffffffff
mov eax, dword [0x544df8]
mov byte [eax], 0
jmp 0x4a26f7
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.005273c8
cmp eax, 2
jl 0x4a210b
cmp dword [esp + 8], 0
jg 0x4a2346
jmp 0x4a210b
mov eax, dword [0x54488c]
mov dword [eax], 0xffffffff
mov eax, dword [0x544df8]
mov byte [eax], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x364]
test eax, eax
jle 0x4a2805
mov dword [ebx + 0x384], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x370]
mov dword [ebx + 0x388], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x364]
cmp eax, 0xbc9
jne 0x4a276b
mov edx, dword [esi]
mov edx, dword [edx + 0x36c]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x370]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x374]
push edx
mov edx, dword [esi]
mov ecx, dword [edx + 0x368]
mov edx, eax
mov eax, ebx
call fcn.004ab9b8
jmp 0x4a278e
mov edx, dword [esi]
mov edx, dword [edx + 0x36c]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x370]
push edx
mov edx, dword [esi]
mov ecx, dword [edx + 0x368]
mov edx, eax
mov eax, ebx
call fcn.004ab920
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x364], edx
mov eax, dword [0x544d60]
cmp dword [eax], 0xffffffff
je 0x4a2805
mov eax, dword [0x544d60]
mov eax, dword [eax]
mov edx, dword [esi]
sub eax, dword [edx + 8]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x4a27ce
mov eax, dword [0x544c3c]
mov eax, dword [eax]
mov edx, dword [esi]
sub eax, dword [edx + 0xc]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jl 0x4a2805
mov eax, dword [0x5452a8]
mov eax, dword [eax]
call fcn.004e4200
mov eax, dword [0x5452a8]
mov eax, dword [eax]
call fcn.004e428c
mov eax, dword [0x5452a8]
mov eax, dword [eax]
mov eax, dword [eax + 0x6ac]
xor edx, edx
call fcn.00473e94
mov eax, dword [0x544d60]
mov dword [eax], 0xffffffff
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret