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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x18
add esp, 0xfffff004
push eax
dec eax
jne 0x45a11d
mov eax, dword [ebp - 4]
add esp, 0xfffff7e0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18824], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x17c]
mov edx, dword [0x408ba8]
call fcn.00405a48
xor eax, eax
push ebp
push 0x45a47b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x45a42f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x50]
call fcn.0040523c
mov eax, dword [ebp - 8]
call fcn.00405304
test eax, eax
jle 0x45a1b3
mov eax, dword [ebp - 8]
call fcn.00405304
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x45a1b3
lea eax, [ebp - 8]
mov edx, 0x45a494
call fcn.0040530c
mov dword [ebp - 0xc], 1
mov byte [ebp - 0x1881d], 0
lea eax, [ebp - 0x18824]
mov ecx, 0x45a4a0
mov edx, dword [ebp - 8]
call fcn.00405350
mov eax, dword [ebp - 0x18824]
lea ecx, [ebp - 0x17c]
mov edx, 0x3f
call fcn.0040a608
mov dword [ebp - 0x10], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
jne 0x45a3bb
xor eax, eax
push ebp
push 0x45a3b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x6c], 0
je 0x45a230
mov eax, dword [ebp - 4]
call fcn.00453920
call fcn.00404a60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a449
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x14]
cmp eax, 0x32
jb 0x45a24c
push 1
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
jne 0x45a25c
mov byte [ebp - 0x1881d], 1
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x148]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x144]
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
mov eax, dword [ebp - 0x170]
call fcn.00405304
cmp eax, 0xff
jle 0x45a2b0
lea eax, [ebp - 0x170]
push eax
mov ecx, 0xff
mov edx, 1
mov eax, dword [ebp - 0x170]
call fcn.00405564
mov eax, dword [ebp - 0x170]
call fcn.00405304
mov edx, dword [ebp - 0xc]
mov byte [ebp + edx - 0x1881d], al
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x170]
call fcn.00405304
push eax
lea eax, [ebp - 0x170]
call fcn.0040555c
mov edx, dword [ebp - 0xc]
lea edx, [ebp + edx - 0x1881d]
pop ecx
call fcn.00402d4c
mov eax, dword [ebp - 0x170]
call fcn.00405304
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 0x1881d], 0
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
lea edx, [ebp + eax - 0x1881d]
lea eax, [ebp - 0x20]
mov ecx, 8
call fcn.00402d4c
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 0xc]
lea edx, [ebp + eax - 0x1881d]
lea eax, [ebp - 0x17c]
mov ecx, 4
call fcn.00402d4c
add dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xc]
lea edx, [ebp + eax - 0x1881d]
lea eax, [ebp - 0x174]
mov ecx, 4
call fcn.00402d4c
add dword [ebp - 0xc], 4
cmp dword [ebp - 0xc], 0x18575
jl 0x45a388
lea eax, [ebp - 0x1881d]
push eax
push 1
mov ecx, dword [ebp - 0xc]
mov dx, 0x1d5
mov eax, dword [ebp - 0x24]
call fcn.00442710
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x17c]
call fcn.0040a658
test eax, eax
je 0x45a20d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a3bb
lea eax, [ebp - 0x17c]
call fcn.0040a67c
ret
cmp dword [ebp - 0xc], 0
jne 0x45a3c8
mov dword [ebp - 0xc], 1
mov byte [ebp - 0x1881d], 2
cmp dword [ebp - 0x10], 0
je 0x45a402
cmp dword [ebp - 0x10], 2
je 0x45a402
mov byte [ebp - 0x1881d], 3
mov dword [ebp - 0xc], 1
lea edx, [ebp - 0x1881c]
lea eax, [ebp - 0x10]
mov ecx, 4
call fcn.00402d4c
add dword [ebp - 0xc], 4
jmp 0x45a40d
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00453814
lea eax, [ebp - 0x1881d]
push eax
push 1
mov ecx, dword [ebp - 0xc]
mov dx, 0x1d5
mov eax, dword [ebp - 4]
call fcn.00453734
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a449
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a482
lea eax, [ebp - 0x18824]
call fcn.00405044
lea eax, [ebp - 0x17c]
mov edx, dword [0x408ba8]
call fcn.00405b18
lea eax, [ebp - 8]
call fcn.00405044
ret