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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov ebx, edx
mov esi, eax
mov edi, dword [0x5d34c0]
xor eax, eax
push ebp
push 0x57043e
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x570423
mov eax, dword [0x5d320c]
cmp byte [eax], 0
je 0x56f915
mov eax, esi
call fcn.00575f24
jmp 0x56f93a
mov eax, dword [0x5d391c]
cmp byte [eax], 0
je 0x56f93a
mov eax, dword [0x5d3784]
cmp byte [eax], 0
jne 0x56f93a
mov eax, dword [0x5d3c60]
cmp dword [eax], 0
jge 0x56f93a
mov eax, esi
call fcn.0057618c
mov eax, dword [0x5d3c60]
cmp dword [eax], 0
jge 0x570423
mov byte [ebp - 0x16], 0
mov eax, dword [0x5d36d8]
cmp byte [eax], 0
je 0x56f9fe
mov eax, dword [0x5d36d8]
mov edx, dword [0x5d3260]
add edx, 0x109
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00402da0
je 0x56f9fe
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3710]
sub eax, dword [edx]
cmp eax, 0x1770
jbe 0x56f9fe
lea eax, [ebp - 0x1c]
mov edx, dword [0x5d3260]
add edx, 0x109
call fcn.00404678
mov eax, dword [ebp - 0x1c]
call fcn.005c5974
test al, al
jne 0x56f9cf
lea eax, [ebp - 0x20]
mov edx, dword [0x5d3260]
add edx, 0x109
call fcn.00404678
mov eax, dword [ebp - 0x20]
call fcn.005c5a20
test al, al
je 0x56f9fe
lea eax, [ebp - 0x24]
mov edx, dword [0x5d36d8]
call fcn.00404678
mov edx, dword [ebp - 0x24]
mov eax, dword [0x5d3e28]
mov eax, dword [eax]
mov ecx, 0x570454
call fcn.005a5eb4
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3710]
mov dword [edx], eax
mov eax, dword [edi]
cmp byte [eax + 0x69], 0
jne 0x56fa6e
mov eax, dword [0x5d31b0]
cmp byte [eax], 0
jne 0x56fa16
cmp byte [ebx + 0x65], 0
jne 0x56fa6e
movzx eax, word [ebx + 0x122]
push eax
movzx ecx, word [ebx + 0x120]
mov eax, dword [edi]
movzx edx, word [eax + 0x122]
mov eax, dword [edi]
movzx eax, word [eax + 0x120]
call fcn.005c40a0
cmp eax, 6
jge 0x56fa6e
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0x570464
call fcn.005455fc
test eax, eax
je 0x56fa6e
mov edx, dword [0x5d3de0]
mov edx, dword [edx]
mov ecx, ebx
mov eax, esi
call fcn.0057477c
dec eax
je 0x570423
mov eax, dword [0x5d335c]
cmp byte [eax], 0
je 0x56fbb6
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535624
test al, al
je 0x56fbb6
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535578
test al, al
je 0x56fbb6
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535714
test al, al
je 0x56fbb6
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3f9c]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x5d3fb0]
imul eax, dword [eax], 0x3e8
cdq
cmp edx, dword [esp + 4]
jne 0x56fae8
cmp eax, dword [esp]
pop edx
pop eax
jae 0x56fbb6
jmp 0x56faf0
pop edx
pop eax
jge 0x56fbb6
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0x570474
call fcn.005455fc
test eax, eax
je 0x56fbb6
mov eax, dword [edi]
movzx edx, word [eax + 0x122]
mov eax, dword [edi]
movzx eax, word [eax + 0x120]
mov ecx, 2
call fcn.005c48a4
mov edx, dword [0x5d3eac]
cmp eax, dword [edx]
jl 0x56fbb6
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3f9c]
mov dword [edx], eax
movzx eax, word [ebx + 0x122]
push eax
movzx ecx, word [ebx + 0x120]
mov eax, dword [edi]
movzx edx, word [eax + 0x122]
mov eax, dword [edi]
movzx eax, word [eax + 0x120]
call fcn.005c40a0
cmp eax, 2
jg 0x56fb90
push 0x570474
push ebx
movzx ecx, word [ebx + 0x122]
movzx edx, word [ebx + 0x120]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.0054518c
jmp 0x570423
push 0x570474
push 0
movzx ecx, word [ebx + 0x122]
movzx edx, word [ebx + 0x120]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.0054518c
jmp 0x570423
mov dword [ebp - 8], 0xbc6
mov eax, esi
call fcn.00573d70
mov edx, dword [0x5d3dd0]
mov dword [edx], eax
mov eax, dword [0x5d3260]
cmp byte [eax + 0x44], 6
jne 0x56fbde
mov dword [ebp - 8], 0xbc7
movzx eax, word [ebx + 0x122]
push eax
movzx ecx, word [ebx + 0x120]
mov eax, dword [edi]
movzx edx, word [eax + 0x122]
mov eax, dword [edi]
movzx eax, word [eax + 0x120]
call fcn.005c420c
and eax, 0xff
mov dword [ebp - 4], eax
movzx eax, word [ebx + 0x122]
push eax
movzx ecx, word [ebx + 0x120]
mov eax, dword [edi]
movzx edx, word [eax + 0x122]
mov eax, dword [edi]
movzx eax, word [eax + 0x120]
call fcn.005c40a0
mov dword [ebp - 0xc], eax
movzx eax, word [ebx + 0x120]
push eax
movzx eax, word [ebx + 0x122]
push eax
mov eax, dword [0x5d3dd0]
mov eax, dword [eax]
push eax
mov eax, dword [edi]
movzx ecx, word [eax + 0x122]
mov eax, dword [edi]
movzx edx, word [eax + 0x120]
mov eax, ebx
call fcn.005c68b0
test al, al
je 0x570302
cmp byte [ebx + 0x78], 0
jne 0x570302
mov eax, dword [0x5d3c60]
cmp dword [eax], 0
jge 0x570302
mov eax, dword [edi]
xor edx, edx
call fcn.005cf318
mov eax, dword [edi]
cmp byte [eax + 0x69], 0
je 0x56fca3
mov eax, dword [edi]
cmp byte [eax + 0x69], 2
jne 0x56fd96
mov eax, dword [0x5d3640]
cmp byte [eax], 0
je 0x56fd96
mov edx, dword [0x5d3e44]
mov edx, dword [edx]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.005455fc
test eax, eax
je 0x56fd96
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535624
test al, al
je 0x56fd96
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535578
test al, al
je 0x56fd96
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535714
test al, al
je 0x56fd96
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3464]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x5d347c]
imul eax, dword [eax], 0x3e8
cdq
cmp edx, dword [esp + 4]
jne 0x56fd35
cmp eax, dword [esp]
pop edx
pop eax
jae 0x56fd96
jmp 0x56fd39
pop edx
pop eax
jge 0x56fd96
movzx edx, word [ebx + 0x122]
movzx eax, word [ebx + 0x120]
mov ecx, 2
call fcn.005c48a4
mov edx, dword [0x5d33a4]
cmp eax, dword [edx]
jl 0x56fd96
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3464]
mov dword [edx], eax
mov edx, ebx
mov eax, esi
call fcn.005726a4
mov ebx, eax
mov eax, dword [0x5d3e44]
mov eax, dword [eax]
push eax
push ebx
movzx ecx, word [ebx + 0x122]
movzx edx, word [ebx + 0x120]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.0054518c
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535624
test al, al
je 0x5702f0
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535578
test al, al
je 0x5702f0
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535678
test al, al
je 0x5702f0
mov eax, dword [0x5d3b38]
mov byte [eax], 1
mov eax, dword [0x5d3854]
mov byte [eax], 1
mov eax, dword [edi]
mov ax, word [eax + 0x120]
cmp ax, word [ebx + 0x120]
jne 0x56feec
mov eax, dword [edi]
mov ax, word [eax + 0x122]
cmp ax, word [ebx + 0x122]
jne 0x56feec
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
movzx ecx, word [eax + 0x122]
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
movzx edx, word [eax + 0x120]
mov eax, esi
call fcn.005778bc
test al, al
je 0x570423
mov eax, dword [0x5d3c38]
mov dword [eax], 3
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [edi]
movzx edx, word [eax + 0x122]
mov eax, dword [edi]
movzx eax, word [eax + 0x120]
mov ecx, dword [ebp - 0x10]
call fcn.005c40a0
mov edx, dword [0x5d36a0]
mov dword [edx], eax
push 0x570484
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.00408cf0
push dword [ebp - 0x28]
push 0x570494
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.00408cf0
push dword [ebp - 0x2c]
push 0x5704a0
mov eax, dword [0x5d3368]
mov edx, 5
call fcn.00404794
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3f30]
mov dword [edx], eax
mov eax, dword [0x5d3c60]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [0x5d3b5c]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, esi
call fcn.0057170c
test al, al
jne 0x570423
mov eax, dword [0x5d3c60]
mov dword [eax], 0xffffffff
jmp 0x570423
movzx ecx, word [ebx + 0x122]
movzx edx, word [ebx + 0x120]
mov eax, esi
call fcn.005729b4
test al, al
je 0x56ff2a
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x108], 0xffffffff
push 1
mov cl, 1
mov edx, 0x5704ac
mov eax, esi
call fcn.00574724
mov eax, dword [0x5d3b38]
mov byte [eax], 1
mov eax, dword [0x5d3dbc]
cmp byte [eax], 0
je 0x56ffc8
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3ec8]
sub eax, dword [edx]
cmp eax, 0x2710
jbe 0x56ffc8
call fcn.005c94c8
test al, al
je 0x56ffc8
mov eax, dword [edi]
cmp word [eax + 0x9a], 0xa
jbe 0x56ff97
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535714
test al, al
je 0x56ff97
mov eax, ebx
call fcn.005c9524
call sub.kernel32.dll_GetTickCount_1
sub eax, 0x1770
mov edx, dword [0x5d3ec8]
mov dword [edx], eax
jmp 0x57007a
mov eax, dword [edi]
cmp word [eax + 0x9a], 0xa
ja 0x57007a
mov eax, dword [0x5d3b60]
mov edx, 0x5704d0
call fcn.00404468
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d32d4]
mov dword [edx], eax
jmp 0x57007a
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00571f70
mov byte [ebp - 0x15], al
mov eax, dword [0x5d342c]
cmp byte [eax], 0
je 0x570036
cmp byte [ebp - 0x15], 0
je 0x570036
mov eax, dword [0x5d34c8]
cmp byte [eax], 0
jne 0x570036
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0x5704ec
call fcn.005455fc
test eax, eax
je 0x57007a
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535714
test al, al
je 0x57007a
push 0x5704ec
push ebx
movzx ecx, word [ebx + 0x122]
movzx edx, word [ebx + 0x120]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.0054518c
jmp 0x57007a
mov eax, dword [0x5d34c8]
cmp byte [eax], 0
je 0x57007a
cmp byte [ebp - 0x15], 0
jne 0x57007a
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535714
test al, al
je 0x57007a
push 0x5704ec
push ebx
mov eax, dword [edi]
movzx ecx, word [eax + 0x122]
mov eax, dword [edi]
movzx edx, word [eax + 0x120]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.0054518c
mov eax, dword [0x5d3784]
cmp byte [eax], 0
je 0x5700a7
mov eax, dword [edi]
cmp word [eax + 0x9a], 7
jb 0x5700a7
cmp dword [ebp - 0xc], 2
jge 0x5700a7
mov eax, dword [0x5d3784]
mov byte [eax], 0
mov dword [ebp - 8], 0xbd1
jmp 0x570124
mov eax, dword [0x5d3528]
cmp byte [eax], 0
je 0x5700c8
cmp dword [ebp - 0xc], 2
jge 0x5700c8
mov eax, dword [0x5d3528]
mov byte [eax], 0
mov dword [ebp - 8], 0xbca
jmp 0x570124
mov eax, dword [0x5d34c8]
cmp byte [eax], 0
je 0x5700fb
mov eax, dword [edi]
cmp word [eax + 0x9a], 3
jb 0x5700fb
cmp dword [ebp - 0xc], 2
jge 0x5700fb
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00571f70
test al, al
je 0x5700fb
mov dword [ebp - 8], 0xbd0
jmp 0x570124
mov eax, dword [0x5d39cc]
cmp byte [eax], 0
jne 0x57011d
mov eax, dword [0x5d391c]
cmp byte [eax], 0
jne 0x57011d
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00571960
test al, al
je 0x570124
mov dword [ebp - 8], 0xbcb
mov eax, dword [0x5d387c]
cmp dword [eax], 0xf
jle 0x570189
mov eax, dword [0x5d3d3c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d387c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d3774]
xor edx, edx
mov dword [eax], edx
mov eax, dword [edi]
call fcn.005ccfb8
test al, al
je 0x57015b
mov eax, dword [edi]
call fcn.005ccfc8
mov dword [ebx + 0x108], 0xffffffff
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x10c], eax
mov byte [ebx + 0xd], 1
push 1
xor ecx, ecx
mov edx, 0x570500
mov eax, esi
call fcn.00574724
jmp 0x5702d4
cmp byte [ebx + 0x78], 0
jne 0x5702d4
mov eax, dword [edi]
call fcn.005cccd8
test al, al
jne 0x5702d4
mov eax, dword [0x5d3d3c]
inc dword [eax]
mov eax, dword [0x5d387c]
inc dword [eax]
mov eax, dword [0x5d37a8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d327c]
inc dword [eax]
mov eax, dword [edi]
movzx eax, word [eax + 0x122]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x60]
push eax
mov eax, dword [edi]
movzx ecx, word [eax + 0x120]
mov eax, dword [edi]
mov dx, word [ebp - 8]
call fcn.005cc4e8
mov eax, dword [edi]
movzx eax, word [eax + 0x122]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x60]
push eax
mov eax, dword [edi]
movzx ecx, word [eax + 0x120]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.0053398c
mov byte [ebp - 0x16], 1
mov eax, dword [0x5d38a0]
mov byte [eax], 0
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3be8]
mov dword [edx], eax
xor edi, edi
lea eax, [edi + edi*8]
cmp byte [ebx + eax + 0x18], 0
je 0x570267
lea eax, [edi + edi*8]
mov eax, dword [ebx + eax + 0x14]
mov edx, 0x570518
call fcn.00404820
jne 0x570267
lea eax, [edi + edi*8]
mov al, byte [ebx + eax + 0x1a]
lea edx, [edi + edi*8]
cmp al, byte [ebx + edx + 0x19]
jae 0x570267
lea eax, [edi + edi*8]
inc byte [ebx + eax + 0x1a]
jmp 0x57026d
inc edi
cmp edi, 3
jne 0x570231
cmp byte [ebx + 0x65], 0x32
jne 0x5702d4
mov eax, dword [0x5d3e28]
mov eax, dword [eax]
mov eax, dword [eax + 0x87c]
mov edx, 0x57052c
call fcn.00404820
jne 0x5702d4
mov eax, dword [0x5d387c]
mov eax, dword [eax]
mov edx, dword [0x5d39ec]
cmp eax, dword [edx]
jle 0x5702d4
mov eax, dword [0x5d3e28]
mov eax, dword [eax]
cmp byte [eax + 0x86c], 0
je 0x5702cb
mov eax, dword [0x5d3e28]
mov eax, dword [eax]
cmp byte [eax + 0x89c], 0
je 0x5702cb
mov eax, dword [0x5d3e28]
mov eax, dword [eax]
mov byte [eax + 0x894], 1
mov eax, dword [0x5d3e24]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d391c]
mov al, byte [eax]
and al, byte [ebp - 0x16]
je 0x5702f0
mov eax, dword [0x5d3f3c]
xor edx, edx
mov dword [eax], edx
mov eax, esi
call fcn.0057618c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3868]
mov dword [edx], eax
jmp 0x570423
mov eax, dword [edi]
cmp byte [eax + 0x119], 0
jne 0x5703b4
mov eax, dword [0x5d391c]
cmp byte [eax], 0
je 0x57034f
mov eax, dword [0x5d3784]
cmp byte [eax], 0
jne 0x57034f
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0x57053c
call fcn.005455fc
test eax, eax
je 0x57034f
mov eax, esi
call fcn.0057618c
mov eax, dword [0x5d3c60]
cmp dword [eax], 0
jg 0x570423
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
call fcn.005b648c
mov ebx, eax
test ebx, ebx
je 0x570394
mov edx, dword [0x5d3e24]
mov edx, dword [edx]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov ecx, ebx
call fcn.0055686c
test al, al
je 0x570394
mov eax, dword [0x5d3e24]
mov dword [eax], ebx
mov eax, dword [0x5d3d3c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d387c]
xor edx, edx
mov dword [eax], edx
mov edx, dword [0x5d3e24]
mov edx, dword [edx]
xor ecx, ecx
mov eax, esi
call fcn.00571248
test al, al
jne 0x570423
mov eax, dword [0x5d3e24]
xor edx, edx
mov dword [eax], edx
jmp 0x570423
mov eax, dword [0x5d33d4]
cmp byte [eax], 0
je 0x570423
test ebx, ebx
je 0x570423
cmp dword [ebx + 0x108], 0
je 0x570423
mov eax, dword [edi]
mov eax, dword [eax + 0x60]
cmp eax, dword [ebx + 0x108]
je 0x570423
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, dword [ebx + 0x108]
call fcn.00535fec
test al, al
jne 0x570423
mov edx, dword [0x5d3864]
mov edx, dword [edx]
mov eax, ebx
call fcn.005c4cd4
test al, al
je 0x570423
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x10c], eax
push 0
mov cl, 1
mov edx, 0x570550
mov eax, esi
call fcn.00574724
mov dword [esi + 0x2c], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x570445
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.00404438
ret