Function at 0x410e40
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 0x4690e3
mov dword [ebp - 0x20], edi
call fcn.00447953
mov ecx, dword [edi]
mov dword [edi + 0x20], 0
mov dl, byte [ecx + 0x1d15]
cmp byte [0x4618a0], dl
je 0x410eb2
lea eax, [edi + 0x48]
test dl, dl
je 0x410e8a
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi + 0x80]
mov dword [0x45ab14], eax
jmp 0x410ea5
lea esi, [edi + 0x50]
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esi]
sub ecx, dword [edi + 0x48]
mov eax, dword [esi + 4]
sbb eax, dword [edi + 0x4c]
mov dword [edi + 0x58], ecx
mov dword [edi + 0x5c], eax
mov ecx, dword [edi]
mov al, byte [ecx + 0x1d15]
mov byte [0x4618a0], al
cmp byte [ecx + 0x1d15], 0
je 0x410f14
mov eax, dword [edi + 0x80]
cmp eax, dword [0x45ab14]
je 0x410f7f
mov esi, dword [edi + 0x14]
test esi, esi
jle 0x410eda
dec esi
mov dword [edi + 0x14], esi
jmp 0x410ee4
mov dword [edi + 0x94], 0
push esi
push 1
push 0x405
push dword [0x462034]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0x80]
mov dword [0x45ab14], eax
xor al, al
mov dword [0x45ab20], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 0x94]
lea esi, [edi + 0x90]
lea ecx, [edi + 0xc]
cmp edx, 0xffffffff
je 0x410f5b
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 0x10]
add eax, edx
mov dword [edi + 0x14], edx
add eax, dword [edi + 0x80]
cdq
idiv dword [edi + 0xc]
lea eax, [edi + 0x1d]
mov dword [edi + 0x94], 0xffffffff
mov dword [edi + 0x8c], edx
mov dword [esi], 0xffffffff
mov byte [eax], 1
jmp 0x410f5e
lea eax, [edi + 0x1d]
mov edx, dword [edi + 0x8c]
mov dword [ebp - 8], edx
cmp edx, dword [edi + 0x80]
jne 0x410fb3
mov eax, dword [edi + 0x10]
dec eax
cmp dword [edi + 0x14], eax
jne 0x410f8a
mov dword [edi + 0x20], 0x64
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [edx + 1]
mov dword [esi], 0xffffffff
cdq
idiv dword [ecx]
lea eax, [edi + 0x1d]
mov byte [eax], 1
lea ecx, [edi + 0xc]
mov dword [ebp - 8], edx
mov dword [edi + 0x8c], edx
lea edx, [edi + 0x1d]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 8]
jmp 0x410fb6
mov dword [ebp - 0x10], eax
mov ebx, dword [edi + 0x9c]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov ebx, dword [ebx + edx*4]
mov edx, dword [esi]
mov dword [ebp - 0x18], ebx
cmp edx, 0xffffffff
jne 0x4111d3
cmp byte [eax], 0
je 0x410fea
mov byte [eax], 0
movsd xmm0, qword [ebx + 0x10]
movsd qword [edi + 0x60], xmm0
jmp 0x41110f
mov eax, dword [ebp - 8]
dec eax
add eax, dword [edi + 0xc]
cdq
idiv dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x18]
sub eax, edx
sar eax, 2
test eax, eax
jle 0x411015
mov eax, dword [edx + eax*4 - 4]
movsd xmm1, qword [eax + 0x10]
jmp 0x41101a
movsd xmm1, qword [ecx + 0x10]
movsd xmm0, qword [ebx + 0x10]
xorps xmm2, xmm2
ucomisd xmm0, xmm2
movsd qword [ebp - 0x2c], xmm1
lahf
test ah, 0x44
jnp 0x410f7f
ucomisd xmm1, xmm2
lahf
test ah, 0x44
jnp 0x410f7f
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movsd xmm0, qword [ebx + 0x10]
subsd xmm0, qword [ebp - 0x2c]
mov ecx, dword [edi + 0x38]
sub ecx, dword [edi + 0x58]
mov edx, dword [edi + 0x3c]
sbb edx, dword [edi + 0x5c]
mulsd xmm0, qword [0x453dc8]
sub ecx, dword [edi + 0x30]
sbb edx, dword [edi + 0x34]
movsd qword [ebp - 0x24], xmm0
call fcn.00447a00
mulsd xmm0, qword [0x461ce0]
movsd xmm1, qword [ebp - 0x24]
cvttsd2si eax, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
xorps xmm0, xmm0
comisd xmm0, xmm1
ja 0x411103
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movsd xmm0, qword [ebx + 0x10]
subsd xmm0, qword [ebp - 0x2c]
mov ecx, dword [edi + 0x38]
sub ecx, dword [edi + 0x58]
mov edx, dword [edi + 0x3c]
sbb edx, dword [edi + 0x5c]
mulsd xmm0, qword [0x453dc8]
sub ecx, dword [edi + 0x30]
sbb edx, dword [edi + 0x34]
movsd qword [ebp - 0x2c], xmm0
call fcn.00447a00
mulsd xmm0, qword [0x461ce0]
movsd xmm1, qword [ebp - 0x2c]
cvttsd2si eax, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
cvttsd2si eax, xmm1
cmp eax, 1
jge 0x411309
lea eax, [edi + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [edi + 0x1d]
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [edi + 0x28], 0
xorps xmm0, xmm0
movsd qword [edi + 0x40], xmm0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp dword [eax + 8], 0
je 0x4111aa
mov eax, dword [ebx + 8]
xor ecx, ecx
sub eax, edx
mov dword [ebp - 0x14], ecx
sar eax, 2
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x41119b
mov eax, dword [ebx + 4]
xor esi, esi
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x10], eax
mov ebx, dword [eax + 4]
test ebx, ebx
jle 0x411189
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040fd30
test eax, eax
je 0x410f7f
add esi, eax
mov eax, dword [ebp - 0x10]
cmp esi, ebx
jl 0x411167
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0xc]
jl 0x411155
lea esi, [edi + 0x90]
xor eax, eax
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x8c]
mov ecx, dword [ebp - 0xc]
inc eax
cdq
idiv dword [ecx]
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x8c], edx
mov byte [eax], 1
or eax, 0xffffffff
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x18]
sar eax, 2
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x411321
mov eax, dword [ebp - 8]
xorps xmm1, xmm1
movsd xmm0, qword [ebx + 0x10]
lea eax, [eax + 1]
cdq
idiv dword [ecx]
ucomisd xmm0, xmm1
mov ecx, edx
mov dword [ebp + 8], ecx
lahf
test ah, 0x44
jnp 0x410f7f
mov eax, dword [ebp - 0x14]
lea esi, [ecx*4]
mov eax, dword [esi + eax]
movsd xmm0, qword [eax + 0x10]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x410f7f
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi + 0x38]
sub ecx, dword [edi + 0x58]
mov edx, dword [edi + 0x3c]
mov eax, dword [esi + eax]
sbb edx, dword [edi + 0x5c]
sub ecx, dword [edi + 0x30]
movsd xmm0, qword [eax + 0x10]
subsd xmm0, qword [ebx + 0x10]
sbb edx, dword [edi + 0x34]
mulsd xmm0, qword [0x453dc8]
movsd qword [ebp - 0x2c], xmm0
call fcn.00447a00
mulsd xmm0, qword [0x461ce0]
movsd xmm1, qword [ebp - 0x2c]
cvttsd2si eax, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
xorps xmm0, xmm0
comisd xmm0, xmm1
ja 0x41143e
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0x9c]
lea eax, [ecx*4]
add esi, eax
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi]
mov ecx, dword [edi + 0x38]
sub ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x3c]
movsd xmm0, qword [eax + 0x10]
subsd xmm0, qword [ebx + 0x10]
sbb edx, dword [edi + 0x34]
sub ecx, dword [edi + 0x58]
sbb edx, dword [edi + 0x5c]
mulsd xmm0, qword [0x453dc8]
movsd qword [ebp - 0x2c], xmm0
call fcn.00447a00
mulsd xmm0, qword [0x461ce0]
movsd xmm1, qword [ebp - 0x2c]
cvttsd2si eax, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
cvttsd2si eax, xmm1
cmp eax, 1
jl 0x41143e
mov ecx, 0xa
cmp eax, ecx
cmovg eax, ecx
mov dword [edi + 0x20], eax
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, edx
jle 0x411464
movsd xmm0, qword [ebx + 0x10]
xorps xmm2, xmm2
mov eax, dword [ebx + 0x18]
ucomisd xmm0, xmm2
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x10], ecx
lahf
test ah, 0x44
jnp 0x410f7f
movsd xmm1, qword [ecx + 0x10]
ucomisd xmm1, xmm2
movsd qword [ebp - 0x1c], xmm1
lahf
test ah, 0x44
jnp 0x410f7f
lea esi, [edi + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movsd xmm0, qword [ebp - 0x1c]
subsd xmm0, qword [ebx + 0x10]
mov ecx, dword [esi]
sub ecx, dword [edi + 0x58]
mov edx, dword [esi + 4]
sbb edx, dword [edi + 0x5c]
mulsd xmm0, qword [0x453dc8]
sub ecx, dword [edi + 0x30]
sbb edx, dword [edi + 0x34]
movsd qword [ebp - 0x1c], xmm0
call fcn.00447a00
mulsd xmm0, qword [0x461ce0]
movsd xmm1, qword [ebp - 0x1c]
cvttsd2si eax, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
xorps xmm0, xmm0
maxsd xmm0, xmm1
cvttsd2si eax, xmm0
cmp eax, 1
jge 0x411309
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
sub edx, eax
sar edx, 2
mov dword [ebp - 0xc], edx
test edx, edx
je 0x41142c
mov eax, dword [eax]
cmp dword [eax + 8], 0
je 0x41142c
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test edx, edx
jle 0x41142c
nop
mov eax, dword [ebx + 4]
xor esi, esi
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x41141e
mov edi, eax
mov eax, dword [ebx + 8]
mov ecx, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040fd30
add esi, eax
cmp esi, edi
jl 0x411404
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, edx
jl 0x4113f0
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x90]
inc eax
mov dword [edi + 0x90], eax
cmp eax, dword [ebp - 0x28]
jl 0x41149c
mov eax, dword [edi + 0x8c]
inc eax
mov dword [edi + 0x90], 0xffffffff
cdq
idiv dword [edi + 0xc]
mov al, 1
mov dword [edi + 0x8c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x4522a0
push 0x3e7
push str.E:DropboxMy_DevelopProjectNetScrClientNetAppClientReplayImage.cpp
push 0
call fcn.00417ff0
mov eax, dword [edi + 0x8c]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
inc eax
cdq
mov dword [esi], 0xffffffff
idiv dword [ecx]
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x8c], edx
mov byte [eax], 1
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4