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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov esi, eax
xor eax, eax
push ebp
push 0x576582
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [0x5d3e24]
cmp dword [eax], 0
je 0x576567
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
movzx eax, word [eax + 0x120]
cmp eax, dword [esi + 4]
jne 0x5761e5
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
movzx eax, word [eax + 0x122]
cmp eax, dword [esi + 8]
je 0x5761f3
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
xor edx, edx
call fcn.005cf318
mov eax, dword [0x5d391c]
cmp byte [eax], 0
je 0x576254
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
cmp byte [eax + 0x119], 0
je 0x576254
mov eax, dword [0x5d3c60]
cmp dword [eax], 0
jle 0x576254
mov ecx, dword [0x5d3b5c]
mov ecx, dword [ecx]
mov edx, dword [0x5d3c60]
mov edx, dword [edx]
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
call fcn.005b4fc4
test eax, eax
je 0x576254
cmp byte [eax + 0x65], 0
jne 0x576254
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
xor edx, edx
call fcn.005cf318
mov eax, dword [0x5d3f3c]
xor edx, edx
mov dword [eax], edx
mov eax, dword [0x5d391c]
cmp byte [eax], 0
je 0x576567
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
cmp byte [eax + 0x119], 0
jne 0x576567
mov eax, dword [0x5d3e24]
cmp dword [eax], 0
je 0x576567
mov ebx, dword [0x5d3e24]
mov ebx, dword [ebx]
mov edi, 0x3e8
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5d3f3c]
sub eax, dword [edx]
xor edx, edx
push edx
push eax
mov eax, edi
cdq
cmp edx, dword [esp + 4]
jne 0x5762b7
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x5762bf
jmp 0x576567
pop edx
pop eax
jg 0x576567
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
jne 0x576337
movzx eax, word [ebx + 0x120]
push eax
movzx eax, word [ebx + 0x122]
push eax
push 2
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, ebx
call fcn.005c68b0
test al, al
je 0x576337
cmp byte [ebx + 0x54], 0
jne 0x576567
mov eax, dword [0x5d354c]
cmp byte [eax], 0
je 0x576362
mov edx, dword [0x5d3558]
mov edx, dword [edx]
mov eax, dword [0x5d32c4]
mov eax, dword [eax]
mov ecx, 3
call fcn.005b4e88
test eax, eax
je 0x576567
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
mov edx, dword [0x5d3e24]
mov edx, dword [edx]
mov eax, esi
call fcn.005739b4
test al, al
je 0x576567
mov eax, dword [0x5d3c38]
mov dword [eax], 3
mov eax, dword [ebp - 0x10]
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 - 0xc]
call fcn.005c40a0
mov edx, dword [0x5d36a0]
mov dword [edx], eax
cmp byte [ebx + 0x54], 0
jne 0x5764d5
mov eax, dword [0x5d36a0]
cmp dword [eax], 2
jge 0x5764d5
mov eax, 3
call fcn.00402e30
cmp eax, 2
jne 0x5764d5
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 8], 8
mov edi, dword [0x5d3974]
mov eax, dword [0x5d3858]
mov dword [ebp - 0x20], eax
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx eax, word [eax + 0x120]
mov edx, dword [edi]
add edx, edx
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [0x5d34c0]
mov eax, dword [eax]
movzx eax, word [eax + 0x122]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
add edx, edx
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
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 [0x5d32c4]
mov eax, dword [eax]
call fcn.005b4a64
test al, al
je 0x5764c3
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
movzx eax, word [eax + 0x122]
push eax
mov eax, dword [0x5d3e24]
mov eax, dword [eax]
movzx ecx, word [eax + 0x120]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.005c40a0
cmp eax, 2
jl 0x5764c3
cmp dword [ebp - 0x1c], 0xffffffff
je 0x5764a9
mov eax, 3
call fcn.00402e30
cmp eax, 2
jne 0x5764c3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [0x5d3cd4]
mov byte [eax], 1
add dword [ebp - 0x20], 4
add edi, 4
dec dword [ebp - 8]
jne 0x576402
jmp 0x5764dd
mov eax, dword [0x5d3cd4]
mov byte [eax], 0
push 0x57659c
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00408cf0
push dword [ebp - 0x24]
push 0x5765b0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.00408cf0
push dword [ebp - 0x28]
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 - 0xc]
mov dword [eax], edx
mov eax, dword [0x5d3b5c]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
movzx eax, word [ebx + 0x120]
mov dword [esi + 4], eax
movzx eax, word [ebx + 0x122]
mov dword [esi + 8], eax
mov eax, esi
call fcn.0057170c
test al, al
jne 0x57655f
mov eax, dword [0x5d3c60]
mov dword [eax], 0xffffffff
jmp 0x576567
mov eax, dword [0x5d36dc]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x576589
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404438
ret