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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], 0
cmp dword [0x4fdd7c], 0
je 0x4297cc
cmp dword [0x4fdd74], 0
je 0x429035
mov dword [0x4fdd74], 0
mov dword [0x4fde4c], 0
mov dword [0x4fde50], 1
mov dword [0x4fde54], 0
call fcn.004297d0
push 0x4c5ba2
push dword [0x4fdb1c]
call fcn.00401747
add esp, 8
cmp eax, 0
jne 0x42901f
mov edx, dword [0x4fddd8]
mov eax, dword [0x4fddd4]
mov dword [0x4fde58], eax
mov dword [0x4fde5c], edx
jmp 0x429035
mov edx, dword [0x4fddfc]
mov eax, dword [0x4fddf8]
mov dword [0x4fde58], eax
mov dword [0x4fde5c], edx
cmp dword [0x4fdcd4], 0
je 0x429081
cmp dword [0x4fdce4], 0
je 0x429081
mov ebx, dword [0x4fdd8c]
call fcn.00401b0e
cmp dword [0x4fde50], eax
jg 0x429081
mov ebx, dword [0x4fdd94]
call fcn.00401b0e
cmp dword [0x4fde50], eax
jg 0x429081
xor eax, eax
jmp 0x429086
mov eax, 1
test eax, eax
je 0x42909d
mov dword [0x4fdd7c], 0
jmp 0x4297cc
push 0x4fdb1c
call fcn.0041bcff
test eax, eax
je 0x429283
cmp dword [0x4fdaac], 0
je 0x42927e
mov ebx, dword [0x4fdd8c]
call fcn.004017e4
push ebx
push ecx
mov eax, dword [0x4fde50]
dec eax
jns 0x4290e8
push 0x31e
push 0x40140b2
push 4
call fcn.0044239c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x429105
push 0x31e
push 0x40140b2
push 1
call fcn.0044239c
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 0x429122
mov eax, 0x4c52b6
push eax
push 1
mov ebx, 0x9dc
call fcn.00447200
add esp, 0x10
mov dword [0x4fde54], eax
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x4fde60], eax
fild dword [0x4fde60]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [0x4fde6c]
fstp qword [ebp - 0x14]
fsub qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [0x4fde64], eax
mov dword [0x4fde68], edx
fld qword [0x4fde64]
fsub qword [0x4f9f53]
fcomp qword [0x4c5b1a]
fnstsw ax
test ah, 1
je 0x4291e2
fld qword [0x4f9f5b]
fdiv qword [0x4fde64]
fstp qword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [0x4fde64], eax
mov dword [0x4fde68], edx
fild dword [0x4fde54]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x4fde64]
fmul qword [0x4fdcbc]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00402701
mov dword [0x4fde54], eax
cmp dword [0x4fdce4], 0
je 0x429274
fild dword [0x4fdd64]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x4fde58]
fstp qword [ebp - 0x14]
fild dword [0x4fde54]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [0x4fdd68]
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.00402701
push eax
fld qword [ebp - 0x14]
call fcn.00402701
push eax
call fcn.0042ae86
mov dword [0x4fdd64], 0
mov dword [0x4fdd68], 0
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x4fde6c], eax
mov dword [0x4fdd7c], 0
jmp 0x429737
mov ebx, dword [0x4fdd8c]
call fcn.004017e4
push ebx
push ecx
mov eax, dword [0x4fde50]
dec eax
jns 0x4292af
push 0x64b
push 0x40140b2
push 4
call fcn.0044239c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4292cc
push 0x64b
push 0x40140b2
push 1
call fcn.0044239c
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 0x4292e9
mov eax, 0x4c52b6
push eax
push 1
mov ebx, 0x9dc
call fcn.00447200
add esp, 0x10
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fild dword [0x4fde54]
fstp qword [ebp - 0x1c]
fsub qword [ebp - 0x1c]
fstp qword [ebp - 0x24]
mov ebx, dword [0x4fdd94]
call fcn.004017e4
push ebx
push ecx
mov eax, dword [0x4fde50]
dec eax
jns 0x429343
push 0x686
push 0x40140b2
push 4
call fcn.0044239c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x429360
push 0x686
push 0x40140b2
push 1
call fcn.0044239c
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 0x42937d
mov eax, 0x4c52b6
push eax
push 1
mov ebx, 0x9dc
call fcn.00447200
add esp, 0x10
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [0x4fde4c]
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.00447910
add esp, 0x10
mov dword [0x4fde54], eax
mov ebx, dword [0x4fdd8c]
call fcn.004017e4
push ebx
push ecx
mov eax, dword [0x4fde50]
dec eax
jns 0x429402
push 0x6b2
push 0x40140b2
push 4
call fcn.0044239c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x42941f
push 0x6b2
push 0x40140b2
push 1
call fcn.0044239c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [0x4fdd8c]
call fcn.004017e4
push ebx
push ecx
mov eax, dword [0x4fde50]
dec eax
jns 0x429453
push 0x6f6
push 0x40140b2
push 4
call fcn.0044239c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x429470
push 0x6f6
push 0x40140b2
push 1
call fcn.0044239c
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 0x42948d
mov eax, 0x4c52b6
push eax
push 1
mov ebx, 0x9dc
call fcn.00447200
add esp, 0x10
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fild dword [0x4fde54]
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.00443f70
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 0x4294f1
push ebx
call fcn.00442390
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
inc dword [0x4fde4c]
mov eax, dword [0x4fde54]
mov dword [ebp - 4], eax
cmp dword [0x4fdda8], 0
jne 0x429523
cmp dword [0x4fdd78], 0
jne 0x429523
xor eax, eax
jmp 0x429528
mov eax, 1
test eax, eax
je 0x429657
cmp dword [0x4fdda8], 0
je 0x42957c
push 0x4c5ba2
push dword [0x4fdb1c]
call fcn.00401747
add esp, 8
cmp eax, 0
jne 0x42957c
push 0x4da1b6
push dword [0x4fdafc]
call fcn.00401747
add esp, 8
cmp eax, 0
jne 0x42957c
mov eax, 1
jmp 0x429581
mov eax, 0
test eax, eax
jne 0x4295e6
cmp dword [0x4fdda8], 0
je 0x4295d5
push 0x4da207
push dword [0x4fdb1c]
call fcn.00401747
add esp, 8
cmp eax, 0
jne 0x4295d5
push 0x4da1b6
push dword [0x4fdb00]
call fcn.00401747
add esp, 8
cmp eax, 0
jne 0x4295d5
mov eax, 1
jmp 0x4295da
mov eax, 0
test eax, eax
jne 0x4295e6
xor eax, eax
jmp 0x4295eb
mov eax, 1
test eax, eax
je 0x429618
fild dword [0x4fde54]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x4f9f63]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.00402701
mov dword [ebp - 4], eax
jmp 0x429657
cmp dword [0x4fdd78], 0
je 0x429639
cmp dword [0x4fde4c], 1
jle 0x429639
mov eax, 1
jmp 0x42963e
mov eax, 0
test eax, eax
je 0x429657
mov dword [ebp - 4], 0
mov dword [0x4fdcd4], 0
cmp dword [0x4fdcd4], 0
je 0x429678
cmp dword [0x4fdce4], 0
je 0x429678
mov eax, 1
jmp 0x42967d
mov eax, 0
test eax, eax
je 0x429737
cmp dword [0x4fdd64], 0
jne 0x4296cc
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 [0x4fdd28]
call fcn.0042b5db
jmp 0x429719
fild dword [0x4fdd64]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fmul qword [0x4fde58]
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.00402701
push eax
call fcn.0042b5db
mov dword [0x4fdd64], 0
mov dword [0x4fdd68], 0
mov dword [0x4fdd28], 0
mov ebx, dword [0x4fdd94]
call fcn.004017e4
push ebx
push ecx
mov eax, dword [0x4fde50]
dec eax
jns 0x429763
push 0xb4d
push 0x40140b2
push 4
call fcn.0044239c
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x429780
push 0xb4d
push 0x40140b2
push 1
call fcn.0044239c
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 0x42979d
mov eax, 0x4c52b6
push eax
push 1
mov ebx, 0x9dc
call fcn.00447200
add esp, 0x10
cmp dword [0x4fde4c], eax
jne 0x4297cc
inc dword [0x4fde50]
mov dword [0x4fde4c], 0
mov esp, ebp
pop ebp
ret