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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465a68
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x482ad0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x44]
xor edi, edi
mov dword [ebp - 0x28], esi
cmp dword [esi + 0x68], edi
je 0x40aef1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov ecx, eax
sub ecx, dword [ebx + 0x54]
mov dword [ebp - 0x1c], eax
cmp ecx, 1
jbe 0x40acd4
mov edi, dword [esi + 0x6c]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x7c]
add ecx, edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x38]
sub edx, edi
sub ecx, edi
cmp edx, ecx
jbe 0x40abf7
mov edx, ecx
cmp edx, 0x1000
jbe 0x40ac06
mov edx, 0x1000
jmp 0x40ac0e
test edx, edx
je 0x40acd4
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x68]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
push edx
mov edx, dword [ebp - 0x20]
push edx
call eax
test eax, eax
jne 0x40ac61
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x70]
and edx, 0xfffeffff
or edx, 0x400000
mov dword [esi + 0x40], ecx
mov dword [ebp - 0x14], 0x400000
mov dword [esi + 0x48], edx
mov dword [ebp - 4], 0xffffffff
jmp 0x40acd4
mov edi, dword [ebp - 0x18]
add dword [esi + 0x70], eax
add dword [esi + 0x6c], eax
add edi, eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebx + 0x54]
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x40abcb
mov dword [ebx + 0x54], eax
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
call fcn.0041bb26
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ad0b
push 0x80004005
call fcn.00403120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 2
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], 3
test eax, eax
je 0x40ad44
mov dword [ebp - 0x58], 7
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x74]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x44], ecx
mov ecx, dword [esi + 0x7c]
mov dword [ebp - 0x3c], edx
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x38], edx
mov ecx, dword [eax + 0x2c]
mov edi, dword [eax + 0x18]
mov edx, dword [eax + 0x2c]
mov ecx, dword [ecx]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], edx
mov eax, edi
test edi, edi
je 0x40ad86
cmp edi, eax
je 0x40ad8b
call fcn.0044aa49
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x28], eax
je 0x40adba
test edi, edi
jne 0x40aded
call fcn.0044aa49
xor eax, eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x14]
jne 0x40adab
call fcn.0044aa49
mov eax, dword [ebp - 0x28]
add eax, 8
push eax
lea ecx, [ebp - 0x40]
call fcn.00408e30
mov edx, dword [esi + 0x6c]
push 0
cmp edx, dword [esi + 0x38]
jne 0x40adf1
mov ecx, dword [esi + 0x4c]
lea eax, [ebp - 0x60]
push eax
push 0x80b5
push ecx
mov dword [ebp - 0x58], 4
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebx + 0x44]
mov dword [edx + 0x6c], 0
jmp 0x40aec5
mov eax, dword [edi]
jmp 0x40ad9e
mov eax, dword [esi + 0x7c]
cmp eax, dword [esi + 0x70]
jne 0x40ae75
mov edx, dword [esi + 0x4c]
lea ecx, [ebp - 0x60]
push ecx
push 0x80b5
push edx
mov dword [ebp - 0x58], 5
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x48], 0x10000
mov eax, dword [ebx + 0x44]
mov ecx, dword [eax + 0x2c]
add eax, 0x18
mov eax, dword [eax]
mov dword [ebp - 0x20], ecx
test edi, edi
je 0x40ae30
cmp edi, eax
je 0x40ae35
call fcn.0044aa49
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x20]
je 0x40ae50
push eax
push edi
mov edi, dword [ebx + 0x44]
add edi, 0x18
lea ebx, [ebp - 0x2c]
call fcn.0040bde0
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x44]
mov dword [edx + 0x6c], 0
mov eax, dword [ebx + 0x44]
cmp dword [eax + 0x68], 0
je 0x40aec5
mov ecx, dword [eax + 0x68]
mov eax, dword [ecx]
mov edx, dword [eax + 0x4c]
call edx
mov eax, dword [ebx + 0x44]
mov ecx, dword [eax + 0x68]
jmp 0x40aeae
mov eax, dword [esi + 0x4c]
lea edx, [ebp - 0x60]
push edx
push 0x80b5
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x14], 0
je 0x40aec5
mov dword [esi + 0x48], 0x400000
mov eax, dword [ebx + 0x44]
cmp dword [eax + 0x68], 0
je 0x40aec5
mov ecx, dword [eax + 0x68]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
call eax
mov ecx, dword [ebx + 0x44]
mov ecx, dword [ecx + 0x68]
test ecx, ecx
je 0x40aebb
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov ecx, dword [ebx + 0x44]
mov dword [ecx + 0x68], 0
mov edi, dword [esi + 0x7c]
sub edi, dword [esi + 0x70]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aef1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4