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

Disassembly:
push 0xffffffffffffffff
push 0x45d350
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47aab0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
lea esi, [edi + 0x84]
mov eax, edi
call fcn.0041ac40
call ebx
push 3
push 0x91
push esi
call fcn.00418fd0
mov dword [esi + 0x84], 0x40a370
mov dword [esi + 0x78], edi
lea esi, [edi + 0x10c]
mov eax, edi
call fcn.0041ac40
push 3
push 0x94
push esi
call fcn.00418fd0
mov dword [esi + 0x84], 0x40a2c0
mov dword [esi + 0x78], edi
lea esi, [edi + 0x194]
mov eax, edi
call fcn.0041ac40
push 3
push 0x92
push esi
call fcn.00418fd0
mov dword [esi + 0x84], fcn.0040a2f0
mov dword [esi + 0x78], edi
mov edx, dword [0x47f998]
mov eax, dword [edx - 0xc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], 0xfeffffff
jle 0x40adf2
lea esi, [edi + 0x21c]
mov eax, edi
mov dword [0x47f8b0], 1
call fcn.0041ac40
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov eax, dword [0x47f8b0]
cmp eax, dword [esi + 0xac]
je 0x40ad79
cmp dword [esi + 0x20], ebx
mov dword [esi + 0xac], eax
je 0x40ad79
mov eax, dword [esi]
mov edx, dword [eax + 0x13c]
mov ecx, esi
call edx
mov ecx, dword [esi + 0xb0]
cmp ecx, ebx
lea ebp, [esi + 0xb0]
mov dword [esi + 0x98], ebx
mov dword [esi + 0x84], 0x41a050
mov dword [esi + 0x78], esi
je 0x40ada4
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
push ebp
push 0x8e
call fcn.0041ab70
push 2
push 0x90
push esi
call fcn.00418fd0
mov eax, dword [0x47f994]
lea ecx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x469fb4
mov dword [edi + 0x280], eax
call fcn.00407310
call fcn.00419ab0
mov dword [esi + 0x8c], 0x40a790
mov dword [esi + 0x90], ebx
lea esi, [edi + 0x358]
mov eax, edi
call fcn.0041ac40
push 3
push 0x93
push esi
call fcn.00418fd0
mov dword [esi + 0x84], 0x40a470
mov dword [esi + 0x78], edi
mov edx, dword [edi + 0x3e8]
mov eax, dword [edx + 0x134]
lea esi, [edi + 0x3e8]
push edi
push 0x83
mov ecx, esi
call eax
mov eax, dword [0x47f8a8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov ebp, esp
push eax
call fcn.00401f70
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebp], eax
call fcn.00401580
lea esi, [edi + 0x4dc]
mov eax, edi
call fcn.0041ac40
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov eax, dword [0x47f8b4]
cmp eax, dword [esi + 0xac]
je 0x40ae97
cmp dword [esi + 0x20], ebx
mov dword [esi + 0xac], eax
je 0x40ae97
mov edx, dword [esi]
mov eax, dword [edx + 0x13c]
mov ecx, esi
call eax
mov ecx, dword [esi + 0xb0]
cmp ecx, ebx
lea ebp, [esi + 0xb0]
mov dword [esi + 0x98], ebx
mov dword [esi + 0x84], 0x41a050
mov dword [esi + 0x78], esi
je 0x40aec2
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
push ebp
push 0x8e
call fcn.0041ab70
push 2
push 0x90
push esi
call fcn.00418fd0
mov ecx, dword [0x47f994]
lea edx, [esp + 0x14]
push edx
push ecx
mov dword [edi + 0x540], ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x469fc8
call fcn.00407310
call fcn.00419ab0
mov dword [esi + 0x8c], 0x40a760
mov dword [esi + 0x90], ebx
cmp dword [0x47f8e8], ebx
je 0x40afd3
lea esi, [edi + 0x590]
mov eax, edi
call fcn.0041ac40
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov eax, dword [0x47f8b8]
cmp eax, dword [esi + 0xac]
je 0x40af5a
cmp dword [esi + 0x20], ebx
mov dword [esi + 0xac], eax
je 0x40af5a
mov eax, dword [esi]
mov edx, dword [eax + 0x13c]
mov ecx, esi
call edx
mov ecx, dword [esi + 0xb0]
cmp ecx, ebx
lea ebp, [esi + 0xb0]
mov dword [esi + 0x98], ebx
mov dword [esi + 0x84], 0x41a050
mov dword [esi + 0x78], esi
je 0x40af85
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
push ebp
push 0x8e
call fcn.0041ab70
push 2
push 0x90
push esi
call fcn.00418fd0
mov eax, dword [0x47f994]
lea ecx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x469fdc
mov dword [edi + 0x5f4], eax
call fcn.00407310
call fcn.00419ab0
mov dword [esi + 0x8c], 0x40a770
mov dword [esi + 0x90], ebx
lea esi, [edi + 0x644]
mov eax, edi
mov dword [0x47f8bc], 1
call fcn.0041ac40
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov eax, dword [0x47f8bc]
cmp eax, dword [esi + 0xac]
je 0x40b01a
cmp dword [esi + 0x20], ebx
mov dword [esi + 0xac], eax
je 0x40b01a
mov edx, dword [esi]
mov eax, dword [edx + 0x13c]
mov ecx, esi
call eax
mov ecx, dword [esi + 0xb0]
cmp ecx, ebx
lea ebp, [esi + 0xb0]
mov dword [esi + 0x98], ebx
mov dword [esi + 0x84], 0x41a050
mov dword [esi + 0x78], esi
je 0x40b045
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
push ebp
push 0x8e
call fcn.0041ab70
push 2
push 0x90
push esi
call fcn.00418fd0
mov ecx, dword [0x47f994]
lea edx, [esp + 0x14]
push edx
push ecx
mov dword [edi + 0x6a8], ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x469ff0
call fcn.00407310
call fcn.00419ab0
mov dword [esi + 0x8c], 0x40a780
mov dword [esi + 0x90], ebx
lea esi, [edi + 0x6f8]
mov eax, edi
call fcn.0041ac40
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov ecx, dword [esi + 0xb0]
cmp ecx, ebx
lea ebp, [esi + 0xb0]
mov dword [esi + 0x98], ebx
mov dword [esi + 0x84], 0x41a050
mov dword [esi + 0x78], esi
je 0x40b0d8
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
push ebp
push 0x8e
call fcn.0041ab70
push 2
push 0x90
push esi
call fcn.00418fd0
mov ebp, dword [0x47f8ec]
cmp ebp, ebx
je 0x40b1da
mov eax, dword [ebp + 0x414]
cmp eax, dword [esi + 0xac]
je 0x40b123
cmp dword [esi + 0x20], ebx
mov dword [esi + 0xac], eax
je 0x40b123
mov eax, dword [esi]
mov edx, dword [eax + 0x13c]
mov ecx, esi
call edx
mov eax, dword [ebp]
mov dword [edi + 0x78c], eax
mov dword [esi + 0x8c], 0x40a7b0
mov dword [esi + 0x90], ebp
call fcn.0041ba0a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b156
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
add ebp, 4
push ebp
lea ecx, [esp + 0x1c]
push 0x469260
push ecx
mov dword [esp + 0x44], ebx
call fcn.00407ac0
mov ebp, dword [esp + 0x24]
mov edx, dword [0x47f994]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x24], esp
add ebp, 0xfffffff0
mov dword [esp + 0x24], esp
push ebp
mov dword [edi + 0x75c], edx
call fcn.00401f70
mov ecx, dword [esp + 0x28]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
call fcn.00419ab0
mov dword [esp + 0x38], 0xffffffff
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40b1da
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [0x47f914]
cmp dword [ecx - 0xc], ebx
jg 0x40b1f4
mov edx, dword [0x47f938]
cmp dword [edx - 0xc], ebx
jle 0x40b321
lea esi, [edi + 0x7ac]
mov eax, edi
call fcn.0041ac40
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov ecx, dword [esi + 0xb0]
cmp ecx, ebx
lea ebp, [esi + 0xb0]
mov dword [esi + 0x98], ebx
mov dword [esi + 0x84], 0x41a050
mov dword [esi + 0x78], esi
je 0x40b238
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
push ebp
push 0x8e
call fcn.0041ab70
push 2
push 0x90
push esi
call fcn.00418fd0
mov ebp, 1
cmp dword [esi + 0xac], ebp
je 0x40b274
cmp dword [esi + 0x20], ebx
mov dword [esi + 0xac], ebp
je 0x40b274
mov eax, dword [esi]
mov edx, dword [eax + 0x13c]
mov ecx, esi
call edx
mov dword [edi + 0x840], 0x270f
mov dword [esi + 0x8c], 0x40a7c0
mov dword [esi + 0x90], ebx
call fcn.0041ba0a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b2a8
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push 0x469ffc
push ecx
mov dword [esp + 0x40], ebp
call fcn.00407ac0
mov edx, dword [0x47f994]
add esp, 8
lea eax, [esp + 0x14]
mov dword [edi + 0x810], edx
mov edi, dword [esp + 0x18]
push eax
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x24], esp
mov ebx, esp
push edi
call fcn.00401f70
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00419ab0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b321
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret