Function at 0x53a5b4
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 0x53a7f5
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 0x53a7df
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
jbe 0x53a7df
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0x10000
jae 0x53a7df
mov eax, dword [ebp - 4]
add eax, 0x54
mov edx, 0x53a810
call fcn.00404c40
mov eax, dword [ebp - 4]
push eax
push 0x53a448
mov eax, dword [ebp - 4]
call fcn.004200a4
xor ecx, ecx
mov dl, 1
mov eax, dword [0x51bcc4]
call fcn.0051d5ac
mov dword [ebp - 0x10], eax
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0051d698
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x53a194
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x8c], edx
mov dword [eax + 0x88], 0x53a424
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x7c], edx
mov dword [eax + 0x78], 0x53a2cc
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x64], edx
mov dword [eax + 0x60], 0x53a43c
xor eax, eax
push ebp
push 0x53a758
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0051d284
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.0053a49c
test al, al
je 0x53a6c8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0051d2d4
jmp 0x53a6d6
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x10]
call fcn.0051d2d4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 0x10]
call fcn.0051d3d4
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.0051d284
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov eax, dword [0x542a88]
mov eax, dword [eax]
call fcn.00462470
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x58], 0
jne 0x53a747
mov eax, dword [ebp - 4]
cmp byte [eax + 0x59], 0
jne 0x53a747
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 0x53a745
cmp eax, 0xfa0
jb 0x53a6f9
jmp 0x53a747
jl 0x53a6f9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x58], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a770
cmp dword [ebp - 0x10], 0
je 0x53a7df
xor eax, eax
push ebp
push 0x53a798
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0051d284
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a7a2
push 0x32
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x542a88]
mov eax, dword [eax]
call fcn.00462470
xor eax, eax
push ebp
push 0x53a7d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00403dbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53a7df
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a7fc
lea eax, [ebp - 0xc]
call fcn.00404bec
ret