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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], 0
cmp dword [0x47efd6], 0
je 0x42aa4c
cmp dword [0x47efce], 0
je 0x42a319
mov dword [0x47efce], 0
mov dword [0x47f0a6], 0
mov dword [0x47f0aa], 1
mov dword [0x47f0ae], 0
call fcn.0042aa50
push 0x45ac7e
push dword [0x47ed7a]
call fcn.004017df
add esp, 8
cmp eax, 0
jne 0x42a303
mov edx, dword [0x47f032]
mov eax, dword [0x47f02e]
mov dword [0x47f0b2], eax
mov dword [0x47f0b6], edx
jmp 0x42a319
mov edx, dword [0x47f056]
mov eax, dword [0x47f052]
mov dword [0x47f0b2], eax
mov dword [0x47f0b6], edx
cmp dword [0x47ef32], 0
je 0x42a365
cmp dword [0x47ef42], 0
je 0x42a365
mov ebx, dword [0x47efe6]
call fcn.00401ba6
cmp dword [0x47f0aa], eax
jg 0x42a365
mov ebx, dword [0x47efee]
call fcn.00401ba6
cmp dword [0x47f0aa], eax
jg 0x42a365
xor eax, eax
jmp 0x42a36a
mov eax, 1
test eax, eax
je 0x42a381
mov dword [0x47efd6], 0
jmp 0x42aa4c
call fcn.0041c213
test eax, eax
je 0x42a562
cmp dword [0x47ed06], 0
je 0x42a55d
mov ebx, dword [0x47efe6]
call fcn.0040187c
push ebx
push ecx
mov eax, dword [0x47f0aa]
dec eax
jns 0x42a3c7
push 0x32a
push 0x40140b2
push 4
call fcn.0044361c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42a3e4
push 0x32a
push 0x40140b2
push 1
call fcn.0044361c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
push VariantClear
push 0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
test eax, eax
jne 0x42a401
mov eax, 0x45a2ba
push eax
push 1
mov ebx, 0x9dc
call fcn.004457e0
add esp, 0x10
mov dword [0x47f0ae], eax
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x47f0ba], eax
fild dword [0x47f0ba]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [0x47f0c6]
fstp qword [ebp - 0x14]
fsub qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [0x47f0be], eax
mov dword [0x47f0c2], edx
fld qword [0x47f0be]
fsub qword [0x47b1b5]
fcomp qword [0x45ac38]
fnstsw ax
test ah, 1
je 0x42a4c1
fld qword [0x47b1bd]
fdiv qword [0x47f0be]
fstp qword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [0x47f0be], eax
mov dword [0x47f0c2], edx
fild dword [0x47f0ae]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x47f0be]
fmul qword [0x47ef1a]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00402799
mov dword [0x47f0ae], eax
cmp dword [0x47ef42], 0
je 0x42a553
fild dword [0x47f0ca]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x47f0b2]
fstp qword [ebp - 0x14]
fild dword [0x47f0ae]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [0x47f0ce]
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.00402799
push eax
fld qword [ebp - 0x14]
call fcn.00402799
push eax
call fcn.0042c106
mov dword [0x47f0ca], 0
mov dword [0x47f0ce], 0
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x47f0c6], eax
mov dword [0x47efd6], 0
jmp 0x42a9b7
mov ebx, dword [0x47efe6]
call fcn.0040187c
push ebx
push ecx
mov eax, dword [0x47f0aa]
dec eax
jns 0x42a58e
push 0x657
push 0x40140b2
push 4
call fcn.0044361c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42a5ab
push 0x657
push 0x40140b2
push 1
call fcn.0044361c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
push VariantClear
push 0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
test eax, eax
jne 0x42a5c8
mov eax, 0x45a2ba
push eax
push 1
mov ebx, 0x9dc
call fcn.004457e0
add esp, 0x10
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fild dword [0x47f0ae]
fstp qword [ebp - 0x1c]
fsub qword [ebp - 0x1c]
fstp qword [ebp - 0x24]
mov ebx, dword [0x47efee]
call fcn.0040187c
push ebx
push ecx
mov eax, dword [0x47f0aa]
dec eax
jns 0x42a622
push 0x692
push 0x40140b2
push 4
call fcn.0044361c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42a63f
push 0x692
push 0x40140b2
push 1
call fcn.0044361c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push VariantClear
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x42a65c
mov eax, 0x45a2ba
push eax
push 1
mov ebx, 0x9dc
call fcn.004457e0
add esp, 0x10
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [0x47f0a6]
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.004495f0
add esp, 0x10
mov dword [0x47f0ae], eax
mov ebx, dword [0x47efe6]
call fcn.0040187c
push ebx
push ecx
mov eax, dword [0x47f0aa]
dec eax
jns 0x42a6e1
push 0x6be
push 0x40140b2
push 4
call fcn.0044361c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42a6fe
push 0x6be
push 0x40140b2
push 1
call fcn.0044361c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [0x47efe6]
call fcn.0040187c
push ebx
push ecx
mov eax, dword [0x47f0aa]
dec eax
jns 0x42a732
push 0x702
push 0x40140b2
push 4
call fcn.0044361c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42a74f
push 0x702
push 0x40140b2
push 1
call fcn.0044361c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
push VariantClear
push 0
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x42a76c
mov eax, 0x45a2ba
push eax
push 1
mov ebx, 0x9dc
call fcn.004457e0
add esp, 0x10
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fild dword [0x47f0ae]
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.004451d0
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 0x42a7d0
push ebx
call fcn.00443610
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
inc dword [0x47f0a6]
mov eax, dword [0x47f0ae]
mov dword [ebp - 4], eax
cmp dword [0x47f002], 0
jne 0x42a802
cmp dword [0x47efd2], 0
jne 0x42a802
xor eax, eax
jmp 0x42a807
mov eax, 1
test eax, eax
je 0x42a936
cmp dword [0x47f002], 0
je 0x42a85b
push 0x45ac7e
push dword [0x47ed7a]
call fcn.004017df
add esp, 8
cmp eax, 0
jne 0x42a85b
push 0x45b45e
push dword [0x47ed5a]
call fcn.004017df
add esp, 8
cmp eax, 0
jne 0x42a85b
mov eax, 1
jmp 0x42a860
mov eax, 0
test eax, eax
jne 0x42a8c5
cmp dword [0x47f002], 0
je 0x42a8b4
push 0x45b4a7
push dword [0x47ed7a]
call fcn.004017df
add esp, 8
cmp eax, 0
jne 0x42a8b4
push 0x45b45e
push dword [0x47ed5e]
call fcn.004017df
add esp, 8
cmp eax, 0
jne 0x42a8b4
mov eax, 1
jmp 0x42a8b9
mov eax, 0
test eax, eax
jne 0x42a8c5
xor eax, eax
jmp 0x42a8ca
mov eax, 1
test eax, eax
je 0x42a8f7
fild dword [0x47f0ae]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x47b1c5]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00402799
mov dword [ebp - 4], eax
jmp 0x42a936
cmp dword [0x47efd2], 0
je 0x42a918
cmp dword [0x47f0a6], 1
jle 0x42a918
mov eax, 1
jmp 0x42a91d
mov eax, 0
test eax, eax
je 0x42a936
mov dword [ebp - 4], 0
mov dword [0x47ef32], 0
cmp dword [0x47ef32], 0
je 0x42a957
cmp dword [0x47ef42], 0
je 0x42a957
mov eax, 1
jmp 0x42a95c
mov eax, 0
test eax, eax
je 0x42a9b7
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 [0x47ef86]
call fcn.0042c85b
mov dword [0x47f0ca], 0
mov dword [0x47f0ce], 0
mov dword [0x47ef86], 0
mov ebx, dword [0x47efee]
call fcn.0040187c
push ebx
push ecx
mov eax, dword [0x47f0aa]
dec eax
jns 0x42a9e3
push 0xae5
push 0x40140b2
push 4
call fcn.0044361c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42aa00
push 0xae5
push 0x40140b2
push 1
call fcn.0044361c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
push VariantClear
push 0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
test eax, eax
jne 0x42aa1d
mov eax, 0x45a2ba
push eax
push 1
mov ebx, 0x9dc
call fcn.004457e0
add esp, 0x10
cmp dword [0x47f0a6], eax
jne 0x42aa4c
inc dword [0x47f0aa]
mov dword [0x47f0a6], 0
mov esp, ebp
pop ebp
ret