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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov ebx, edx
mov edi, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x50acfc]
call fcn.00405e14
mov esi, dword [0x586a98]
xor eax, eax
push ebp
push 0x56c829
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov eax, dword [esi]
cmp byte [eax + 0x38], 0
je 0x56c800
cmp byte [edi + 0x188], 0
jne 0x56c800
mov eax, dword [esi]
cmp dword [eax + 0x1c4], 0
je 0x56c800
mov eax, dword [esi]
call fcn.005216b0
test al, al
jne 0x56c1c6
mov eax, dword [0x586404]
mov eax, dword [eax]
cmp dword [eax + 0x5d0], 2
jne 0x56c800
mov byte [ebp - 0x11], 1
mov eax, dword [0x586404]
mov eax, dword [eax]
mov eax, dword [eax + 0x5d0]
sub eax, 1
jb 0x56c1ee
je 0x56c3d0
dec eax
je 0x56c5f8
jmp 0x56c610
mov byte [ebp - 0x11], 0
push 0x24
push 3
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, 0x16
mov edx, edi
call fcn.00522bb0
lea ecx, [ebp - 0x18]
mov eax, dword [esi]
mov edx, 0x56c844
call fcn.00517ec4
test al, al
je 0x56c800
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
call fcn.005243a0
movzx edx, ax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050c550
call fcn.004b9988
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x56c2cf
push 0x64
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
cmp eax, dword [ebp - 0x1c]
jne 0x56c28d
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
cmp eax, dword [ebp - 0x20]
je 0x56c293
mov byte [ebp - 0x11], 1
jmp 0x56c2d5
call fcn.004b9988
sub eax, ebx
cmp eax, 0x7d0
jbe 0x56c2c1
cmp dword [ebp - 0x28], 0
jne 0x56c2c1
mov eax, dword [ebp - 0x18]
call fcn.005243a0
movzx edx, ax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050c550
inc dword [ebp - 0x28]
call fcn.004b9988
sub eax, ebx
cmp eax, 0xbb8
ja 0x56c2d5
cmp byte [edi + 0xd], 0
je 0x56c264
mov eax, dword [ebp - 0x18]
call fcn.004041e0
cmp byte [ebp - 0x11], 0
je 0x56c800
mov eax, dword [esi]
inc dword [eax + 0x58]
push 0x3e8
call sub.kernel32.dll_Sleep_2
push 0x55f
push 3
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, 0x8f
mov edx, edi
call fcn.00522bb0
lea ecx, [ebp - 0x18]
mov eax, dword [esi]
mov edx, 0x56c858
call fcn.00517ec4
test al, al
je 0x56c800
mov byte [edi + 0x188], 1
mov eax, dword [ebp - 0x18]
call fcn.004041e0
mov eax, dword [0x5865d0]
mov eax, dword [eax]
mov edx, 0x5c60001
call fcn.0050b680
call fcn.004b9988
mov ebx, eax
jmp 0x56c3a6
push 0x32
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x5865d0]
mov eax, dword [eax]
mov edx, 4
call fcn.0050def8
and eax, 0x802130
cmp eax, 0x802130
je 0x56c38f
mov eax, dword [0x5865d0]
mov eax, dword [eax]
xor edx, edx
call fcn.0050def8
and eax, 0x10000
cmp eax, 0x10000
jne 0x56c398
mov eax, dword [esi]
call fcn.00520ef4
jmp 0x56c3ac
call fcn.004b9988
sub eax, ebx
cmp eax, 0x1f4
ja 0x56c3ac
cmp byte [edi + 0xd], 0
je 0x56c351
push 0x3e8
call sub.kernel32.dll_Sleep_2
call fcn.0040339c
mov eax, 0x3e8
call fcn.004033c4
push eax
call sub.kernel32.dll_Sleep_2
jmp 0x56c800
lea ecx, [ebp - 0x18]
mov eax, dword [esi]
mov edx, 0x56c870
call fcn.00517ec4
test al, al
je 0x56c800
mov eax, dword [ebp - 0x18]
call fcn.004041e0
mov eax, dword [esi]
call fcn.00521618
test al, al
je 0x56c43a
mov eax, dword [0x5865d0]
mov eax, dword [eax]
mov ecx, 0x1d
mov edx, 0x13
call fcn.0050b7f8
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x5865d0]
mov eax, dword [eax]
mov ecx, 0x1d
mov edx, 0x13
call fcn.0050b7f8
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov ecx, 0x2a
mov edx, 8
mov eax, edi
call fcn.0055ab2c
lea ecx, [ebp - 0x18]
mov eax, dword [esi]
mov dx, 0x4e26
call fcn.00517e24
test al, al
je 0x56c800
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov eax, dword [ebp - 0x18]
call fcn.005243a0
movzx edx, ax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050c550
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov eax, dword [ebp - 0x18]
call fcn.005243a0
mov edx, eax
mov eax, dword [esi]
xor ecx, ecx
call fcn.00522ad8
test al, al
jne 0x56c4b0
mov eax, dword [ebp - 0x18]
call fcn.004041e0
jmp 0x56c800
mov eax, dword [ebp - 0x18]
call fcn.004041e0
mov eax, dword [esi]
inc dword [eax + 0x58]
mov eax, dword [esi]
call fcn.00521618
test al, al
je 0x56c4e8
mov eax, dword [0x5865d0]
mov eax, dword [eax]
mov ecx, 0x581
mov edx, 0xbf
call fcn.0050b7f8
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov ecx, 0x578
mov edx, 0xca
mov eax, edi
call fcn.0055ab2c
lea ecx, [ebp - 0x18]
mov eax, dword [esi]
mov edx, 0x56c884
call fcn.00517ec4
test al, al
je 0x56c800
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov eax, dword [ebp - 0x18]
call fcn.004041e0
mov byte [edi + 0x188], 1
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050e874
cmp eax, 0x69
jl 0x56c594
mov eax, dword [esi]
mov edx, 0x56c894
call fcn.00512050
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov eax, dword [esi]
mov edx, 0x56c8b0
call fcn.00512050
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov eax, dword [esi]
mov edx, 0x56c8cc
call fcn.00512050
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov eax, dword [esi]
mov edx, 0x56c8e8
call fcn.00512050
push 0x3e8
call sub.kernel32.dll_Sleep_2
jmp 0x56c5ec
mov eax, dword [esi]
mov edx, 0x56c894
call fcn.00512050
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov eax, dword [esi]
mov edx, 0x56c8b0
call fcn.00512050
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov eax, dword [esi]
mov edx, 0x56c8cc
call fcn.00512050
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov eax, dword [esi]
mov edx, 0x56c904
call fcn.00512050
push 0x3e8
call sub.kernel32.dll_Sleep_2
mov eax, dword [esi]
call fcn.00520ef4
jmp 0x56c800
mov eax, dword [esi]
inc dword [eax + 0x58]
mov eax, edi
call fcn.0056ba48
mov eax, dword [esi]
call fcn.00520ef4
jmp 0x56c800
mov eax, dword [esi]
cmp dword [eax + 0x1cc], 0
je 0x56c800
mov eax, dword [esi]
cmp dword [eax + 0x1c8], 0
je 0x56c800
lea ecx, [ebp - 0x18]
mov eax, dword [esi]
mov edx, dword [eax + 0x1cc]
mov eax, dword [esi]
call fcn.00517ec4
test al, al
jne 0x56c689
test bl, bl
je 0x56c65f
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.0050e4d4
test al, al
je 0x56c65f
mov eax, edi
call fcn.0055db70
mov eax, dword [esi]
mov eax, dword [eax + 0x1c4]
test eax, eax
jle 0x56c691
mov edx, dword [esi]
mov edx, dword [edx + 0x1d0]
push edx
push 4
push 0
push 0
push 0
mov ecx, eax
mov eax, dword [esi]
mov edx, edi
call fcn.00522bb0
jmp 0x56c691
mov eax, dword [ebp - 0x18]
call fcn.004041e0
lea ecx, [ebp - 0x18]
mov eax, dword [esi]
mov edx, dword [eax + 0x1cc]
mov eax, dword [esi]
call fcn.00517ec4
test al, al
je 0x56c800
mov eax, dword [ebp - 0x18]
call fcn.005246d0
push eax
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.005246c0
mov ecx, eax
mov eax, dword [esi]
mov edx, edi
call fcn.00522bb0
mov eax, dword [ebp - 0x18]
call fcn.005243a0
movzx edx, ax
mov eax, dword [esi]
call fcn.00520444
test al, al
jne 0x56c723
mov eax, dword [ebp - 0x18]
call fcn.005246d0
push eax
push 2
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.005246c0
mov ecx, eax
mov eax, dword [esi]
mov edx, edi
call fcn.00522bb0
mov eax, dword [ebp - 0x18]
call fcn.005243a0
movzx edx, ax
mov eax, dword [esi]
call fcn.00520444
test al, al
je 0x56c800
mov eax, dword [ebp - 0x18]
call fcn.004041e0
mov byte [edi + 0x188], 1
mov dl, 1
mov eax, dword [0x41bb74]
call fcn.004041b0
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x56c7f9
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, byte [0x56c918]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x1c8]
mov ecx, 0x56c924
mov edx, 0x56c930
call fcn.0040f6f0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x56c7e3
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x56c7e3
inc ebx
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
call fcn.00517508
test al, al
je 0x56c7dd
mov eax, dword [0x5865d0]
mov eax, dword [eax]
movzx ecx, word [ebp - 0xc]
movzx edx, word [ebp - 0x10]
call fcn.005102e8
push 0x190
call sub.kernel32.dll_Sleep_2
inc dword [ebp - 0x24]
dec ebx
jne 0x56c7a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c800
mov eax, dword [ebp - 0x2c]
call fcn.004041e0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c830
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004051cc
lea eax, [ebp - 0x10]
mov edx, dword [0x50acfc]
call fcn.00405ee4
ret