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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1b
push 0
push 0
dec ecx
jne 0x5041b0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5047a1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x569104], 0
je 0x5041f0
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x569148]
cmp eax, 0x1388
jbe 0x5041f0
mov byte [0x569104], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jle 0x504219
mov eax, dword [ebp - 0x10]
mov edx, eax
shl eax, 4
add eax, edx
lea esi, [eax*4 + 0x56782c]
mov edi, 0x569104
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x10], 0xffffffff
sete al
and al, byte [0x569068]
je 0x504259
mov byte [0x569068], 0
mov esi, 0x569078
mov edi, 0x569104
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
mov dword [0x569074], 0xffffffff
mov byte [0x569078], 0
mov eax, dword [0x56906c]
mov dword [ebp - 0x10], eax
cmp byte [0x569104], 0
je 0x504766
cmp byte [0x569113], 4
jne 0x504320
cmp byte [0x569114], 0x64
jae 0x504320
cmp byte [0x569114], 0x32
jae 0x504320
mov edx, 0x5047b0
lea eax, [ebp - 0x34]
call fcn.00403868
mov edx, 0x569104
lea eax, [ebp - 0x34]
mov cl, 0xf
call fcn.00403838
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x60]
call fcn.00403868
mov edx, 0x5047b4
lea eax, [ebp - 0x60]
mov cl, 0x2a
call fcn.00403838
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x24]
call fcn.00405294
mov edx, dword [ebp - 0x24]
mov eax, dword [0x52a298]
mov eax, dword [eax]
mov cx, word [0x5047d0]
call fcn.004b94f8
cmp eax, 6
je 0x5042f8
mov eax, 0x569104
call fcn.004f16d4
jmp 0x504766
call sub.kernel32.dll_GetTickCount_1
mov dword [0x569148], eax
lea eax, [ebp - 0x64]
mov edx, 0x569104
call fcn.00405294
mov ecx, dword [ebp - 0x64]
mov edx, dword [0x569140]
mov eax, dword [ebp - 4]
call fcn.00508514
cmp byte [0x569104], 0
je 0x504629
cmp byte [0x569113], 4
je 0x504629
lea eax, [ebp - 0x68]
mov edx, 0x569104
call fcn.00405294
mov ecx, dword [ebp - 0x68]
mov edx, dword [0x569140]
mov eax, dword [ebp - 4]
call fcn.00508514
call sub.kernel32.dll_GetTickCount_1
mov dword [0x569148], eax
mov eax, dword [ebp - 0x10]
mov edx, eax
shl eax, 4
add eax, edx
mov byte [eax*4 + 0x56782c], 0
xor eax, eax
mov al, byte [0x569113]
call fcn.004fae44
xor eax, eax
mov dword [ebp - 0x18], eax
cmp byte [0x569104], 0
je 0x504426
cmp byte [0x58095e], 1
jne 0x504426
cmp byte [0x56d137], 0
jbe 0x504426
cmp dword [ebp - 0x10], 0xffffffff
jle 0x504426
cmp dword [ebp - 0x10], 6
jge 0x504426
mov dword [ebp - 0xc], 6
mov eax, 0x569104
mov edx, dword [ebp - 0xc]
mov ecx, edx
shl edx, 4
add edx, ecx
lea edx, [edx*4 + 0x56782c]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403914
jne 0x50441d
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 0x10]
mov ecx, edx
shl edx, 4
add edx, ecx
lea esi, [eax*4 + 0x56782c]
lea edi, [edx*4 + 0x56782c]
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov byte [eax*4 + 0x56782c], 0
jmp 0x504629
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x5043bb
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0xc], 0x34
jge 0x504464
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
lea eax, [eax*4 + 0x56782c]
mov edx, 0x569104
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403914
jne 0x50445b
inc dword [ebp - 0x18]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x504436
cmp dword [ebp - 0xc], 0x34
je 0x504474
cmp dword [ebp - 0x18], 0
jne 0x5045ae
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
cmp byte [eax*4 + 0x56782c], 0
jne 0x504495
inc dword [ebp - 0x14]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x2d
jne 0x50447e
cmp byte [0x569113], 0
jne 0x50458f
cmp dword [ebp - 0x14], 4
jle 0x50458f
cmp byte [0x58095f], 1
jne 0x50458f
cmp byte [0x56d138], 0
jbe 0x50458f
lea eax, [ebp - 0x6c]
mov edx, 0x569104
call fcn.00405294
mov edx, dword [ebp - 0x6c]
mov eax, dword [0x5818c8]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x504502
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [0x5818c4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0xc], 6
lea eax, [ebp - 0x70]
mov edx, dword [ebp - 0xc]
mov ecx, edx
shl edx, 4
add edx, ecx
lea edx, [edx*4 + 0x56782c]
call fcn.00405294
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x1c]
call fcn.00405458
jne 0x504582
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0xc]
mov ecx, edx
shl edx, 4
add edx, ecx
lea edx, [edx*4 + 0x56782c]
call fcn.00405294
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [eax*4 + 0x567868]
mov eax, dword [ebp - 4]
call fcn.00508514
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov byte [eax*4 + 0x56782c], 0
mov dword [ebp - 0x18], 5
jmp 0x504629
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x504509
cmp dword [ebp - 0x14], 4
jg 0x5045ae
push 0xff
mov ecx, 0xffffff
mov edx, 0x5047dc
mov eax, dword [0x5673f8]
call fcn.004af04c
cmp dword [ebp - 0x10], 0xffffffff
jle 0x504629
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x504620
mov eax, 0x569104
mov edx, dword [ebp - 0xc]
mov ecx, edx
shl edx, 4
add edx, ecx
lea edx, [edx*4 + 0x56782c]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403914
jne 0x504620
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov edx, dword [ebp - 0x10]
mov ecx, edx
shl edx, 4
add edx, ecx
lea esi, [eax*4 + 0x56782c]
lea edi, [edx*4 + 0x56782c]
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xc]
mov edx, eax
shl eax, 4
add eax, edx
mov byte [eax*4 + 0x56782c], 0
jmp 0x504629
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 6
jne 0x5045b9
cmp byte [0x569104], 0
je 0x504766
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, 0x569104
mov edx, dword [ebp - 0xc]
mov ecx, edx
shl edx, 4
add edx, ecx
lea edx, [edx*4 + 0x56782c]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403914
jne 0x504665
inc dword [ebp - 0x18]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x504640
cmp dword [ebp - 0x18], 0
jle 0x50470d
push 0xffffff
mov edx, 0x5047ec
lea eax, [ebp - 0x90]
call fcn.00403868
mov edx, 0x569104
lea eax, [ebp - 0x90]
mov cl, 0x12
call fcn.00403838
lea edx, [ebp - 0x90]
lea eax, [ebp - 0xac]
call fcn.00403868
mov edx, 0x5047f4
lea eax, [ebp - 0xac]
mov cl, 0x18
call fcn.00403838
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x7c]
call fcn.00405294
push dword [ebp - 0x7c]
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 0x18]
call fcn.004099b8
push dword [ebp - 0xb0]
push 0x504804
lea eax, [ebp - 0x78]
mov edx, 3
call fcn.004053c4
mov edx, dword [ebp - 0x78]
mov ecx, 0x8000
mov eax, dword [0x5673f8]
call fcn.004af04c
jmp 0x50475a
push 0xffffff
mov edx, 0x569104
lea eax, [ebp - 0xd8]
call fcn.00403868
mov edx, 0x504808
lea eax, [ebp - 0xd8]
mov cl, 0x23
call fcn.00403838
lea edx, [ebp - 0xd8]
lea eax, [ebp - 0xb4]
call fcn.00405294
mov edx, dword [ebp - 0xb4]
mov ecx, 0xff
mov eax, dword [0x5673f8]
call fcn.004af04c
xor eax, eax
mov al, byte [0x569113]
call fcn.004fae44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5047a8
lea eax, [ebp - 0xb4]
mov edx, 2
call fcn.00405054
lea eax, [ebp - 0x7c]
mov edx, 7
call fcn.00405054
lea eax, [ebp - 0x24]
call fcn.00405030
lea eax, [ebp - 0x1c]
call fcn.00405030
ret