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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53a668
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
je 0x53a652
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
jbe 0x53a652
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0x10000
jae 0x53a652
push 0x53a684
mov eax, dword [ebp - 4]
push dword [eax + 0x40]
push 0x53a698
mov eax, dword [ebp - 4]
add eax, 0x54
mov edx, 3
call fcn.00404f70
mov eax, dword [ebp - 4]
push eax
push 0x539ec8
mov eax, dword [ebp - 4]
call fcn.004200a0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x515094]
call fcn.0051697c
mov dword [ebp - 0x10], eax
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00516a68
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x539b88
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x8c], edx
mov dword [eax + 0x88], 0x539d90
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x7c], edx
mov dword [eax + 0x78], 0x539c18
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x64], edx
mov dword [eax + 0x60], 0x539e34
xor eax, eax
push ebp
push 0x53a598
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00516654
mov eax, dword [ebp - 4]
add eax, 0x54
mov edx, 0x53a6a8
call fcn.00404c44
mov eax, dword [ebp - 4]
push eax
push 0x539ec8
mov eax, dword [ebp - 4]
call fcn.004200a0
mov eax, dword [ebp - 4]
mov byte [eax + 0x58], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x59], 0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00539f1c
test al, al
je 0x53a4d5
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.005166a4
jmp 0x53a4e3
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x10]
call fcn.005166a4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 0x10]
call fcn.005167a4
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.00516654
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov eax, dword [0x542acc]
mov eax, dword [eax]
call fcn.004624c0
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x58], 0
jne 0x53a554
mov eax, dword [ebp - 4]
cmp byte [eax + 0x59], 0
jne 0x53a554
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x53a552
cmp eax, 0x1b58
jb 0x53a506
jmp 0x53a554
jl 0x53a506
mov eax, dword [ebp - 4]
cmp byte [eax + 0x58], 0
jne 0x53a58e
push 0x53a6c8
mov eax, dword [ebp - 4]
push dword [eax + 0x44]
push 0x53a6d8
mov eax, dword [ebp - 4]
add eax, 0x54
mov edx, 3
call fcn.00404f70
mov eax, dword [ebp - 4]
push eax
push 0x539ec8
mov eax, dword [ebp - 4]
call fcn.004200a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a5e3
cmp dword [ebp - 0x10], 0
je 0x53a652
xor eax, eax
push ebp
push 0x53a60b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00516654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a615
push 0x64
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x542acc]
mov eax, dword [eax]
call fcn.004624c0
xor eax, eax
push ebp
push 0x53a648
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00403dc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a652
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a66f
lea eax, [ebp - 0xc]
call fcn.00404bf0
ret