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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov dword [ebp - 4], eax
cmp dword [0x534350], 0
je 0x4ad331
cmp dword [0x536074], 0
jl 0x4ad1f7
mov eax, dword [ebp - 4]
call fcn.004b5354
test al, al
je 0x4ad1f7
mov eax, dword [ebp - 4]
call fcn.004b5310
test al, al
je 0x4ad1f7
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
cmp eax, dword [0x536074]
jne 0x4acde9
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
cmp eax, dword [0x536080]
je 0x4ad1f7
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
mov dword [ebp - 0xc], eax
mov eax, dword [0x536074]
mov dword [ebp - 0x18], eax
mov eax, dword [0x536080]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0050b410
mov byte [ebp - 0x21], al
mov al, byte [0x5360bc]
sub al, 1
jb 0x4ace3a
je 0x4ad07c
jmp 0x4ad1f7
mov eax, dword [0x534350]
call fcn.0050151c
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov cl, byte [ebp - 0x21]
mov edx, 0xbc3
mov eax, dword [ebp - 4]
call fcn.004b55c8
test al, al
je 0x4ad06d
cmp dword [ebp - 0x20], 0
jle 0x4ad06d
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x21]
call fcn.0050b0d8
mov byte [ebp - 0x24], 1
mov byte [ebp - 0x25], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x5342e8]
call fcn.004c663c
test al, al
jne 0x4ad03b
mov byte [ebp - 0x24], 0
mov byte [ebp - 0x22], 0
cmp byte [ebp - 0x24], 0
jne 0x4acee3
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x21]
call fcn.0050b0d8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004b14c0
test al, al
je 0x4acee3
mov byte [ebp - 0x25], 1
cmp byte [ebp - 0x25], 0
jne 0x4acf9d
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x5342e8]
call fcn.004c6680
test al, al
jne 0x4acf9d
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
mov dword [ebp - 0xc], eax
xor eax, eax
mov al, byte [ebp - 0x21]
call fcn.0050bd24
mov byte [ebp - 0x22], al
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x22]
call fcn.0050b0d8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x534348]
call fcn.005099a4
test al, al
jne 0x4acf99
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
mov dword [ebp - 0xc], eax
xor eax, eax
mov al, byte [ebp - 0x21]
call fcn.0050bd4c
mov byte [ebp - 0x22], al
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x22]
call fcn.0050b0d8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x534348]
call fcn.005099a4
test al, al
je 0x4acf9d
mov byte [ebp - 0x24], 1
jmp 0x4acf9d
mov byte [ebp - 0x24], 1
cmp byte [ebp - 0x24], 0
je 0x4acfd5
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x22]
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
mov dx, 0xbc3
mov eax, dword [0x534350]
call fcn.005005c4
call fcn.00406bb0
mov dword [0x535f44], eax
jmp 0x4ad1f7
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [0x534350]
movzx edx, word [eax + 0xa]
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
mov ecx, dword [ebp - 0x18]
call fcn.0050b410
mov byte [ebp - 0x23], al
mov eax, dword [0x534350]
mov al, byte [eax + 0xc]
cmp al, byte [ebp - 0x23]
je 0x4ad1f7
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
push eax
xor eax, eax
mov al, byte [ebp - 0x23]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x534350]
movzx ecx, word [eax + 8]
mov dx, 0xbc2
mov eax, dword [0x534350]
call fcn.00500504
jmp 0x4ad1f7
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
mov dx, 0xbc3
mov eax, dword [0x534350]
call fcn.005005c4
call fcn.00406bb0
mov dword [0x535f44], eax
jmp 0x4ad1f7
mov dword [0x536074], 0xffffffff
jmp 0x4ad1f7
cmp dword [0x5360c0], 1
jge 0x4ad09f
cmp byte [0x54d839], 0
jbe 0x4ad1ec
cmp byte [0x53a017], 0
jne 0x4ad1ec
mov eax, dword [0x534350]
call fcn.00501534
mov dword [ebp - 0x20], eax
mov eax, dword [0x534350]
cmp byte [eax + 0x1e], 0
jbe 0x4ad0bd
mov byte [ebp - 0x26], 3
jmp 0x4ad0c1
mov byte [ebp - 0x26], 2
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0050b0a0
xor edx, edx
mov dl, byte [ebp - 0x26]
cmp eax, edx
jl 0x4ad1dd
cmp dword [ebp - 0x20], 0
jle 0x4ad1dd
xor ecx, ecx
mov cl, byte [ebp - 0x21]
mov edx, 0xbc5
mov eax, dword [ebp - 4]
call fcn.004b55c8
test al, al
je 0x4ad1d1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [0x534350]
cmp byte [eax + 0x1e], 0
jbe 0x4ad12b
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x21]
call fcn.0050b194
jmp 0x4ad139
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov al, byte [ebp - 0x21]
call fcn.0050b25c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x534350]
movzx ecx, word [eax + 0xa]
mov eax, dword [0x534350]
movzx edx, word [eax + 8]
mov eax, dword [0x5342e8]
call fcn.004c6588
test al, al
je 0x4ad1c0
mov eax, dword [0x534350]
cmp byte [eax + 0x1e], 0
jbe 0x4ad191
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
mov dx, 0xbc1
mov eax, dword [0x534350]
call fcn.005005c4
jmp 0x4ad1b4
mov eax, dword [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 0x21]
push eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
mov dx, 0xbc5
mov eax, dword [0x534350]
call fcn.005005c4
call fcn.00406bb0
mov dword [0x535f44], eax
jmp 0x4ad1f7
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x4ace3a
mov dword [0x536074], 0xffffffff
jmp 0x4ad1f7
mov dword [0x536074], 0xffffffff
jmp 0x4ace3a
inc dword [0x5360c0]
jmp 0x4ace3a
mov dword [0x536074], 0xffffffff
mov eax, dword [0x534350]
cmp word [eax + 0x280], 0
jbe 0x4ad331
mov eax, dword [0x534350]
movzx eax, word [eax + 0x280]
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c4], eax
mov eax, dword [0x534350]
movzx eax, word [eax + 0x282]
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c8], eax
mov eax, dword [0x534350]
cmp word [eax + 0x280], 0xbc9
jne 0x4ad294
mov eax, dword [0x534350]
mov eax, dword [eax + 0x288]
push eax
mov eax, dword [0x534350]
movzx eax, word [eax + 0x282]
push eax
mov eax, dword [0x534350]
mov eax, dword [eax + 0x28c]
push eax
mov eax, dword [0x534350]
mov ecx, dword [eax + 0x284]
mov eax, dword [0x534350]
movzx edx, word [eax + 0x280]
mov eax, dword [ebp - 4]
call fcn.004b3aa0
jmp 0x4ad2cc
mov eax, dword [0x534350]
mov eax, dword [eax + 0x288]
push eax
mov eax, dword [0x534350]
movzx eax, word [eax + 0x282]
push eax
mov eax, dword [0x534350]
mov ecx, dword [eax + 0x284]
mov eax, dword [0x534350]
movzx edx, word [eax + 0x280]
mov eax, dword [ebp - 4]
call fcn.004b39c4
mov eax, dword [0x534350]
mov word [eax + 0x280], 0
cmp dword [0x5360e0], 0xffffffff
je 0x4ad331
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
push eax
mov eax, dword [0x5360e0]
pop edx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x4ad31b
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
push eax
mov eax, dword [0x5360e4]
pop edx
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jl 0x4ad331
mov eax, dword [0x52bf20]
mov eax, dword [eax]
call fcn.004e5f94
mov dword [0x5360e0], 0xffffffff
mov esp, ebp
pop ebp
ret