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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor edx, edx
push ebp
push 0x521412
push dword fs:[edx]
mov dword fs:[edx], esp
fld dword [ebp + 8]
fcomp dword [0x521428]
fnstsw ax
sahf
jae 0x521052
xor eax, eax
mov dword [ebp + 8], eax
mov byte [ebp - 1], 0
test esi, esi
jne 0x521067
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52141c
xor edi, edi
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + 0xee]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0xf2]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0xf6]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x50], edi
fild dword [ebp - 0x50]
fsubr dword [ebp + 8]
fstp dword [ebp - 8]
wait
fld dword [ebp - 8]
fcomp dword [0x521428]
fnstsw ax
sahf
jae 0x5210c3
xor eax, eax
mov dword [ebp - 8], eax
cmp byte [ebx + 0x6c], 0
jne 0x5210dc
cmp byte [ebx + 0x6d], 0
je 0x5210dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52141c
cmp dword [ebx + 0xc9], 1
jae 0x5210f2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52141c
cmp esi, dword [ebx + 0x142]
je 0x521107
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52141c
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x31d50]
mov edx, dword [ebx + 0x31d54]
cmp edx, dword [esp + 4]
jne 0x52112b
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x521148
jmp 0x52112f
pop edx
pop eax
jle 0x521148
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push 0x32
call sub.kernel32.dll_Sleep_1
jmp 0x5210c3
mov eax, dword [0x55d330]
mov edx, dword [eax + 0xec]
add edx, esi
mov eax, ebx
call fcn.00541a04
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x28]
mov eax, dword [0x55d330]
mov edx, dword [eax + 0x144]
add edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0053e0cc
lea edx, [ebx + 0xee]
lea eax, [ebp - 0x28]
call fcn.0054321c
fstp dword [ebp - 0x1c]
wait
fld dword [ebp + 8]
fadd dword [0x52142c]
fcomp dword [ebp - 0x1c]
fnstsw ax
sahf
jb 0x5211ab
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52141c
cmp byte [ebx + 0xed], 1
je 0x521267
inc edi
cmp edi, 4
jle 0x5211cb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52141c
mov dword [ebp - 0x50], edi
fild dword [ebp - 0x50]
fsubr dword [ebp + 8]
fstp dword [ebp - 8]
wait
fld dword [ebp - 8]
fcomp dword [0x521428]
fnstsw ax
sahf
jae 0x5211eb
xor eax, eax
mov dword [ebp - 8], eax
push dword [ebp - 8]
lea ecx, [ebp - 0x40]
mov edx, esi
mov eax, ebx
call fcn.005202ac
fld dword [ebp - 0x40]
fcomp dword [0x521428]
fnstsw ax
sahf
jne 0x521223
fld dword [ebp - 0x38]
fcomp dword [0x521428]
fnstsw ax
sahf
jne 0x521223
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52141c
push dword [ebp - 0x38]
push dword [ebp - 0x40]
mov eax, dword [ebx + 0x1b7]
push eax
push ebx
call fcn.00541968
mov ecx, 0x1f4
mov edx, 1
mov eax, ebx
call fcn.0051ee98
test al, al
jne 0x521362
push dword [ebp - 0x38]
push dword [ebp - 0x40]
mov eax, dword [ebx + 0x1b7]
push eax
push ebx
call fcn.00541968
jmp 0x521362
fld dword [ebp - 0x28]
call fcn.00403204
push edx
push eax
fld dword [ebp - 0x34]
call fcn.00403204
cmp edx, dword [esp + 4]
jne 0x521282
cmp eax, dword [esp]
pop edx
pop eax
jne 0x5212a9
fld dword [ebp - 0x20]
call fcn.00403204
push edx
push eax
fld dword [ebp - 0x2c]
call fcn.00403204
cmp edx, dword [esp + 4]
jne 0x5212a1
cmp eax, dword [esp]
pop edx
pop eax
je 0x521362
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
lea edx, [ebx + 0xee]
lea eax, [ebp - 0x28]
call fcn.0054321c
fstp dword [ebp - 0x1c]
wait
fld dword [ebp + 8]
fadd dword [0x52142c]
fcomp dword [ebp - 0x1c]
fnstsw ax
sahf
jb 0x5212ef
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52141c
push dword [ebp - 8]
lea ecx, [ebp - 0x40]
mov edx, esi
mov eax, ebx
call fcn.005202ac
fld dword [ebp - 0x40]
fcomp dword [0x521428]
fnstsw ax
sahf
jne 0x521327
fld dword [ebp - 0x38]
fcomp dword [0x521428]
fnstsw ax
sahf
jne 0x521327
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52141c
push dword [ebp - 0x38]
push dword [ebp - 0x40]
mov eax, dword [ebx + 0x1b7]
push eax
push ebx
call fcn.00541968
mov ecx, 0x1f4
mov edx, 1
mov eax, ebx
call fcn.0051ee98
test al, al
jne 0x521362
push dword [ebp - 0x38]
push dword [ebp - 0x40]
mov eax, dword [ebx + 0x1b7]
push eax
push ebx
call fcn.00541968
fld dword [ebp - 0x4c]
call fcn.00403204
push edx
push eax
fld dword [ebx + 0xee]
call fcn.00403204
cmp edx, dword [esp + 4]
jne 0x521380
cmp eax, dword [esp]
pop edx
pop eax
jne 0x5213a6
fld dword [ebp - 0x44]
call fcn.00403204
push edx
push eax
fld dword [ebx + 0xf6]
call fcn.00403204
cmp edx, dword [esp + 4]
jne 0x5213a2
cmp eax, dword [esp]
pop edx
pop eax
je 0x5213d0
mov eax, dword [ebx + 0xee]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0xf2]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0xf6]
mov dword [ebp - 0x44], eax
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x5213fb
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
cmp edx, 0
jne 0x5213eb
cmp eax, 0x3a98
jbe 0x5213fb
jmp 0x5213ed
jle 0x5213fb
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52141c
push 0xc8
call sub.kernel32.dll_Sleep_1
jmp 0x5210c3
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4