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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x574e70
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x575946
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
mov eax, dword [0x5d3db0]
cmp byte [eax], 0
je 0x574f99
mov eax, dword [0x5d3690]
cmp dword [eax], 1
jne 0x574ec0
mov eax, dword [0x5d34cc]
cmp dword [eax], 1
jne 0x574ec0
mov eax, dword [0x5d3db0]
mov byte [eax], 0
jmp 0x57591e
mov eax, dword [0x5d3690]
cmp dword [eax], 2
jne 0x574ee1
mov eax, dword [0x5d34cc]
cmp dword [eax], 2
jne 0x574ee1
mov eax, dword [0x5d3db0]
mov byte [eax], 0
jmp 0x57591e
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d39e8]
sub eax, dword [edx]
cmp eax, 0x7d0
jbe 0x57591e
mov eax, dword [0x5d34cc]
cmp dword [eax], 0
jle 0x574f2f
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d39e8]
mov dword [edx], eax
mov eax, dword [0x5d34cc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0x575960
call fcn.00533810
jmp 0x57591e
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d39e8]
sub eax, dword [edx]
cmp eax, 0xfa0
jbe 0x57591e
mov eax, dword [0x5d3db0]
mov byte [eax], 0
call fcn.005c95f0
test al, al
jne 0x574f79
mov eax, dword [0x5d3b60]
mov edx, 0x575970
call fcn.00404468
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d32d4]
mov dword [edx], eax
jmp 0x57591e
push 0xffffff
mov eax, dword [0x5d3f60]
mov eax, dword [eax]
mov ecx, 0xff
mov edx, 0x575988
call fcn.005b2b94
jmp 0x57591e
mov eax, dword [0x5d3a24]
cmp byte [eax], 0
je 0x574fce
mov eax, dword [0x5d3658]
cmp byte [eax], 0
jne 0x574fce
mov eax, dword [0x5d3b60]
mov edx, 0x5759e0
call fcn.00404468
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d32d4]
mov dword [edx], eax
jmp 0x57591e
mov eax, dword [0x5d3f58]
cmp byte [eax], 0
je 0x575073
mov eax, dword [0x5d3b30]
cmp byte [eax], 0
je 0x575073
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
call fcn.005cf3e0
test al, al
jne 0x57500a
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
call fcn.005cf390
test al, al
je 0x575073
mov eax, dword [0x5d3a24]
cmp byte [eax], 0
je 0x57503e
mov eax, dword [0x5d3b60]
mov edx, 0x5759f8
call fcn.00404468
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d32d4]
mov dword [edx], eax
mov eax, dword [0x5d3d9c]
xor edx, edx
mov dword [eax], edx
jmp 0x57591e
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d39e8]
sub eax, dword [edx]
cmp eax, 0x1388
jbe 0x575073
push 0
mov eax, dword [0x5d3e28]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0x575a18
call fcn.0059dcbc
mov eax, dword [0x5d3d9c]
inc dword [eax]
jmp 0x57591e
mov eax, dword [0x5d3348]
cmp byte [eax], 0
jne 0x57508b
mov eax, dword [0x5d33dc]
cmp byte [eax], 0
je 0x57591e
call fcn.005c95f0
test al, al
jne 0x5750b5
mov eax, dword [0x5d3b60]
mov edx, 0x575970
call fcn.00404468
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d32d4]
mov dword [edx], eax
jmp 0x57591e
mov eax, dword [0x5d3348]
cmp byte [eax], 0
je 0x57510b
mov edx, dword [0x5d3898]
mov edx, dword [edx]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.005455fc
test eax, eax
jne 0x57510b
mov eax, dword [0x5d33dc]
cmp byte [eax], 0
je 0x5750fd
mov edx, dword [0x5d3604]
mov edx, dword [edx]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.005455fc
test eax, eax
je 0x57591e
mov eax, dword [0x5d33dc]
cmp byte [eax], 0
je 0x57591e
mov eax, dword [0x5d3348]
cmp byte [eax], 0
jne 0x575131
mov edx, dword [0x5d3604]
mov edx, dword [edx]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.005455fc
test eax, eax
je 0x57591e
lea eax, [ebp - 0x14]
mov edx, dword [0x5d37a0]
mov edx, dword [edx]
mov edx, dword [edx + 0xa1c]
call fcn.004044ac
lea eax, [ebp - 0xc]
mov edx, dword [0x5d3e64]
mov edx, dword [edx]
call fcn.004044ac
lea eax, [ebp - 0x10]
mov edx, dword [0x5d3eec]
mov edx, dword [edx]
call fcn.004044ac
mov edx, dword [ebp - 0xc]
mov eax, 0x575a2c
call fcn.00404a18
test eax, eax
jne 0x575195
push dword [ebp - 0xc]
push 0x575a2c
push dword [ebp - 0x14]
push 0x575a38
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404794
mov edx, dword [ebp - 0x10]
mov eax, 0x575a2c
call fcn.00404a18
test eax, eax
jne 0x5751c3
push dword [ebp - 0x10]
push 0x575a2c
push dword [ebp - 0x14]
push 0x575a38
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404794
mov edx, dword [ebp - 0xc]
mov eax, 0x575a44
call fcn.00404a18
mov esi, eax
test esi, esi
jle 0x5751f4
lea eax, [ebp - 0xc]
mov ecx, 2
mov edx, esi
call fcn.00404974
lea edx, [ebp - 0xc]
mov ecx, esi
mov eax, 0x575a2c
call fcn.004049bc
mov edx, dword [ebp - 0xc]
mov eax, 0x575a50
call fcn.00404a18
mov esi, eax
test esi, esi
jle 0x575225
lea eax, [ebp - 0xc]
mov ecx, 2
mov edx, esi
call fcn.00404974
lea edx, [ebp - 0xc]
mov ecx, esi
mov eax, 0x575a38
call fcn.004049bc
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x16], 0
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x575311
inc edi
xor esi, esi
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, esi
call fcn.00419afc
mov ebx, eax
cmp dword [ebp - 8], 0
jne 0x5752b6
mov eax, dword [0x5d3348]
cmp byte [eax], 0
je 0x5752b6
mov edx, dword [ebx + 0x11c]
mov eax, dword [ebp - 0xc]
call fcn.00404a18
test eax, eax
jle 0x5752b6
cmp byte [ebx + 0x78], 0
jne 0x5752b6
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3e68]
mov dword [edx], eax
inc dword [ebp - 8]
mov byte [ebp - 0x15], 1
movzx eax, word [ebx + 0x120]
mov edx, dword [0x5d3220]
mov dword [edx], eax
movzx eax, word [ebx + 0x122]
mov edx, dword [0x5d3220]
mov dword [edx + 4], eax
jmp 0x575309
mov eax, dword [0x5d33dc]
cmp byte [eax], 0
je 0x575309
mov edx, dword [ebx + 0x11c]
mov eax, dword [ebp - 0x10]
call fcn.00404a18
test eax, eax
jle 0x575309
cmp byte [ebx + 0x78], 0
jne 0x575309
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3ef4]
mov dword [edx], eax
mov byte [ebp - 0x16], 1
movzx eax, word [ebx + 0x120]
mov edx, dword [0x5d3220]
mov dword [edx + 8], eax
movzx eax, word [ebx + 0x122]
mov edx, dword [0x5d3220]
mov dword [edx + 0xc], eax
inc esi
dec edi
jne 0x575246
mov bl, 1
mov byte [ebp - 0x17], 1
mov eax, dword [0x5d3348]
cmp byte [eax], 0
je 0x575375
cmp byte [ebp - 0x15], 0
jne 0x575375
mov eax, dword [0x5d3220]
cmp dword [eax], 0
jl 0x575373
mov esi, dword [0x5d3220]
mov esi, dword [esi]
test esi, esi
jle 0x575375
mov eax, dword [0x5d3220]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5d3220]
mov ecx, esi
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx edx, word [eax + 0x122]
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx eax, word [eax + 0x120]
call fcn.005c40a0
cmp eax, 0x13
jle 0x575375
xor ebx, ebx
mov eax, dword [0x5d33dc]
cmp byte [eax], 0
je 0x5753d7
cmp byte [ebp - 0x16], 0
jne 0x5753d7
mov eax, dword [0x5d3220]
cmp dword [eax + 8], 0
jl 0x5753d3
mov esi, dword [0x5d3220]
mov esi, dword [esi + 8]
test esi, esi
jle 0x5753d7
mov eax, dword [0x5d3220]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [0x5d3220]
mov ecx, esi
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx edx, word [eax + 0x122]
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx eax, word [eax + 0x120]
call fcn.005c40a0
cmp eax, 0x13
jle 0x5753d7
mov byte [ebp - 0x17], 0
mov eax, dword [0x5d3348]
mov al, byte [eax]
and al, byte [ebp - 0x15]
je 0x5753ef
mov eax, dword [0x5d33dc]
mov al, byte [eax]
and al, byte [ebp - 0x16]
jne 0x57541f
mov eax, dword [0x5d3348]
mov al, byte [eax]
and al, byte [ebp - 0x15]
je 0x575405
mov eax, dword [0x5d33dc]
cmp byte [eax], 0
je 0x57541f
mov eax, dword [0x5d3348]
cmp byte [eax], 0
jne 0x57543a
mov eax, dword [0x5d33dc]
cmp byte [eax], 0
je 0x57543a
cmp byte [ebp - 0x16], 0
je 0x57543a
mov eax, dword [0x5d34cc]
cmp dword [eax], 0xffffffff
jne 0x575432
mov eax, dword [0x5d34cc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d3b08]
mov byte [eax], 0
mov eax, dword [0x5d3348]
cmp byte [eax], 0
je 0x575448
test bl, bl
je 0x575460
mov eax, dword [0x5d33dc]
cmp byte [eax], 0
je 0x5755aa
cmp byte [ebp - 0x17], 0
jne 0x5755aa
mov eax, dword [0x5d3b30]
cmp byte [eax], 0
je 0x5755aa
mov eax, dword [0x5d3b08]
cmp byte [eax], 0
jne 0x5754f5
mov eax, dword [0x5d34cc]
cmp dword [eax], 0
jl 0x5754f5
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d39e8]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x5d3c48]
mov eax, dword [eax]
cdq
cmp edx, dword [esp + 4]
jne 0x5754ae
cmp eax, dword [esp]
pop edx
pop eax
jae 0x57560b
jmp 0x5754b6
pop edx
pop eax
jge 0x57560b
mov eax, dword [0x5d34cc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0x575960
call fcn.00533810
mov eax, dword [0x5d3b08]
mov byte [eax], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d39e8]
mov dword [edx], eax
mov eax, dword [0x5d3c48]
mov dword [eax], 0x7d0
jmp 0x57560b
mov eax, dword [0x5d34cc]
cmp dword [eax], 0
jl 0x57558c
mov eax, dword [0x5d3b08]
cmp byte [eax], 0
je 0x57553b
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d39e8]
sub eax, dword [edx]
cmp eax, 0xbb8
jbe 0x57553b
mov eax, dword [0x5d34cc]
cmp dword [eax], 0
jne 0x57553b
mov eax, dword [0x5d34cc]
mov dword [eax], 0xffffffff
jmp 0x57560b
mov eax, dword [0x5d34cc]
cmp dword [eax], 1
jne 0x57556a
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d39e8]
mov dword [edx], eax
mov eax, dword [0x5d3c48]
mov dword [eax], 0x3e8
mov eax, dword [0x5d3b08]
mov byte [eax], 0
jmp 0x57560b
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d39e8]
sub eax, dword [edx]
cmp eax, 0x7d0
jbe 0x57560b
mov eax, dword [0x5d3b08]
mov byte [eax], 0
jmp 0x57560b
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d39e8]
sub eax, dword [edx]
cmp eax, 0x2710
jbe 0x57560b
mov eax, dword [0x5d3b08]
mov byte [eax], 0
jmp 0x57560b
mov eax, dword [0x5d3b30]
cmp byte [eax], 0
je 0x57560b
mov eax, dword [0x5d3a24]
cmp byte [eax], 0
jne 0x57560b
mov eax, dword [0x5d34cc]
cmp dword [eax], 1
jne 0x57560b
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d39e8]
sub eax, dword [edx]
cmp eax, 0x3e8
jbe 0x57560b
mov eax, dword [0x5d34cc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov edx, 0x575960
call fcn.00533810
mov eax, dword [0x5d3b08]
mov byte [eax], 1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d39e8]
mov dword [edx], eax
mov eax, dword [0x5d3348]
cmp byte [eax], 0
je 0x57578f
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3e68]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x5d3ca0]
imul eax, dword [eax], 0x3e8
cdq
cmp edx, dword [esp + 4]
jne 0x575649
cmp eax, dword [esp]
pop edx
pop eax
jae 0x57578f
jmp 0x575651
pop edx
pop eax
jge 0x57578f
call fcn.005c8388
imul eax, eax, 0x35
mov edx, dword [0x5d3260]
add edx, eax
lea eax, [ebp - 0x1c]
call fcn.00404678
mov eax, dword [ebp - 0x1c]
call fcn.005c5974
test al, al
je 0x5756b0
call fcn.005c8388
imul eax, eax, 0x35
mov edx, dword [0x5d3260]
add edx, eax
lea eax, [ebp - 0x20]
call fcn.00404678
mov eax, dword [ebp - 0x20]
call fcn.005c5974
test al, al
je 0x5756c5
call fcn.005c8388
imul eax, eax, 0x35
mov edx, dword [0x5d3260]
cmp word [edx + eax + 0x30], 0x3e8
jae 0x5756c5
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov cl, 1
xor edx, edx
call fcn.00552aec
jmp 0x57591e
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535624
test al, al
je 0x57591e
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535578
test al, al
je 0x57591e
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535714
test al, al
je 0x57591e
call fcn.005c8388
imul eax, eax, 0x35
mov edx, dword [0x5d3260]
add edx, eax
lea eax, [ebp - 0x24]
call fcn.00404678
mov eax, dword [ebp - 0x24]
call fcn.005c5974
test al, al
je 0x57591e
mov eax, dword [0x5d3898]
mov eax, dword [eax]
push eax
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
push eax
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx ecx, word [eax + 0x122]
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx edx, word [eax + 0x120]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.0054518c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3ca0]
mov edx, dword [edx]
sub edx, 0xa
imul edx, edx, 0x3e8
sub eax, edx
mov edx, dword [0x5d3e68]
mov dword [edx], eax
mov eax, dword [0x5d34cc]
xor edx, edx
mov dword [eax], edx
jmp 0x57591e
cmp dword [ebp - 8], 1
je 0x5757a3
mov eax, dword [0x5d3348]
cmp byte [eax], 0
jne 0x57591e
mov eax, dword [0x5d33dc]
cmp byte [eax], 0
je 0x57591e
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3ef4]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, dword [0x5d3ca0]
imul eax, dword [eax], 0x3e8
cdq
cmp edx, dword [esp + 4]
jne 0x5757e1
cmp eax, dword [esp]
pop edx
pop eax
jae 0x57591e
jmp 0x5757e9
pop edx
pop eax
jge 0x57591e
call fcn.005c8388
imul eax, eax, 0x35
mov edx, dword [0x5d3260]
add edx, eax
lea eax, [ebp - 0x28]
call fcn.00404678
mov eax, dword [ebp - 0x28]
call fcn.005c5974
test al, al
je 0x575848
call fcn.005c8388
imul eax, eax, 0x35
mov edx, dword [0x5d3260]
add edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404678
mov eax, dword [ebp - 0x2c]
call fcn.005c5974
test al, al
je 0x57585d
call fcn.005c8388
imul eax, eax, 0x35
mov edx, dword [0x5d3260]
cmp word [edx + eax + 0x30], 0x3e8
jae 0x57585d
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov cl, 1
xor edx, edx
call fcn.00552aec
jmp 0x57591e
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535624
test al, al
je 0x57591e
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535578
test al, al
je 0x57591e
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.00535714
test al, al
je 0x57591e
call fcn.005c8388
imul eax, eax, 0x35
mov edx, dword [0x5d3260]
add edx, eax
lea eax, [ebp - 0x30]
call fcn.00404678
mov eax, dword [ebp - 0x30]
call fcn.005c5974
test al, al
je 0x57591e
mov eax, dword [0x5d3604]
mov eax, dword [eax]
push eax
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
push eax
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx ecx, word [eax + 0x122]
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx edx, word [eax + 0x120]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
call fcn.0054518c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3ca0]
mov edx, dword [edx]
sub edx, 0xa
imul edx, edx, 0x3e8
sub eax, edx
mov edx, dword [0x5d3ef4]
mov dword [edx], eax
mov eax, dword [0x5d34cc]
xor edx, edx
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57594d
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00404438
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404438
ret