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

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x54ae67
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 0x410], esi
mov eax, dword [esi + 0x1c]
call fcn.00405080
test eax, eax
jle 0x54ac98
mov ax, word [esi + 0x20]
test ax, ax
jne 0x54ac8e
cmp byte [esi + 0x28], 0
jne 0x54ac8e
xor edx, edx
mov eax, dword [esi + 0x1c]
call fcn.00409df4
mov edi, eax
test edi, edi
jle 0x54ac98
cmp edi, 0xffff
jg 0x54ac98
call sub.kernel32.dll_GetTickCount_1
mov dword [esi + 0x2c], eax
cmp dword [ebx + 0x40c], 0
je 0x54abd4
lea eax, [ebx + 0x40c]
call fcn.0040fac4
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4ee590]
call fcn.004f0508
mov dword [ebx + 0x40c], eax
xor edx, edx
mov eax, dword [ebx + 0x40c]
call fcn.004efe20
xor edx, edx
mov eax, dword [ebx + 0x40c]
call fcn.004efee0
mov eax, dword [ebx + 0x40c]
mov dword [eax + 0x54], ebx
mov dword [eax + 0x50], 0x54b034
mov eax, dword [ebx + 0x40c]
mov dword [eax + 0x64], ebx
mov dword [eax + 0x60], 0x54b0a4
mov eax, dword [ebx + 0x40c]
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x88], 0x54b0b4
mov eax, dword [ebx + 0x40c]
mov dword [eax + 0x7c], ebx
mov dword [eax + 0x78], 0x54b0cc
mov eax, dword [esi + 0xc]
call fcn.004d22d0
test al, al
je 0x54ac64
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x40c]
call fcn.004efe60
jmp 0x54ac72
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x40c]
call fcn.004efee0
mov edx, edi
mov eax, dword [ebx + 0x40c]
call fcn.004eff60
mov dl, 1
mov eax, dword [ebx + 0x40c]
call fcn.004efe20
jmp 0x54ac98
cmp ax, 1
je 0x54ac98
cmp ax, 2
mov eax, dword [ebx + 0x410]
cmp byte [eax + 0x22], 0
je 0x54acc3
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebx + 0x410]
sub eax, dword [edx + 0x24]
cmp eax, 0x2bf20
jb 0x54acc3
mov eax, dword [ebx + 0x410]
mov byte [eax + 0x22], 0
mov eax, dword [ebx + 0x410]
cmp byte [eax + 0x22], 0
je 0x54ad12
mov eax, dword [ebx + 0x390]
mov edx, dword [eax + 0x67b]
mov eax, dword [ebx + 0x318]
mov eax, dword [eax + 0x68]
call fcn.0042868c
lea edx, [ebp - 4]
mov eax, dword [0x5641dc]
call fcn.00407114
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x318]
call fcn.00447b34
mov dl, 1
mov eax, ebx
call fcn.0054b468
jmp 0x54ae4c
mov eax, dword [ebx + 0x390]
mov edx, dword [eax + 0x677]
mov eax, dword [ebx + 0x318]
mov eax, dword [eax + 0x68]
call fcn.0042868c
lea edx, [ebp - 8]
mov eax, dword [0x56408c]
call fcn.00407114
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x318]
call fcn.00447b34
mov eax, dword [0x5642f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x32c]
mov eax, dword [eax + 0x68]
mov edx, 0xffffff
call fcn.0042868c
lea edx, [ebp - 0xc]
mov eax, dword [0x56408c]
call fcn.00407114
mov edx, dword [ebp - 0xc]
mov eax, dword [0x5642f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x32c]
call fcn.00447b34
mov eax, dword [0x5641f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x314]
mov eax, dword [eax + 0x68]
mov edx, 0xffffff
call fcn.0042868c
lea edx, [ebp - 0x10]
mov eax, dword [0x56408c]
call fcn.00407114
mov edx, dword [ebp - 0x10]
mov eax, dword [0x5641f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x314]
call fcn.00447b34
mov eax, dword [0x56404c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30c]
mov eax, dword [eax + 0x68]
mov edx, 0xffffff
call fcn.0042868c
lea edx, [ebp - 0x14]
mov eax, dword [0x56408c]
call fcn.00407114
mov edx, dword [ebp - 0x14]
mov eax, dword [0x56404c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30c]
call fcn.00447b34
mov dl, 1
mov eax, ebx
call fcn.0054b468
xor eax, eax
mov dword [ebx + 0x398], eax
mov byte [ebx + 0x39c], 0
lea eax, [ebx + 0x3a0]
call fcn.00404db0
lea eax, [ebx + 0x3a4]
call fcn.00404db0
lea eax, [ebx + 0x3a8]
call fcn.00404db0
xor eax, eax
mov dword [ebx + 0x3ac], eax
push 1
mov cx, word [esi + 0x10]
mov edx, dword [esi + 0xc]
mov eax, ebx
call fcn.0054aa3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ae6e
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404dd4
ret