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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004048c4
xor eax, eax
push ebp
push 0x54cfe6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov byte [ebp - 9], 0
cmp byte [0x5d6b48], 0
je 0x54cd60
mov eax, dword [ebp - 4]
mov edx, 0x54d000
call fcn.00404820
je 0x54cfc3
cmp byte [0x5d6a10], 0
je 0x54cd8f
mov eax, dword [ebp - 4]
mov edx, 0x54d014
call fcn.00404820
je 0x54cfc3
mov eax, dword [ebp - 4]
mov edx, 0x54d024
call fcn.00404820
je 0x54cfc3
cmp dword [ebp - 4], 0
je 0x54cfc3
mov edx, dword [ebp - 4]
mov eax, 0x54d038
call fcn.00404a18
test eax, eax
jle 0x54cdc1
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [esi + 0x71c]
cmp eax, dword [esi + 0x720]
jb 0x54cfc3
cmp byte [esi + 0x788], 0
je 0x54cdd4
cmp dword [ebp - 8], 2
jne 0x54cfc3
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, 0x5d7100
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00404678
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00404820
jne 0x54ce04
mov eax, esi
call fcn.005c6bc8
test al, al
jne 0x54ce04
mov bl, 1
jmp 0x54ce10
inc dword [ebp - 0x10]
add esi, 0x35
cmp dword [ebp - 0x10], 0x2e
jne 0x54cdde
test bl, bl
je 0x54ce82
mov eax, dword [ebp - 4]
call fcn.005c6d08
test al, al
je 0x54ce2a
mov eax, dword [ebp - 0x10]
call fcn.005c4b40
jmp 0x54ce79
cmp dword [ebp - 8], 2
je 0x54ce3d
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.005c7ae0
jmp 0x54ce79
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.005c7bfc
mov eax, dword [ebp - 4]
mov edx, 0x54d000
call fcn.00404820
jne 0x54ce79
mov eax, dword [ebp - 4]
call fcn.005c13c0
dec eax
jg 0x54ce79
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.005c46cc
test al, al
je 0x54ce79
mov eax, dword [ebp - 0x10]
call fcn.005c4b40
mov byte [ebp - 9], 1
jmp 0x54cfc3
xor ebx, ebx
mov eax, dword [0x5d7004]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x54ceef
inc edi
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [0x5d7004]
call fcn.00419afc
mov esi, eax
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.00404678
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
call fcn.00404820
jne 0x54cee9
lea eax, [ebp - 0x20]
lea edx, [esi + 0x13]
call fcn.00404678
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
call fcn.005c462c
test al, al
je 0x54cee9
mov bl, 1
mov eax, dword [ebp - 0x14]
call fcn.005c4b40
mov byte [ebp - 9], 1
jmp 0x54ceef
inc dword [ebp - 0x10]
dec edi
jne 0x54ce99
test bl, bl
jne 0x54cfc3
cmp byte [0x5d8744], 0
jne 0x54cfc3
mov eax, dword [ebp - 4]
mov edx, 0x54d000
call fcn.00404820
jne 0x54cf3e
mov eax, dword [ebp - 4]
call fcn.005c13c0
test eax, eax
jne 0x54cf3e
mov eax, 0x54d044
call fcn.005c13c0
test eax, eax
jne 0x54cf3e
mov eax, 0x5d6ee8
mov edx, 0x54d05c
call fcn.00404468
jmp 0x54cf76
mov eax, dword [ebp - 4]
mov edx, 0x54d014
call fcn.00404820
jne 0x54cf76
mov eax, dword [ebp - 4]
call fcn.005c13c0
test eax, eax
jne 0x54cf76
mov eax, 0x54d074
call fcn.005c13c0
test eax, eax
jne 0x54cf76
mov eax, 0x5d6ee8
mov edx, 0x54d088
call fcn.00404468
cmp dword [ebp - 8], 0
jne 0x54cf97
xor eax, eax
call fcn.005c6e50
dec eax
jge 0x54cf97
mov eax, 0x5d6ee8
mov edx, 0x54d0a0
call fcn.00404468
jmp 0x54cfb9
cmp dword [ebp - 8], 1
jne 0x54cfb9
mov eax, 1
call fcn.005c6e50
dec eax
jge 0x54cfb9
mov eax, 0x5d6ee8
mov edx, 0x54d0b4
call fcn.00404468
call sub.kernel32.dll_GetTickCount_1
mov dword [0x5d6eec], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54cfed
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404438
lea eax, [ebp - 4]
call fcn.00404414
ret