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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x559b96
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
call fcn.00408250
mov edx, eax
dec edx
test edx, edx
jl 0x5598e7
inc edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x60]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x5598e3
cmp byte [ebp - 5], 0
je 0x5598da
cmp byte [ecx + 0x38c], 0
jne 0x5598de
xor ecx, ecx
jmp 0x5598e0
mov cl, 1
mov byte [ebp - 5], cl
inc eax
dec edx
jne 0x5598be
call sub.KERNEL32.DLL_GetTickCount_1
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5599b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x80]
sbb edx, dword [ecx + 0x84]
push edx
push eax
mov eax, 8
xor edx, edx
call fcn.00407d60
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
fild qword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
sub edx, dword [eax + 0x88]
mov dword [ebp - 0x1c], edx
xor eax, eax
mov dword [ebp - 0x18], eax
fild qword [ebp - 0x1c]
fdivp st(1)
mov eax, dword [ebp - 4]
fstp qword [eax + 0xa0]
wait
call fcn.00411518
mov eax, dword [ebp - 4]
fsub qword [eax + 0x90]
mov eax, dword [ebp - 4]
fstp qword [eax + 0x98]
wait
mov eax, dword [ebp - 4]
cmp dword [eax + 0x6c], 0
jne 0x559989
cmp dword [eax + 0x68], 0
jne 0x559989
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xa8], edx
mov dword [eax + 0xac], edx
jmp 0x5599a7
mov eax, dword [ebp - 4]
fild qword [eax + 0x78]
fmul dword [0x559ba4]
mov eax, dword [ebp - 4]
fild qword [eax + 0x68]
fdivp st(1)
mov eax, dword [ebp - 4]
fstp qword [eax + 0xa8]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5599bb
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x78]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x88], edx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0x84]
jne 0x559aa8
cmp eax, dword [ecx + 0x80]
jne 0x559aa8
call sub.KERNEL32.DLL_GetTickCount_1
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, ebx
sub edx, dword [eax + 0x110]
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x114], 0x3e8
cmp edx, eax
jbe 0x559ab6
push 0x559bb4
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.0040e154
push dword [ebp - 0x24]
push 0x559bec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x110]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.0040e154
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040715c
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00556a9c
mov eax, dword [ebp - 4]
cmp word [eax + 0x11a], 0
je 0x559a97
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x11c]
call dword [ebx + 0x118]
xor ecx, ecx
mov edx, 0x559c14
mov eax, dword [ebp - 4]
call fcn.00556a9c
jmp 0x559ab6
xor ecx, ecx
mov edx, 0x559c44
mov eax, dword [ebp - 4]
call fcn.00556a9c
jmp 0x559ab6
call sub.KERNEL32.DLL_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x110], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x78]
mov dword [eax + 0x80], ecx
mov ecx, dword [edx + 0x7c]
mov dword [eax + 0x84], ecx
cmp byte [ebp - 5], 0
je 0x559b7b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10c]
xor edx, edx
call fcn.005377c0
xor eax, eax
push ebp
push 0x559b39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push dword [eax + 0x7c]
push dword [eax + 0x78]
mov eax, 8
xor edx, edx
call fcn.00407d60
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
fild qword [ebp - 0x14]
mov eax, dword [ebp - 4]
fld qword [eax + 0x98]
fmul dword [0x559c6c]
fdivp st(1)
mov eax, dword [ebp - 4]
fstp qword [eax + 0xa0]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x559b43
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x78]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x8c], 0
je 0x559b6c
mov eax, dword [ebp - 4]
add eax, 0x8c
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax], ecx
mov eax, edx
call fcn.0040461c
xor ecx, ecx
mov edx, 0x559c7c
mov eax, dword [ebp - 4]
call fcn.00556a9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x559b9d
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00406c5c
ret