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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x28], 0
jne 0x4029a6
mov dword [ebp + 0x24], 1
mov dword [ebp - 0x1c], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4029cf
push 0x65
push 0x402294c
push 6
call fcn.00426b9e
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp + 0x20], 0
je 0x4029ea
cmp dword [ebp + 0x1c], 0
jl 0x4029ea
xor eax, eax
jmp 0x4029ef
mov eax, 1
test eax, eax
je 0x402a01
mov eax, 0x1e13380
jmp 0x402a04
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x402a30
push 0x13c
push 0x402294c
push 6
call fcn.00426b9e
add esp, 0xc
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fild dword [ebp - 4]
fstp qword [ebp - 0x30]
fsub qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fild dword [ebp - 8]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x38]
fsub qword [ebp - 0x40]
fcomp qword [0x43a34b]
fnstsw ax
test ah, 1
je 0x402dcb
mov dword [ebp - 0x1c], esp
push 0
push 0
push dword [ebp - 0xc]
push 0
xor eax, eax
call dword [sym.imp.USER32.dll_FindWindowExA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x402aa0
push 0x179
push 0x402294c
push 6
call fcn.00426b9e
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402ab2
jmp 0x402dcb
cmp dword [ebp + 0x24], 0
je 0x402afa
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x402ae8
push 0x22c
push 0x402294c
push 6
call fcn.00426b9e
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x402afa
jmp 0x402a07
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x402b2a
push 0x275
push 0x402294c
push 6
call fcn.00426b9e
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x10], eax
jne 0x402b76
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.USER32.dll_GetParent]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x402b62
push 0x2ed
push 0x402294c
push 6
call fcn.00426b9e
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x402b76
mov eax, 1
jmp 0x402b7b
mov eax, 0
test eax, eax
je 0x402db4
push dword [ebp - 0xc]
call fcn.00402dfd
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402ba2
push ebx
call fcn.00426b98
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
call fcn.00402f02
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402bc5
push ebx
call fcn.00426b98
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0
jne 0x402be4
cmp dword [ebp + 0x18], 0
jne 0x402be4
mov eax, 1
jmp 0x402be9
mov eax, 0
test eax, eax
je 0x402bfe
mov eax, dword [ebp - 0xc]
jmp 0x402dd5
cmp dword [ebp + 0x10], 0
jne 0x402c70
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push SysStringLen
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x402c2f
mov eax, 0x43a2df
push eax
push SysStringLen
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x402c43
mov eax, 0x43a2df
push eax
push 4
mov ebx, 0x148
call fcn.00427d10
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x402c6b
mov eax, dword [ebp - 0xc]
jmp 0x402dd5
jmp 0x402db4
cmp dword [ebp + 0x18], 0
jne 0x402ce2
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push SysStringLen
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x402ca1
mov eax, 0x43a2df
push eax
push SysStringLen
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x402cb5
mov eax, 0x43a2df
push eax
push 4
mov ebx, 0x148
call fcn.00427d10
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x402cdd
mov eax, dword [ebp - 0xc]
jmp 0x402dd5
jmp 0x402db4
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push SysStringLen
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x402d09
mov eax, 0x43a2df
push eax
push SysStringLen
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x402d1d
mov eax, 0x43a2df
push eax
push 4
mov ebx, 0x148
call fcn.00427d10
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x402d9f
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push SysStringLen
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x402d64
mov eax, 0x43a2df
push eax
push SysStringLen
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x402d78
mov eax, 0x43a2df
push eax
push 4
mov ebx, 0x148
call fcn.00427d10
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x402d9f
mov eax, 1
jmp 0x402da4
mov eax, 0
test eax, eax
je 0x402db4
mov eax, dword [ebp - 0xc]
jmp 0x402dd5
push 0
mov ebx, 0x350
call fcn.00427e40
add esp, 4
jmp 0x402a07
mov eax, 0
jmp 0x402dd5
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402de6
push ebx
call fcn.00426b98
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402df6
push ebx
call fcn.00426b98
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x24