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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x51f7d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x18]
call fcn.00404db0
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 0
mov byte [ebp - 0x2d], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00405080
test eax, eax
jle 0x51f708
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x26]
push eax
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x19]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0051ee58
mov dl, 1
mov eax, dword [0x419ca4]
call fcn.00403f14
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x51f5c9
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0051ce80
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0051bfa0
mov dl, byte [ebp - 0x19]
mov eax, dword [ebp - 8]
call fcn.0051bff8
lea edx, [ebp - 0x3c]
movzx eax, word [ebp - 0x26]
call fcn.00409c7c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
call fcn.0051bfcc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.0051c038
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.0051c0c8
xor eax, eax
push ebp
push 0x51f5b8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x51f56d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x51f563
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x51f563
cmp dword [ebp - 0x14], 0
jle 0x51f3fd
mov eax, dword [0x563c90]
mov eax, dword [eax]
cmp byte [eax + 0x24], 0
je 0x51f3fd
lea eax, [ebp - 0x18]
call fcn.00404db0
jmp 0x51f563
mov eax, dword [ebp - 8]
call fcn.0051d1d0
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 1
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
cdq
cmp edx, dword [esp + 4]
jne 0x51f434
cmp eax, dword [esp]
pop edx
pop eax
ja 0x51f438
jmp 0x51f471
pop edx
pop eax
jle 0x51f471
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x51f45b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004047d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51f795
mov eax, dword [ebp - 8]
call fcn.0051be04
sub al, 2
je 0x51f471
sub al, 2
je 0x51f471
add al, 0xf9
sub al, 5
jae 0x51f40c
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x51f494
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004047d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51f795
mov eax, dword [ebp - 8]
call fcn.0051be04
sub al, 0xb
je 0x51f4a8
sub al, 2
jne 0x51f545
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4b8], 0xc8
je 0x51f4d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.004047d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51f795
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0051c0bc
call fcn.0041ea3c
mov eax, dword [ebp - 8]
call fcn.0051c0bc
mov edx, dword [eax]
call dword [edx]
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.0040540c
mov eax, dword [ebp - 8]
call fcn.0051c0bc
mov edx, dword [eax]
call dword [edx]
push eax
lea eax, [ebp - 0x18]
call fcn.004052d8
push eax
mov eax, dword [ebp - 8]
call fcn.0051c0bc
pop edx
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0051ec50
test al, al
je 0x51f53f
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x18]
call fcn.00407020
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x18]
call fcn.00405048
mov byte [ebp - 0xd], 1
jmp 0x51f563
mov eax, dword [ebp - 8]
call fcn.0051be04
cmp al, 0xe
jne 0x51f557
mov byte [ebp - 0x2d], 1
jmp 0x51f563
inc dword [ebp - 0x14]
dec dword [ebp - 0x38]
jne 0x51f3d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51f58e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51f5bf
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0051c0c8
mov eax, dword [ebp - 0x2c]
call fcn.00403f44
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0051ce80
ret
or byte [eax], al
bswap ecx
xor ebx, ecx
test cx, bp
add edi, ecx
jmp 0x599b58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51f7d7
lea eax, [ebp - 0x44]
call fcn.00404db0
lea eax, [ebp - 0x40]
call fcn.00405508
lea eax, [ebp - 0x3c]
call fcn.00404db0
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404dd4
lea eax, [ebp - 0x18]
call fcn.00404db0
ret