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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x570a91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5d3e24]
cmp dword [eax], 0
jne 0x5706b9
mov eax, dword [0x5d339c]
cmp dword [eax], 0
je 0x570a76
mov eax, dword [0x5d339c]
cmp dword [eax], 0
je 0x5706d1
mov eax, dword [0x5d3a14]
cmp dword [eax], 0
jne 0x570a76
xor ebx, ebx
mov eax, dword [0x5d3e24]
cmp dword [eax], 0
je 0x5706e7
mov ebx, dword [0x5d3e24]
mov ebx, dword [ebx]
jmp 0x5706f9
mov eax, dword [0x5d339c]
cmp dword [eax], 0
je 0x5706f9
mov ebx, dword [0x5d339c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x570742
lea eax, [ebp - 0x1c]
call fcn.00404414
xor esi, esi
lea edi, [esi + esi*8]
cmp byte [ebx + edi + 0x18], 0
je 0x570729
mov al, byte [ebx + edi + 0x1a]
cmp al, byte [ebx + edi + 0x19]
jae 0x570729
lea eax, [ebp - 0x1c]
mov edx, dword [ebx + edi + 0x14]
call fcn.004044ac
jmp 0x57072f
inc esi
cmp esi, 3
jne 0x570707
mov eax, dword [ebp - 0x1c]
mov edx, 0x570aa8
call fcn.00404820
je 0x570a76
mov eax, dword [0x5d3434]
cmp byte [eax], 0
je 0x570a76
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
cmp byte [eax + 0x119], 0
jne 0x570a76
mov eax, dword [0x5d36a0]
imul esi, dword [eax], 0x12c
cmp esi, 0x320
jle 0x57077c
mov esi, 0x320
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3f3c]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x5707a2
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x5707aa
jmp 0x570a76
pop edx
pop eax
jg 0x570a76
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x5708da
inc esi
xor edi, edi
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, edi
call fcn.00419afc
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
cmp byte [ebx + 0x78], 0
jne 0x570808
cmp byte [ebx + 0x65], 0
je 0x5707f7
cmp byte [ebx + 0x56], 0
je 0x570808
mov edx, dword [ebx + 0x11c]
mov eax, dword [ebp - 4]
call fcn.00573cb8
mov dword [ebp - 0x18], eax
cmp byte [ebx + 0x78], 0
jne 0x570881
cmp byte [ebx + 0x54], 0
je 0x570881
movzx eax, word [ebx + 0x122]
push eax
movzx ecx, word [ebx + 0x120]
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
mov edx, dword [0x5d3d84]
cmp eax, dword [edx]
jg 0x5708d2
mov eax, dword [0x5d3d14]
cmp byte [eax], 0
jne 0x57086f
mov dx, word [ebx + 0x6a]
mov eax, dword [ebx + 0x11c]
call fcn.00570564
test al, al
jne 0x570879
mov eax, dword [0x5d3d14]
cmp byte [eax], 0
je 0x5708d2
mov dword [ebp - 0x10], ebx
inc dword [ebp - 0x14]
jmp 0x5708d2
cmp dword [ebp - 0x18], 0
je 0x5708d2
cmp byte [ebx + 0x78], 0
jne 0x5708d2
movzx eax, word [ebx + 0x122]
push eax
movzx ecx, word [ebx + 0x120]
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, 2
jg 0x5708d2
mov dword [ebp - 0x10], ebx
mov eax, dword [0x5d3d4c]
mov eax, dword [eax]
inc eax
mov dword [ebp - 0x14], eax
jmp 0x5708da
inc edi
dec esi
jne 0x5707cd
mov eax, dword [0x5d3d4c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x14]
jg 0x570a76
mov eax, dword [0x5d3e24]
cmp dword [eax], 0
je 0x57090d
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
mov edx, dword [0x5d3e24]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.005731e0
jmp 0x57091f
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.005731e0
test al, al
je 0x570a5a
mov eax, dword [0x5d3c38]
mov dword [eax], 3
mov eax, dword [ebp - 0xc]
push eax
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]
mov ecx, dword [ebp - 8]
call fcn.005c40a0
mov edx, dword [0x5d36a0]
mov dword [edx], eax
mov edx, dword [0x5d3e24]
mov edx, dword [edx]
mov eax, dword [0x5d37a0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.0055686c
test al, al
je 0x5709cf
mov eax, dword [0x5d3e24]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [0x5d3d3c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d387c]
xor edx, edx
mov dword [eax], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3e24]
mov edx, dword [edx]
mov dword [edx + 0x4c], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3e24]
mov edx, dword [edx]
mov dword [edx + 0xf8], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3e24]
mov edx, dword [edx]
mov dword [edx + 0xfc], eax
push 0x570abc
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00408cf0
push dword [ebp - 0x20]
push 0x570acc
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00408cf0
push dword [ebp - 0x24]
mov eax, dword [0x5d3368]
mov edx, 4
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 - 8]
mov dword [eax], edx
mov eax, dword [0x5d3b5c]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 4]
call fcn.0057170c
test al, al
jne 0x570a76
mov eax, dword [0x5d3c60]
mov dword [eax], 0xffffffff
mov eax, dword [0x5d3b60]
mov edx, 0x570ad8
call fcn.00404468
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d32d4]
mov dword [edx], eax
jmp 0x570a76
mov eax, dword [0x5d3b60]
mov edx, 0x570aec
call fcn.00404468
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d32d4]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x570a98
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404438
ret