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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], 0
cmp dword [0x494408], 0
je 0x42f85f
cmp dword [0x494400], 0
je 0x42f0c8
mov dword [0x494400], 0
mov dword [0x4944d8], 0
mov dword [0x4944dc], 1
mov dword [0x4944e0], 0
call fcn.0042f863
push 0x45c981
push dword [0x49419c]
call fcn.00401991
add esp, 8
cmp eax, 0
jne 0x42f0b2
mov edx, dword [0x494464]
mov eax, dword [0x494460]
mov dword [0x4944e4], eax
mov dword [0x4944e8], edx
jmp 0x42f0c8
mov edx, dword [0x494488]
mov eax, dword [0x494484]
mov dword [0x4944e4], eax
mov dword [0x4944e8], edx
cmp dword [0x494364], 0
je 0x42f114
cmp dword [0x494374], 0
je 0x42f114
mov ebx, dword [0x494418]
call fcn.00401d58
cmp dword [0x4944dc], eax
jg 0x42f114
mov ebx, dword [0x494420]
call fcn.00401d58
cmp dword [0x4944dc], eax
jg 0x42f114
xor eax, eax
jmp 0x42f119
mov eax, 1
test eax, eax
je 0x42f130
mov dword [0x494408], 0
jmp 0x42f85f
push 0x49419c
call fcn.004221dc
test eax, eax
je 0x42f316
cmp dword [0x494338], 0
je 0x42f311
mov ebx, dword [0x494418]
call fcn.00401a2e
push ebx
push ecx
mov eax, dword [0x4944dc]
dec eax
jns 0x42f17b
push 0x30b
push 0x4014453
push 4
call fcn.0044603c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42f198
push 0x30b
push 0x4014453
push 1
call fcn.0044603c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
push SysStringLen
push 0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
test eax, eax
jne 0x42f1b5
mov eax, 0x45b26d
push eax
push 1
mov ebx, 0x9dc
call fcn.0044abe0
add esp, 0x10
mov dword [0x4944e0], eax
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x4944ec], eax
fild dword [0x4944ec]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [0x4944f8]
fstp qword [ebp - 0x14]
fsub qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [0x4944f0], eax
mov dword [0x4944f4], edx
fld qword [0x4944f0]
fsub qword [0x490a8c]
fcomp qword [0x45cb78]
fnstsw ax
test ah, 1
je 0x42f275
fld qword [0x490a94]
fdiv qword [0x4944f0]
fstp qword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [0x4944f0], eax
mov dword [0x4944f4], edx
fild dword [0x4944e0]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x4944f0]
fmul qword [0x49432c]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.0040294b
mov dword [0x4944e0], eax
cmp dword [0x494374], 0
je 0x42f307
fild dword [0x4943f0]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x4944e4]
fstp qword [ebp - 0x14]
fild dword [0x4944e0]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [0x4943f4]
fstp qword [ebp - 0x24]
fadd qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
push 1
push 0x32
fld qword [ebp - 0x2c]
call fcn.0040294b
push eax
fld qword [ebp - 0x14]
call fcn.0040294b
push eax
call fcn.00430f19
mov dword [0x4943f0], 0
mov dword [0x4943f4], 0
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x4944f8], eax
mov dword [0x494408], 0
jmp 0x42f7ca
mov ebx, dword [0x494418]
call fcn.00401a2e
push ebx
push ecx
mov eax, dword [0x4944dc]
dec eax
jns 0x42f342
push 0x638
push 0x4014453
push 4
call fcn.0044603c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42f35f
push 0x638
push 0x4014453
push 1
call fcn.0044603c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
push SysStringLen
push 0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
test eax, eax
jne 0x42f37c
mov eax, 0x45b26d
push eax
push 1
mov ebx, 0x9dc
call fcn.0044abe0
add esp, 0x10
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fild dword [0x4944e0]
fstp qword [ebp - 0x1c]
fsub qword [ebp - 0x1c]
fstp qword [ebp - 0x24]
mov ebx, dword [0x494420]
call fcn.00401a2e
push ebx
push ecx
mov eax, dword [0x4944dc]
dec eax
jns 0x42f3d6
push 0x673
push 0x4014453
push 4
call fcn.0044603c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42f3f3
push 0x673
push 0x4014453
push 1
call fcn.0044603c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push SysStringLen
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x42f410
mov eax, 0x45b26d
push eax
push 1
mov ebx, 0x9dc
call fcn.0044abe0
add esp, 0x10
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [0x4944d8]
fstp qword [ebp - 0x3c]
fsub qword [ebp - 0x3c]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x24]
fdiv qword [ebp - 0x44]
fstp qword [ebp - 0x4c]
push 0x80000601
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push 1
mov ebx, 0x60
call fcn.0044b280
add esp, 0x10
mov dword [0x4944e0], eax
mov ebx, dword [0x494418]
call fcn.00401a2e
push ebx
push ecx
mov eax, dword [0x4944dc]
dec eax
jns 0x42f495
push 0x69f
push 0x4014453
push 4
call fcn.0044603c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42f4b2
push 0x69f
push 0x4014453
push 1
call fcn.0044603c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [0x494418]
call fcn.00401a2e
push ebx
push ecx
mov eax, dword [0x4944dc]
dec eax
jns 0x42f4e6
push 0x6e3
push 0x4014453
push 4
call fcn.0044603c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42f503
push 0x6e3
push 0x4014453
push 1
call fcn.0044603c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
push SysStringLen
push 0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x42f520
mov eax, 0x45b26d
push eax
push 1
mov ebx, 0x9dc
call fcn.0044abe0
add esp, 0x10
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fild dword [0x4944e0]
fstp qword [ebp - 0x20]
fsub qword [ebp - 0x20]
fstp qword [ebp - 0x28]
push 0x80000601
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 1
mov ebx, 0x168
call fcn.004477f0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x42f584
push ebx
call fcn.00446030
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
inc dword [0x4944d8]
mov eax, dword [0x4944e0]
mov dword [ebp - 4], eax
cmp dword [0x494434], 0
jne 0x42f5b6
cmp dword [0x494404], 0
jne 0x42f5b6
xor eax, eax
jmp 0x42f5bb
mov eax, 1
test eax, eax
je 0x42f6ea
cmp dword [0x494434], 0
je 0x42f60f
push 0x45c981
push dword [0x49419c]
call fcn.00401991
add esp, 8
cmp eax, 0
jne 0x42f60f
push 0x45d178
push dword [0x49417c]
call fcn.00401991
add esp, 8
cmp eax, 0
jne 0x42f60f
mov eax, 1
jmp 0x42f614
mov eax, 0
test eax, eax
jne 0x42f679
cmp dword [0x494434], 0
je 0x42f668
push 0x47101d
push dword [0x49419c]
call fcn.00401991
add esp, 8
cmp eax, 0
jne 0x42f668
push 0x45d178
push dword [0x494180]
call fcn.00401991
add esp, 8
cmp eax, 0
jne 0x42f668
mov eax, 1
jmp 0x42f66d
mov eax, 0
test eax, eax
jne 0x42f679
xor eax, eax
jmp 0x42f67e
mov eax, 1
test eax, eax
je 0x42f6ab
fild dword [0x4944e0]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x490a9c]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.0040294b
mov dword [ebp - 4], eax
jmp 0x42f6ea
cmp dword [0x494404], 0
je 0x42f6cc
cmp dword [0x4944d8], 1
jle 0x42f6cc
mov eax, 1
jmp 0x42f6d1
mov eax, 0
test eax, eax
je 0x42f6ea
mov dword [ebp - 4], 0
mov dword [0x494364], 0
cmp dword [0x494364], 0
je 0x42f70b
cmp dword [0x494374], 0
je 0x42f70b
mov eax, 1
jmp 0x42f710
mov eax, 0
test eax, eax
je 0x42f7ca
cmp dword [0x4943f0], 0
jne 0x42f75f
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [0x4943b8]
call fcn.0042106d
jmp 0x42f7ac
fild dword [0x4943f0]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x4944e4]
fstp qword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
fld qword [ebp - 0x14]
call fcn.0040294b
push eax
call fcn.0042106d
mov dword [0x4943f0], 0
mov dword [0x4943f4], 0
mov dword [0x4943b8], 0
mov ebx, dword [0x494420]
call fcn.00401a2e
push ebx
push ecx
mov eax, dword [0x4944dc]
dec eax
jns 0x42f7f6
push 0xb3a
push 0x4014453
push 4
call fcn.0044603c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42f813
push 0xb3a
push 0x4014453
push 1
call fcn.0044603c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
push SysStringLen
push 0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
test eax, eax
jne 0x42f830
mov eax, 0x45b26d
push eax
push 1
mov ebx, 0x9dc
call fcn.0044abe0
add esp, 0x10
cmp dword [0x4944d8], eax
jne 0x42f85f
inc dword [0x4944dc]
mov dword [0x4944d8], 0
mov esp, ebp
pop ebp
ret