Function at 0x4173bf
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
cmp dword [0x49d99f], 0
jne 0x41740f
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [0x49d99f], eax
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [0x49d99f]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fsub qword [0x49a7d4]
fcomp qword [0x49a7dc]
fnstsw ax
test ah, 1
jne 0x4178a1
cmp dword [0x49d9a3], 0
jne 0x417492
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
push 1
push 0xff00
push 0x49d887
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x194]
mov dword [0x49d9a3], 1
call fcn.004178c7
test eax, eax
je 0x417747
mov ebx, dword [0x49d88b]
mov dword [ebp - 0x18], ebx
push 0x80000301
push 0
push 1
push OleUIBusyA
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x4174c9
mov eax, 0x4722d5
push eax
push 2
mov ebx, 0x134
call fcn.004470c0
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4174f3
push ebx
call fcn.004435a3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
push 0
push 0
push OleUIBusyA
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x417510
mov eax, 0x4722d5
push eax
push 2
mov ebx, 0x144
call fcn.004496d0
add esp, 0x1c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x417588
mov ebx, dword [0x49d88b]
mov dword [ebp - 0x18], ebx
push 0x80000301
push 0
push 2
push OleUIBusyA
push 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
jne 0x41755a
mov eax, 0x4722d5
push eax
push 2
mov ebx, 0x134
call fcn.004470c0
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x417584
push ebx
call fcn.004435a3
add esp, 4
pop eax
mov dword [ebp - 4], eax
push OleUIBusyA
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x41759b
mov eax, 0x4722d5
push eax
push 1
mov ebx, 0x130
call fcn.004470a0
add esp, 0x10
mov dword [ebp - 8], eax
mov ebx, dword [0x49d88b]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
fild dword [ebx]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 8]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004027b0
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x90c
call fcn.00448860
add esp, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x41760d
push ebx
call fcn.004435a3
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [0x49d88b]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [0x49d88b]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 8]
fstp qword [ebp - 0x2c]
fsub qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004027b0
push 0x80000301
push 0
push eax
push 0x80000301
push 0
mov ebx, dword [ebp - 0x18]
push dword [ebx]
push OleUIBusyA
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x41766f
mov eax, 0x4722d5
push eax
push 3
mov ebx, 0x914
call fcn.00449710
add esp, 0x28
push OleUIBusyA
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x417695
mov eax, 0x4722d5
push eax
push 1
mov ebx, 0x130
call fcn.004470a0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [0x49d88b]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
fild dword [ebx]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
push 0x80000301
push 0
push dword [ebp - 8]
fld qword [ebp - 0x30]
call fcn.004027b0
push 0x80000301
push 0
push eax
push OleUIBusyA
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4176fb
mov eax, 0x4722d5
push eax
push 3
mov ebx, 0x914
call fcn.00449710
add esp, 0x28
mov ebx, dword [0x49d88b]
mov dword [ebp - 0x18], ebx
push 1
push dword [ebp - 0x18]
push 0x49d887
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x190]
mov ebx, eax
test ebx, ebx
je 0x41773d
push ebx
call fcn.004435a3
add esp, 4
call fcn.00417952
jmp 0x41789c
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push 0x49d887
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc8]
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fdiv qword [0x499ab2]
fstp qword [ebp - 0x30]
push 0x80000301
push 0
push 0
push 0x80000601
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 2
mov ebx, 0x68
call fcn.004487d0
add esp, 0x1c
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
fld qword [ebp - 0x40]
call fcn.004027b0
mov dword [ebp - 0x14], eax
mov ebx, dword [0x49d88b]
mov dword [ebp - 0x18], ebx
push 0x80000301
push 0
push dword [ebp - 0x14]
push 1
mov ebx, 0x184
call fcn.00446530
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [0x49d863]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
push dword [ebx]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41781c
push ebx
call fcn.004435a3
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x417832
push ebx
call fcn.004435a3
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [0x49d88b]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [0x49d88b]
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x1c]
call fcn.00416f36
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [0x49d88b]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [0x49d88b]
mov dword [ebp - 0x1c], ebx
push OleUIBusyA
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x417884
mov eax, 0x4722d5
push eax
push 1
mov ebx, 0x130
call fcn.004470a0
add esp, 0x10
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
jmp 0x4178a1
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4178b1
push ebx
call fcn.004435a3
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4178c1
push ebx
call fcn.004435a3
add esp, 4
mov esp, ebp
pop ebp
ret 8