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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5276cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
lea ebx, [eax + 0x18]
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x49], 0
call fcn.005397f4
mov esi, eax
lea eax, [ebx + 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [esi + 0x250]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00528d90
push esi
lea esi, [ebp - 0x64]
mov edi, ebx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop esi
cmp dword [ebx + 0x10], 0
jne 0x5274a2
push esi
add esi, 0x250
mov edi, ebx
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xa8]
mov eax, dword [eax + 0x1c]
mov edx, dword [esi + 0x250]
mov eax, dword [eax + edx*4]
call fcn.00552164
mov dword [ebp - 0x18], eax
jmp 0x52745b
dec dword [ebx + 4]
inc dword [ebp - 0x14]
mov edi, dword [ebx + 4]
test edi, edi
jle 0x527473
mov eax, dword [ebp - 0x18]
mov ax, word [eax + edi*2 - 2]
call fcn.00654f68
test al, al
jne 0x527455
mov eax, dword [0x672130]
dec dword [eax]
cmp dword [ebp - 0x14], 0
jle 0x5274a2
lea eax, [ebx + 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00528d90
push esi
lea esi, [ebp - 0x64]
mov edi, ebx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop esi
cmp dword [ebx + 0x10], 0
jle 0x5276aa
cmp byte [ebx + 0x14], 0
jne 0x5276a5
lea eax, [ebp - 0x68]
push eax
mov edx, ebx
mov ecx, dword [ebx + 0x44]
mov eax, esi
call fcn.00522628
mov edx, dword [ebp - 0x68]
lea eax, [ebx + 0x3c]
call fcn.004032c8
lea edx, [ebx + 0x18]
mov eax, ebx
call fcn.005442a8
cmp byte [esi + 0x7d4], 1
jne 0x5274f2
mov eax, esi
call fcn.005e6aa4
mov eax, esi
call fcn.005e6b20
call fcn.0052ddf4
mov edx, dword [ebx + 0x44]
call fcn.00527094
xor al, 1
mov byte [ebx + 0x4a], al
cmp byte [ebx + 0x4a], 0
je 0x527511
xor eax, eax
mov dword [ebx + 0x38], eax
jmp 0x52752d
call fcn.0052ddf4
mov cl, 1
mov edx, dword [ebx + 0x44]
call fcn.005271f0
mov edi, eax
mov dword [ebx + 0x38], edi
test edi, edi
sete al
mov byte [ebx + 0x4a], al
cmp byte [ebx + 0x4a], 0
jne 0x5276aa
mov edi, dword [ebx + 0x38]
mov dword [0x674de4], ebx
mov eax, dword [ebx + 0x44]
push eax
mov eax, dword [ebx + 0x4c]
push eax
push 1
xor ecx, ecx
mov edx, dword [ebx + 0x3c]
mov eax, edi
call fcn.00525b60
cmp al, 2
jne 0x527575
mov eax, dword [ebx + 0x3c]
push eax
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebx + 0x44]
push eax
mov ecx, ebx
mov edx, esi
mov eax, edi
call fcn.005260ac
cmp al, 2
je 0x527579
xor eax, eax
jmp 0x52757b
mov al, 1
mov byte [ebx + 0x48], al
xor eax, eax
mov dword [0x674de4], eax
cmp byte [ebx + 0x48], 0
jne 0x5276aa
mov eax, dword [0x672428]
test byte [eax + 0xb5], 0x40
je 0x5276aa
mov eax, dword [ebx]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 4]
dec eax
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0xa8]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebx]
mov eax, dword [eax + edx*4]
call fcn.00552164
mov dword [ebp - 0x1c], eax
jmp 0x5275c8
dec dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
test eax, eax
jl 0x5275d9
mov edx, dword [ebp - 0x1c]
cmp word [edx + eax*2], 0x20
je 0x5275c5
mov eax, dword [0x672130]
dec dword [eax]
mov eax, dword [ebx + 4]
dec eax
cmp eax, dword [ebp - 0x30]
jle 0x5276aa
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x34]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00528d90
push esi
push edi
lea esi, [ebp - 0x64]
lea edi, [ebp - 0x34]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp dword [ebp - 0x24], 0
jle 0x52762a
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov eax, esi
call fcn.00522628
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebx + 0x3c]
push eax
lea eax, [ebx + 0x40]
push eax
mov ecx, ebx
lea edx, [ebp - 0x34]
mov eax, esi
call fcn.005272a8
test al, al
je 0x5276aa
mov eax, dword [ebx + 0x44]
push eax
push 0
lea eax, [ebp - 9]
push eax
xor ecx, ecx
mov edx, dword [ebx + 0x40]
mov eax, edi
call fcn.005244b0
cmp byte [ebp - 9], 2
jne 0x5276aa
push esi
push edi
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x4c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebx + 4]
add eax, dword [ebx + 0x10]
sub eax, dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x40]
push eax
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebx + 0x44]
push eax
lea ecx, [ebp - 0x4c]
mov edx, esi
mov eax, edi
call fcn.005260ac
cmp al, 2
jne 0x5276aa
mov byte [ebx + 0x48], 1
mov byte [ebx + 0x49], 1
jmp 0x5276aa
xor eax, eax
mov dword [ebx + 0x10], eax
call fcn.0065ed70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5276d4
lea eax, [ebp - 0x68]
call fcn.00403274
lea eax, [ebp - 8]
call fcn.00403274
ret