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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], 0
cmp dword [0x4e9ec4], 0
je 0x42e154
cmp dword [0x4e9ebc], 0
je 0x42da48
mov dword [0x4e9ebc], 0
mov dword [0x4e9f90], 0
mov dword [0x4e9f94], 1
mov dword [0x4e9f98], 0
call fcn.0042e158
push 0x4c7fbc
push dword [0x4e9c74]
call fcn.004033a2
add esp, 8
cmp eax, 0
jne 0x42da32
mov edx, dword [0x4e9f20]
mov eax, dword [0x4e9f1c]
mov dword [0x4e9f9c], eax
mov dword [0x4e9fa0], edx
jmp 0x42da48
mov edx, dword [0x4e9f44]
mov eax, dword [0x4e9f40]
mov dword [0x4e9f9c], eax
mov dword [0x4e9fa0], edx
cmp dword [0x4e9e20], 0
je 0x42da94
cmp dword [0x4e9e30], 0
je 0x42da94
mov ebx, dword [0x4e9ed4]
call fcn.00403749
cmp dword [0x4e9f94], eax
jg 0x42da94
mov ebx, dword [0x4e9edc]
call fcn.00403749
cmp dword [0x4e9f94], eax
jg 0x42da94
xor eax, eax
jmp 0x42da99
mov eax, 1
test eax, eax
je 0x42dab0
mov dword [0x4e9ec4], 0
jmp 0x42e154
call fcn.004201f5
test eax, eax
je 0x42dc91
cmp dword [0x4e9c04], 0
je 0x42dc8c
mov ebx, dword [0x4e9ed4]
call fcn.00401bde
push ebx
push ecx
mov eax, dword [0x4e9f94]
dec eax
jns 0x42daf6
push 0x32a
push 0x40140b2
push 4
call fcn.004422c3
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42db13
push 0x32a
push 0x40140b2
push 1
call fcn.004422c3
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 0x42db30
mov eax, 0x4c7586
push eax
push 1
mov ebx, 0x9dc
call fcn.00444500
add esp, 0x10
mov dword [0x4e9f98], eax
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x4e9fa4], eax
fild dword [0x4e9fa4]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [0x4e9fb0]
fstp qword [ebp - 0x14]
fsub qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [0x4e9fa8], eax
mov dword [0x4e9fac], edx
fld qword [0x4e9fa8]
fsub qword [0x4e83fb]
fcomp qword [0x4c7418]
fnstsw ax
test ah, 1
je 0x42dbf0
fld qword [0x4e8403]
fdiv qword [0x4e9fa8]
fstp qword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [0x4e9fa8], eax
mov dword [0x4e9fac], edx
fild dword [0x4e9f98]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x4e9fa8]
fmul qword [0x4e9e08]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.004011c1
mov dword [0x4e9f98], eax
cmp dword [0x4e9e30], 0
je 0x42dc82
fild dword [0x4e9fb4]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x4e9f9c]
fstp qword [ebp - 0x14]
fild dword [0x4e9f98]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [0x4e9fb8]
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.004011c1
push eax
fld qword [ebp - 0x14]
call fcn.004011c1
push eax
call fcn.0042f80e
mov dword [0x4e9fb4], 0
mov dword [0x4e9fb8], 0
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x4e9fb0], eax
mov dword [0x4e9ec4], 0
jmp 0x42e0bf
mov ebx, dword [0x4e9ed4]
call fcn.00401bde
push ebx
push ecx
mov eax, dword [0x4e9f94]
dec eax
jns 0x42dcbd
push 0x657
push 0x40140b2
push 4
call fcn.004422c3
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42dcda
push 0x657
push 0x40140b2
push 1
call fcn.004422c3
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 0x42dcf7
mov eax, 0x4c7586
push eax
push 1
mov ebx, 0x9dc
call fcn.00444500
add esp, 0x10
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fild dword [0x4e9f98]
fstp qword [ebp - 0x1c]
fsub qword [ebp - 0x1c]
fstp qword [ebp - 0x24]
mov ebx, dword [0x4e9edc]
call fcn.00401bde
push ebx
push ecx
mov eax, dword [0x4e9f94]
dec eax
jns 0x42dd51
push 0x692
push 0x40140b2
push 4
call fcn.004422c3
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42dd6e
push 0x692
push 0x40140b2
push 1
call fcn.004422c3
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 0x42dd8b
mov eax, 0x4c7586
push eax
push 1
mov ebx, 0x9dc
call fcn.00444500
add esp, 0x10
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [0x4e9f90]
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.00443b40
add esp, 0x10
mov dword [0x4e9f98], eax
mov ebx, dword [0x4e9ed4]
call fcn.00401bde
push ebx
push ecx
mov eax, dword [0x4e9f94]
dec eax
jns 0x42de10
push 0x6be
push 0x40140b2
push 4
call fcn.004422c3
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42de2d
push 0x6be
push 0x40140b2
push 1
call fcn.004422c3
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [0x4e9ed4]
call fcn.00401bde
push ebx
push ecx
mov eax, dword [0x4e9f94]
dec eax
jns 0x42de61
push 0x702
push 0x40140b2
push 4
call fcn.004422c3
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42de7e
push 0x702
push 0x40140b2
push 1
call fcn.004422c3
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 0x42de9b
mov eax, 0x4c7586
push eax
push 1
mov ebx, 0x9dc
call fcn.00444500
add esp, 0x10
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fild dword [0x4e9f98]
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.00443bd0
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 0x42deff
push ebx
call fcn.004422cf
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
inc dword [0x4e9f90]
mov eax, dword [0x4e9f98]
mov dword [ebp - 4], eax
cmp dword [0x4e9ef0], 0
jne 0x42df31
cmp dword [0x4e9ec0], 0
jne 0x42df31
xor eax, eax
jmp 0x42df36
mov eax, 1
test eax, eax
je 0x42e065
cmp dword [0x4e9ef0], 0
je 0x42df8a
push 0x4c7fbc
push dword [0x4e9c74]
call fcn.004033a2
add esp, 8
cmp eax, 0
jne 0x42df8a
push 0x4c8796
push dword [0x4e9c54]
call fcn.004033a2
add esp, 8
cmp eax, 0
jne 0x42df8a
mov eax, 1
jmp 0x42df8f
mov eax, 0
test eax, eax
jne 0x42dff4
cmp dword [0x4e9ef0], 0
je 0x42dfe3
push 0x4c87d7
push dword [0x4e9c74]
call fcn.004033a2
add esp, 8
cmp eax, 0
jne 0x42dfe3
push 0x4c8796
push dword [0x4e9c58]
call fcn.004033a2
add esp, 8
cmp eax, 0
jne 0x42dfe3
mov eax, 1
jmp 0x42dfe8
mov eax, 0
test eax, eax
jne 0x42dff4
xor eax, eax
jmp 0x42dff9
mov eax, 1
test eax, eax
je 0x42e026
fild dword [0x4e9f98]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x4e840b]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.004011c1
mov dword [ebp - 4], eax
jmp 0x42e065
cmp dword [0x4e9ec0], 0
je 0x42e047
cmp dword [0x4e9f90], 1
jle 0x42e047
mov eax, 1
jmp 0x42e04c
mov eax, 0
test eax, eax
je 0x42e065
mov dword [ebp - 4], 0
mov dword [0x4e9e20], 0
cmp dword [0x4e9e20], 0
je 0x42e086
cmp dword [0x4e9e30], 0
je 0x42e086
mov eax, 1
jmp 0x42e08b
mov eax, 0
test eax, eax
je 0x42e0bf
push dword [ebp - 4]
push dword [0x4e9e74]
call fcn.0042fe04
mov dword [0x4e9fb4], 0
mov dword [0x4e9fb8], 0
mov dword [0x4e9e74], 0
mov ebx, dword [0x4e9edc]
call fcn.00401bde
push ebx
push ecx
mov eax, dword [0x4e9f94]
dec eax
jns 0x42e0eb
push 0xae5
push 0x40140b2
push 4
call fcn.004422c3
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42e108
push 0xae5
push 0x40140b2
push 1
call fcn.004422c3
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 0x42e125
mov eax, 0x4c7586
push eax
push 1
mov ebx, 0x9dc
call fcn.00444500
add esp, 0x10
cmp dword [0x4e9f90], eax
jne 0x42e154
inc dword [0x4e9f94]
mov dword [0x4e9f90], 0
mov esp, ebp
pop ebp
ret