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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
xor ebx, ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004054f4
mov eax, dword [ebp - 0xc]
call fcn.004054f4
lea eax, [ebp - 0x178]
mov edx, dword [0x408ba8]
call fcn.00405a48
xor eax, eax
push ebp
push 0x452865
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
je 0x452821
cmp dword [ebp - 0xc], 0
jne 0x45254a
lea eax, [ebp - 0xc]
mov edx, 0x45287c
call fcn.004050dc
mov eax, dword [ebp - 8]
call fcn.00405304
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x452569
lea eax, [ebp - 8]
mov edx, 0x452888
call fcn.0040530c
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00405350
mov eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x178]
mov edx, 0x3f
call fcn.0040a608
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4525aa
cmp dword [ebp + 0x14], 0
je 0x4525aa
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 0x10], 0
jne 0x452821
xor eax, eax
push ebp
push 0x45281a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0
je 0x4525d4
call fcn.00404a60
jmp 0x452821
mov eax, dword [ebp - 0x170]
and eax, 0x10
cmp eax, 0x10
je 0x45272e
mov eax, dword [ebp - 0x144]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x140]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp byte [ebp + 8], 0
je 0x4526d6
mov eax, dword [ebp - 0x16c]
call fcn.00405304
mov edx, eax
add edx, 0x11
lea eax, [ebp - 0x18]
call fcn.00405690
lea eax, [ebp - 0x18]
call fcn.0040555c
mov byte [eax], 1
mov dword [ebp - 0x14], 2
lea eax, [ebp - 0x18]
call fcn.0040555c
mov edx, dword [ebp - 0x14]
lea edx, [eax + edx - 1]
lea eax, [ebp - 0x20]
mov ecx, 8
call fcn.00402d4c
add dword [ebp - 0x14], 8
lea eax, [ebp - 0x18]
call fcn.0040555c
mov edx, dword [ebp - 0x14]
lea edx, [eax + edx - 1]
lea eax, [ebp - 0x170]
mov ecx, 4
call fcn.00402d4c
add dword [ebp - 0x14], 4
lea eax, [ebp - 0x18]
call fcn.0040555c
mov edx, dword [ebp - 0x14]
lea edx, [eax + edx - 1]
lea eax, [ebp - 0x178]
mov ecx, 4
call fcn.00402d4c
add dword [ebp - 0x14], 4
lea eax, [ebp - 0x18]
call fcn.0040555c
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 0x16c]
call fcn.00405304
push eax
lea eax, [ebp - 0x16c]
call fcn.0040555c
pop ecx
pop edx
call fcn.00402d4c
jmp 0x4526e4
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x16c]
call fcn.004050dc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp + 0xc]
sub eax, dword [edx]
cmp eax, 0x32
jb 0x4527ee
push 1
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x4527ee
mov eax, dword [ebp - 0x16c]
mov edx, 0x452894
call fcn.00405450
je 0x4527ee
mov eax, dword [ebp - 0x16c]
mov edx, 0x4528a0
call fcn.00405450
je 0x4527ee
lea eax, [ebp - 0x180]
mov ecx, dword [ebp - 0x16c]
mov edx, 0x4528ac
call fcn.00405350
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp + 0xc]
sub eax, dword [edx]
cmp eax, 0x32
jb 0x45279e
push 1
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov al, byte [ebp + 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x16c]
push 0x452888
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.004053c4
mov edx, dword [ebp - 0x184]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004524d4
mov edx, 0x4528b8
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x178]
call fcn.0040a658
test eax, eax
je 0x4525c2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452821
lea eax, [ebp - 0x178]
call fcn.0040a67c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45286c
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.00405068
lea eax, [ebp - 0x178]
mov edx, dword [0x408ba8]
call fcn.00405b18
lea eax, [ebp - 0x18]
call fcn.00405044
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405068
ret