Function at 0x402eda
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 0x402f1e
mov dword [ebp + 0x24], 1
mov dword [ebp - 0x1c], esp
mov eax, 9
call sub.kernel32.dll_GetTickCount
cmp dword [ebp - 0x1c], esp
je 0x402f47
push 0x65
push 0x4013a94
push 6
call fcn.00418b89
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp + 0x20], 0
je 0x402f62
cmp dword [ebp + 0x1c], 0
jl 0x402f62
xor eax, eax
jmp 0x402f67
mov eax, 1
test eax, eax
je 0x402f79
mov eax, 0x1e13380
jmp 0x402f7c
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], esp
mov eax, 9
call sub.kernel32.dll_GetTickCount
cmp dword [ebp - 0x1c], esp
je 0x402fa8
push 0x13c
push 0x4013a94
push 6
call fcn.00418b89
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 [0x42f85e]
fnstsw ax
test ah, 1
je 0x403343
mov dword [ebp - 0x1c], esp
push 0
push 0
push dword [ebp - 0xc]
push 0
mov eax, 0xa
call sub.user32.dll_FindWindowExA
cmp dword [ebp - 0x1c], esp
je 0x403018
push 0x179
push 0x4013a94
push 6
call fcn.00418b89
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40302a
jmp 0x403343
cmp dword [ebp + 0x24], 0
je 0x403072
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov eax, 0xb
call sub.user32.dll_IsWindowVisible
cmp dword [ebp - 0x1c], esp
je 0x403060
push 0x22c
push 0x4013a94
push 6
call fcn.00418b89
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x403072
jmp 0x402f7f
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
mov eax, 0xc
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [ebp - 0x1c], esp
je 0x4030a2
push 0x275
push 0x4013a94
push 6
call fcn.00418b89
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x10], eax
jne 0x4030ee
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 0xd
call sub.user32.dll_GetParent
cmp dword [ebp - 0x20], esp
je 0x4030da
push 0x2ed
push 0x4013a94
push 6
call fcn.00418b89
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4030ee
mov eax, 1
jmp 0x4030f3
mov eax, 0
test eax, eax
je 0x40332c
push dword [ebp - 0xc]
call fcn.00403375
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40311a
push ebx
call fcn.00418b7d
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
call fcn.0040342b
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40313d
push ebx
call fcn.00418b7d
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0
jne 0x40315c
cmp dword [ebp + 0x18], 0
jne 0x40315c
mov eax, 1
jmp 0x403161
mov eax, 0
test eax, eax
je 0x403176
mov eax, dword [ebp - 0xc]
jmp 0x40334d
cmp dword [ebp + 0x10], 0
jne 0x4031e8
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x4031a7
mov eax, 0x42f588
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4031bb
mov eax, 0x42f588
push eax
push 4
mov ebx, 0x148
call sub.wmvert.dll_wm_InStr
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x4031e3
mov eax, dword [ebp - 0xc]
jmp 0x40334d
jmp 0x40332c
cmp dword [ebp + 0x18], 0
jne 0x40325a
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x403219
mov eax, 0x42f588
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40322d
mov eax, 0x42f588
push eax
push 4
mov ebx, 0x148
call sub.wmvert.dll_wm_InStr
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x403255
mov eax, dword [ebp - 0xc]
jmp 0x40334d
jmp 0x40332c
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x403281
mov eax, 0x42f588
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x403295
mov eax, 0x42f588
push eax
push 4
mov ebx, 0x148
call sub.wmvert.dll_wm_InStr
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x403317
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x4032dc
mov eax, 0x42f588
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4032f0
mov eax, 0x42f588
push eax
push 4
mov ebx, 0x148
call sub.wmvert.dll_wm_InStr
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x403317
mov eax, 1
jmp 0x40331c
mov eax, 0
test eax, eax
je 0x40332c
mov eax, dword [ebp - 0xc]
jmp 0x40334d
push 0
mov ebx, 0x350
call sub.wmvert.dll_wm_DoEvents
add esp, 4
jmp 0x402f7f
mov eax, 0
jmp 0x40334d
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40335e
push ebx
call fcn.00418b7d
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40336e
push ebx
call fcn.00418b7d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x24