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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0xa
add esp, 0xfffff004
push eax
dec eax
jne 0x53acdd
mov eax, dword [ebp - 4]
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xa054], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53b1c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 0
lea eax, [ebp - 0x18]
call fcn.00405404
xor ecx, ecx
mov dl, 1
mov eax, dword [0x509d74]
call fcn.0050c1a8
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x53b19c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 0x20]
call fcn.0050c304
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x53acc0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [eax + 0x64], edx
mov dword [eax + 0x60], 0x53ac88
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [eax + 0x8c], edx
mov dword [eax + 0x88], 0x53ac9c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x90]
mov dl, byte [0x53b1dc]
call fcn.0050b3e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004ea724
test al, al
je 0x53adb7
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x20]
call fcn.0050b9e4
jmp 0x53adc5
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x20]
call fcn.0050ba70
mov eax, dword [ebp - 4]
movzx edx, word [eax + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.0050bafc
xor eax, eax
push ebp
push 0x53ae2e
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x24], eax
mov dl, 1
mov eax, dword [ebp - 0x20]
call fcn.0050b964
jmp 0x53ae15
push 0x1f4
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x5a3d60]
mov eax, dword [eax]
call fcn.00475774
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x30], 0
jne 0x53ae24
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x24]
cmp eax, 0xfa0
jbe 0x53adf6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53ae38
mov dword [ebp - 0x2c], 0x1388
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x90]
call fcn.0050aa34
test eax, eax
jle 0x53b106
mov dword [ebp - 0xd], 0x5676cf96
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x53ae80
mov eax, dword [ebp - 0x40]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 9], eax
mov edx, dword [ebp - 9]
add edx, 8
lea eax, [ebp - 0x1c]
call fcn.00405b34
lea eax, [ebp - 0x1c]
call fcn.00405904
mov edx, eax
lea eax, [ebp - 0xd]
mov ecx, 8
call fcn.004032ec
lea eax, [ebp - 0x1c]
call fcn.00405904
add eax, 8
push eax
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00405904
mov ecx, dword [ebp - 9]
pop edx
call fcn.004032ec
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x90]
mov dl, byte [0x53b1e0]
call fcn.0050b3e0
mov eax, dword [0x5a3d60]
mov eax, dword [eax]
call fcn.00475774
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x90]
mov dl, 1
mov eax, dword [0x509cf8]
call fcn.0050bd74
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x53b0ff
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x53af66
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x53af3f
mov eax, dword [ebp - 0x44]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x1c]
call fcn.00405904
mov edx, eax
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53af91
mov eax, dword [0x5a3d60]
mov eax, dword [eax]
call fcn.00475774
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.0050be44
test al, al
je 0x53b0e9
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x30], 0
je 0x53b0e9
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x53b0e9
xor eax, eax
push ebp
push 0x53b0cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0xa000
sub ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
lea edx, [ebp + eax - 0xa050]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x34], eax
cmp dword [ebp - 0x30], 4
jle 0x53b0b2
lea edx, [ebp - 0x30]
lea eax, [ebp - 0xa050]
mov ecx, 4
call fcn.004032ec
mov eax, dword [ebp - 0x34]
sub eax, 4
cmp eax, dword [ebp - 0x30]
jne 0x53b0c2
cmp dword [ebp - 0x30], 0
jle 0x53b0a8
xor eax, eax
push ebp
push 0x53b05d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xa04c]
xor ecx, ecx
mov edx, dword [ebp - 0x30]
call fcn.004db384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53b07a
cmp dword [ebp - 0x3c], 0
jle 0x53b0a8
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x3c]
call fcn.00405b34
lea eax, [ebp - 0x18]
call fcn.00405904
mov edx, eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
call fcn.004032ec
mov eax, dword [ebp - 0x38]
call fcn.00402fcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53b0e9
cmp dword [ebp - 0x30], 0
jne 0x53b0c2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53b0e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53b0d6
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.0050be44
test al, al
jne 0x53afb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53b106
mov eax, dword [ebp - 0x28]
call fcn.004044a4
ret
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x53b130
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x53b126
mov eax, dword [ebp - 0x48]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
setg byte [ebp - 0x49]
jmp 0x53b134
mov byte [ebp - 0x49], 0
cmp byte [ebp - 0x49], 0
je 0x53b17f
mov eax, dword [ebp - 0x18]
call fcn.004058a4
lea edx, [ebp - 0xa054]
call fcn.0053a374
mov edx, dword [ebp - 0xa054]
lea eax, [ebp - 0x18]
call fcn.0040549c
push 0
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0xf]
mov eax, dword [0x5a3a54]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.004ec464
test al, al
je 0x53b186
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
jmp 0x53b186
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53b1a3
mov eax, dword [ebp - 0x20]
call fcn.004044a4
ret