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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x54fb34
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x55007d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x104]
mov edi, eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00539d24
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, 1
mov ecx, dword [eax]
call dword [ecx + 0x14]
test al, al
je 0x54fc30
cmp word [ebx], 0x20
jb 0x54fbb9
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x18]
call fcn.004ccf00
mov eax, dword [ebp - 0x44]
movzx edx, word [ebx]
mov ecx, dword [eax]
call dword [ecx + 0x34]
test al, al
jne 0x54fbb9
push 0
call sub.user32.dll_MessageBeep
mov word [ebx], 0
movzx eax, word [ebx]
cmp eax, 0x18
jg 0x54fbcf
je 0x54fbde
sub eax, 8
je 0x54fbde
sub eax, 0xe
je 0x54fbde
jmp 0x54fc30
sub eax, 0x1b
je 0x54fc07
add eax, 0xfffffffb
sub eax, 0xffe0
jae 0x54fc30
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
call fcn.004ccf00
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx + 0x24]
test al, al
jne 0x54fc30
mov word [ebx], 0
jmp 0x54fc30
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x20]
call fcn.004ccf00
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
call dword [edx + 0x28]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x128]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f8], 0
je 0x550020
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x306]
sub al, 2
jae 0x54fc6b
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.00531d80
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
add eax, 0x300
call fcn.0040a288
jmp 0x54fc9f
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x2fc]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x324]
jb 0x54fc91
mov eax, dword [ebp - 4]
add eax, 0x300
call fcn.00409ea8
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x2fc], eax
movzx eax, word [ebx]
sub ax, 8
je 0x54fceb
dec ax
je 0x54fcbc
sub ax, 0x12
jne 0x54fe88
jmp 0x550020
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f9], 0
je 0x550004
mov eax, dword [ebp - 4]
call fcn.0054e1f4
test al, al
je 0x550004
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0054e218
jmp 0x550004
push ebp
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.0054fa44
pop ecx
test al, al
je 0x54fd0e
push ebp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0054fa88
pop ecx
jmp 0x54fe72
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x306]
sub al, 2
jae 0x54fd3a
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00531d80
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x54fd33
sub eax, 4
mov eax, dword [eax]
test eax, eax
setg al
jmp 0x54fd3c
xor eax, eax
test al, al
je 0x54fe2a
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00531d80
mov esi, dword [ebp - 0x10]
jmp 0x54fd55
dec esi
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0042ae2c
cmp al, 2
je 0x54fd54
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0040addc
push 0
push 0xffffffffffffffff
push 0x14e
mov eax, dword [ebp - 4]
call fcn.0053afa4
push eax
call sub.user32.dll_SendMessageW
lea eax, [ebp - 0x5c]
push eax
mov edx, dword [ebp - 0x14]
inc edx
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0xc]
call fcn.0040addc
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 8]
call fcn.0040ac6c
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.00531dd4
mov eax, esi
dec eax
movzx eax, ax
dec esi
movzx edx, si
shl edx, 0x10
or eax, edx
push eax
push 0
push 0x142
mov eax, dword [ebp - 4]
call fcn.0053afa4
push eax
call sub.user32.dll_SendMessageW
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.00531d80
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
add eax, 0x300
call fcn.0040a288
jmp 0x54fe72
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
mov dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x54fe16
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebp - 4]
add eax, 0x300
mov ecx, 1
mov edx, esi
call fcn.0040ae24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.0040a36c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.0042ae2c
cmp al, 2
je 0x54fdfe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
test eax, eax
je 0x54fe5e
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
add edx, 0x300
mov ecx, 1
xchg edx, eax
call fcn.0040ae24
mov word [ebx], 0
mov eax, dword [ebp - 4]
mov si, 0xffad
call fcn.00408504
jmp 0x550004
push ebp
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.0054fa44
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x306], 2
jae 0x54febb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
test eax, eax
je 0x54feb3
sub eax, 4
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
setg al
jmp 0x54febd
xor eax, eax
test al, al
je 0x54ff2a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
mov esi, eax
test esi, esi
je 0x54fed5
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
mov ecx, dword [ebp - 0x10]
mov edx, 1
call fcn.0040addc
push dword [ebp - 0x64]
lea eax, [ebp - 0x68]
movzx edx, word [ebx]
call fcn.0040aa28
push dword [ebp - 0x68]
lea eax, [ebp - 0x6c]
push eax
mov edx, dword [ebp - 0x14]
inc edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
mov ecx, esi
call fcn.0040addc
push dword [ebp - 0x6c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040acf4
jmp 0x54ff49
lea eax, [ebp - 0x70]
movzx edx, word [ebx]
call fcn.0040aa28
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x300]
lea eax, [ebp - 0xc]
call fcn.0040ac6c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f9], 0
je 0x54ff6b
mov eax, dword [ebp - 4]
call fcn.0054e1f4
test al, al
jne 0x54ff6b
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0054e218
cmp word [ebx], 0xd800
jb 0x54ff79
cmp word [ebx], 0xdfff
jbe 0x54ff7d
xor eax, eax
jmp 0x54ff7f
mov al, 1
test al, al
je 0x54fff0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0053afa4
push eax
lea eax, [ebp - 0x40]
push eax
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x550004
cmp dword [ebp - 0x3c], 0x102
jne 0x550004
lea eax, [ebp - 0x78]
movzx edx, word [ebp - 0x38]
call fcn.0040aa28
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0xc]
call fcn.0040ac6c
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.0055008c
test al, al
je 0x550004
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0053afa4
push eax
lea eax, [ebp - 0x40]
push eax
call sub.user32.dll_PeekMessageW
mov word [ebx], 0
jmp 0x550004
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0055008c
test al, al
je 0x550004
mov word [ebx], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x104]
cmp edi, eax
je 0x550020
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
call fcn.004cd164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x550084
lea eax, [ebp - 0x78]
mov edx, 6
call fcn.00409f08
lea eax, [ebp - 0x60]
call fcn.00409ea8
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00409f08
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.00409f08
lea eax, [ebp - 0x4c]
mov edx, dword [0x49d33c]
mov ecx, 3
call fcn.0040b370
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00409f08
ret