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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x5346fc
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x534c45
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.00519264
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 0x5347f8
cmp word [ebx], 0x20
jb 0x534781
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.004b0e48
mov eax, dword [ebp - 0x44]
movzx edx, word [ebx]
mov ecx, dword [eax]
call dword [ecx + 0x34]
test al, al
jne 0x534781
push 0
call sub.user32.dll_MessageBeep
mov word [ebx], 0
movzx eax, word [ebx]
cmp eax, 0x18
jg 0x534797
je 0x5347a6
sub eax, 8
je 0x5347a6
sub eax, 0xe
je 0x5347a6
jmp 0x5347f8
sub eax, 0x1b
je 0x5347cf
add eax, 0xfffffffb
sub eax, 0xffe0
jae 0x5347f8
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.004b0e48
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx + 0x24]
test al, al
jne 0x5347f8
mov word [ebx], 0
jmp 0x5347f8
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.004b0e48
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 0x534be8
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x306]
sub al, 2
jae 0x534833
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.00511590
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
add eax, 0x300
call fcn.00408b28
jmp 0x534867
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 0x534859
mov eax, dword [ebp - 4]
add eax, 0x300
call fcn.00408748
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x2fc], eax
movzx eax, word [ebx]
sub ax, 8
je 0x5348b3
dec ax
je 0x534884
sub ax, 0x12
jne 0x534a50
jmp 0x534be8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f9], 0
je 0x534bcc
mov eax, dword [ebp - 4]
call fcn.00532dbc
test al, al
je 0x534bcc
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00532de0
jmp 0x534bcc
push ebp
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.0053460c
pop ecx
test al, al
je 0x5348d6
push ebp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00534650
pop ecx
jmp 0x534a3a
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x306]
sub al, 2
jae 0x534902
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00511590
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x5348fb
sub eax, 4
mov eax, dword [eax]
test eax, eax
setg al
jmp 0x534904
xor eax, eax
test al, al
je 0x5349f2
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00511590
mov esi, dword [ebp - 0x10]
jmp 0x53491d
dec esi
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0042978c
cmp al, 2
je 0x53491c
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00409b24
push 0
push 0xffffffffffffffff
push 0x14e
mov eax, dword [ebp - 4]
call fcn.0051a434
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.00409b24
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 8]
call fcn.00409954
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.005115e4
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.0051a434
push eax
call sub.user32.dll_SendMessageW
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.00511590
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
add eax, 0x300
call fcn.00408b28
jmp 0x534a3a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
mov dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x5349de
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebp - 4]
add eax, 0x300
mov ecx, 1
mov edx, esi
call fcn.00409b6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.00408c40
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.0042978c
cmp al, 2
je 0x5349c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
test eax, eax
je 0x534a26
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
add edx, 0x300
mov ecx, 1
xchg edx, eax
call fcn.00409b6c
mov word [ebx], 0
mov eax, dword [ebp - 4]
mov si, 0xffad
call fcn.00406ca4
jmp 0x534bcc
push ebp
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.0053460c
pop ecx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x306], 2
jae 0x534a83
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
test eax, eax
je 0x534a7b
sub eax, 4
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
setg al
jmp 0x534a85
xor eax, eax
test al, al
je 0x534af2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
mov esi, eax
test esi, esi
je 0x534a9d
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.00409b24
push dword [ebp - 0x64]
lea eax, [ebp - 0x68]
movzx edx, word [ebx]
call fcn.00409710
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.00409b24
push dword [ebp - 0x6c]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004099dc
jmp 0x534b11
lea eax, [ebp - 0x70]
movzx edx, word [ebx]
call fcn.00409710
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x300]
lea eax, [ebp - 0xc]
call fcn.00409954
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f9], 0
je 0x534b33
mov eax, dword [ebp - 4]
call fcn.00532dbc
test al, al
jne 0x534b33
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00532de0
cmp word [ebx], 0xd800
jb 0x534b41
cmp word [ebx], 0xdfff
jbe 0x534b45
xor eax, eax
jmp 0x534b47
mov al, 1
test al, al
je 0x534bb8
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0051a434
push eax
lea eax, [ebp - 0x40]
push eax
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x534bcc
cmp dword [ebp - 0x3c], 0x102
jne 0x534bcc
lea eax, [ebp - 0x78]
movzx edx, word [ebp - 0x38]
call fcn.00409710
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0xc]
call fcn.00409954
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.00534c54
test al, al
je 0x534bcc
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0051a434
push eax
lea eax, [ebp - 0x40]
push eax
call sub.user32.dll_PeekMessageW
mov word [ebx], 0
jmp 0x534bcc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00534c54
test al, al
je 0x534bcc
mov word [ebx], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x104]
cmp edi, eax
je 0x534be8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
call fcn.004b1174
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x534c4c
lea eax, [ebp - 0x78]
mov edx, 6
call fcn.004087a8
lea eax, [ebp - 0x60]
call fcn.00408748
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004087a8
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004087a8
lea eax, [ebp - 0x4c]
mov edx, dword [0x482b5c]
mov ecx, 3
call fcn.0040a23c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004087a8
ret