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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
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
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x20], 0
je 0x401d3b
cmp dword [ebp + 0x1c], 0xffffffff
je 0x401d3b
xor eax, eax
jmp 0x401d40
mov eax, 1
test eax, eax
je 0x401d52
mov eax, 0x1e13380
jmp 0x401d55
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], eax
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 4]
fstp qword [ebp - 0x2c]
fsub qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fild dword [ebp - 8]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x34]
fsub qword [ebp - 0x3c]
fcomp qword [0x450234]
fnstsw ax
test ah, 1
je 0x402015
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004492e0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004492e0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push 0
xor eax, eax
call dword [0x330f24f]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x401e18
push 0x16b
push 0x401a675
push 6
call fcn.004483d7
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401e2b
push ebx
call fcn.004483d1
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401e3b
push ebx
call fcn.004483d1
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x330f253]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x401e6d
push 0x1ad
push 0x401a675
push 6
call fcn.004483d7
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x401ffe
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 0x401ea6
push 0x1e4
push 0x401a675
push 6
call fcn.004483d7
add esp, 0xc
test eax, eax
je 0x401ffe
push dword [ebp - 0xc]
call fcn.00402047
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x10], eax
jne 0x401ffe
push dword [ebp - 0xc]
call fcn.00402113
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x401ee4
push ebx
call fcn.004483d1
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
call fcn.004023b9
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401f07
push ebx
call fcn.004483d1
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
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 0x401f32
mov eax, 0x450208
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x401f46
mov eax, 0x450208
push eax
push 4
mov ebx, 0x148
call fcn.00449300
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x401f6e
mov eax, dword [ebp - 0xc]
jmp 0x40201f
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 0x401f95
mov eax, 0x450208
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x401fa9
mov eax, 0x450208
push eax
push 4
mov ebx, 0x148
call fcn.00449300
add esp, 0x34
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x401fd1
mov eax, dword [ebp - 0xc]
jmp 0x40201f
cmp dword [ebp + 0x10], 0
je 0x401fe9
cmp dword [ebp + 0x18], 0
je 0x401fe9
xor eax, eax
jmp 0x401fee
mov eax, 1
test eax, eax
je 0x401ffe
mov eax, dword [ebp - 0xc]
jmp 0x40201f
push 0
mov ebx, 0x350
call fcn.00449430
add esp, 4
jmp 0x401d58
mov eax, 0
jmp 0x40201f
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402030
push ebx
call fcn.004483d1
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402040
push ebx
call fcn.004483d1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x1c