Function at 0x1005ef04
Capabilities:
Reference sql statements

Disassembly:
push 0xc8
mov eax, 0x100fb22e
call fcn.100eefb3
mov ebx, ecx
mov edx, dword [ebx + 0x148]
test edx, edx
je 0x1005f5b5
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0x98], 1
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [edx]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edx
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x30]
fild dword [ebp - 0x30]
test eax, eax
jns 0x1005ef52
fadd qword [0x10107ee0]
fstp qword [ebp - 0xb8]
fld qword [ebp - 0xb8]
mov eax, dword [ebx + 0x164]
fild dword [ebx + 0x164]
test eax, eax
jns 0x1005ef74
fadd qword [0x10107ee0]
fstp qword [ebp - 0xb8]
fdiv qword [ebp - 0xb8]
fmul qword [0x1012a260]
call fcn.100ef650
mov edi, dword [sym.imp.VCRUNTIME140.dll_strrchr]
mov esi, eax
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
mov dword [ebp - 0xa8], esi
call edi
pop ecx
pop ecx
test eax, eax
je 0x1005efb6
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call edi
pop ecx
pop ecx
inc eax
jmp 0x1005efbb
mov eax, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
push esi
push dword [ebx + 0x164]
push dword [ebp - 0x30]
push str.CleanUp
push dword [0x1014818c]
push 0x6b
push eax
push str._24s:_5d____10s____32s___u__u___u___
push 0xd
push 1
call fcn.10023da0
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call edi
add esp, 0x30
test eax, eax
je 0x1005efff
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call edi
pop ecx
pop ecx
inc eax
jmp 0x1005f004
mov eax, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push str.CleanUp
push dword [0x1014818c]
push 0x70
push eax
push str._24s:_5d____10s____32s__event_counts_by_pri:_low_d__norm_d__high_d__imm_d
push 0xd
push 1
call fcn.10023da0
mov eax, dword [ebp - 0x30]
xor edx, edx
push 0x64
pop ecx
div ecx
push 0
push 0x1014ad24
lea ecx, [esi - 0x4b]
imul eax, ecx
push 0x1014acd8
push 0
push dword [ebx + 0x148]
mov dword [ebp - 0xa0], eax
call sub.VCRUNTIME140.dll___RTDynamicCast
add esp, 0x40
mov esi, eax
cmp dword [ebp - 0xa8], 0x63
mov dword [ebp - 0xb4], esi
jbe 0x1005f5b5
mov ecx, ebx
call fcn.1005f5bb
mov ecx, dword [ebx + 0x148]
lea eax, [ebp - 0x34]
push eax
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x30]
fild dword [ebp - 0x30]
test eax, eax
jns 0x1005f099
fadd qword [0x10107ee0]
fstp qword [ebp - 0xb0]
fld qword [ebp - 0xb0]
mov eax, dword [ebx + 0x164]
fild dword [ebx + 0x164]
test eax, eax
jns 0x1005f0bb
fadd qword [0x10107ee0]
fstp qword [ebp - 0xb0]
fdiv qword [ebp - 0xb0]
fmul qword [0x1012a260]
call fcn.100ef650
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
mov dword [ebp - 0x9c], eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x1005f0f5
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call edi
pop ecx
pop ecx
inc eax
jmp 0x1005f0fa
mov eax, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
push dword [ebp - 0x9c]
push dword [ebx + 0x164]
push dword [ebp - 0x30]
push str.CleanUp
push dword [0x1014818c]
push 0x84
push eax
push str._24s:_5d____10s____32s__DELETED_INFLIGHT___u__u___u___
push 0xd
push 1
call fcn.10023da0
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call edi
add esp, 0x30
test eax, eax
je 0x1005f146
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call edi
pop ecx
pop ecx
inc eax
jmp 0x1005f14b
mov eax, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push str.CleanUp
push dword [0x1014818c]
push 0x89
push eax
push str._24s:_5d____10s____32s__DELETED_INFLIGHT__event_counts_by_pri:_low_d__norm_d__high_d__imm_d
push 0xd
push 1
call fcn.10023da0
add esp, 0x2c
cmp dword [ebp - 0x9c], 0x63
jbe 0x1005f5b5
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call edi
pop ecx
pop ecx
test eax, eax
je 0x1005f1a3
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call edi
pop ecx
pop ecx
inc eax
jmp 0x1005f1a8
mov eax, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
push dword [ebp - 0xa0]
push str.CleanUp
push dword [0x1014818c]
push 0x8f
push eax
push str._24s:_5d____10s____32s__trying_to_shrink_DB_by__d_bytes
push 0xd
push 1
call fcn.10023da0
add esp, 0x20
cmp dword [ebp - 0xa0], 0
jle 0x1005f5aa
mov eax, dword [ebp - 0x98]
cmp dword [ebp + eax*4 - 0x30], 0
jbe 0x1005f3fd
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call edi
pop ecx
pop ecx
test eax, eax
je 0x1005f20d
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call edi
pop ecx
pop ecx
lea ecx, [eax + 1]
jmp 0x1005f212
mov ecx, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
mov eax, dword [ebp - 0x98]
push dword [ebp + eax*4 - 0x30]
push eax
push str.CleanUp
push dword [0x1014818c]
push 0x94
push ecx
push str._24s:_5d____10s____32s__trying_to_clean_pri_d__items_remaining_u
push 0xd
push 1
call fcn.10023da0
add esp, 0x24
xor eax, eax
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x94], al
push 0xf
pop ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x7c], al
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa8], 0x18
call fcn.1003813c
lea eax, [ebx + 0x14c]
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0xac], eax
jb 0x1005f28e
mov eax, dword [eax]
push eax
call fcn.10024f2b
push dword [0x10148214]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x64]
push dword [ebp - 0x98]
push str.SELECT_sum_Nrecords___sum_length_payload___FROM_packages_WHERE_Id_in_SELECT_Id_FROM_packages_WHERE_priority___u_ORDER_BY_ts_LIMIT__u_
push eax
call fcn.100252bf
push dword [0x10148214]
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 2
push dword [ebp - 0x98]
push str.DELETE_FROM_packages_WHERE_Id_in_SELECT_Id_FROM_packages_WHERE_priority___u_ORDER_BY_ts_LIMIT__u_
push eax
call fcn.100252bf
add esp, 0x24
cmp dword [ebp - 0x50], 0x10
lea ecx, [ebp - 0x64]
mov eax, dword [esi]
cmovae ecx, dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 3
push ecx
mov ecx, esi
call dword [eax + 0x4c]
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc8]
sub eax, ecx
cdq
mov dword [ebp - 0xbc], 0xc
idiv dword [ebp - 0xbc]
mov byte [ebp - 4], 4
test eax, eax
je 0x1005f377
mov eax, dword [ecx]
cmp dword [eax + 0x14], 0x10
jb 0x1005f324
mov eax, dword [eax]
push eax
call fcn.10025148
pop ecx
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ecx]
add ecx, 0x18
cmp dword [ecx + 0x14], 0x10
jb 0x1005f344
mov ecx, dword [ecx]
push ecx
call fcn.10025148
and dword [ebp - 0xa8], 0
cmp dword [ebp - 0x38], 0x10
mov eax, dword [esi]
pop ecx
lea ecx, [ebp - 0x4c]
cmovae ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0xd4]
push ecx
mov ecx, esi
call dword [eax + 0x4c]
lea ecx, [ebp - 0xd4]
call fcn.10037c75
mov eax, dword [ebp - 0xac]
cmp dword [eax + 0x14], 0x10
jb 0x1005f385
mov eax, dword [eax]
push eax
call fcn.10024f2b
pop ecx
mov ecx, dword [ebp - 0xa4]
xor edx, edx
sub ecx, eax
cmp eax, dword [ebp - 0xa4]
cmovbe edx, ecx
mov ecx, esi
mov dword [ebp - 0xa4], edx
call fcn.1003821a
cmp dword [ebp - 0xa8], 0
je 0x1005f429
lea ecx, [ebp - 0xc8]
call fcn.10037c75
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.100202d3
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.100202d3
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.100202d3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
push 0
push 1
call fcn.100202d3
mov eax, dword [ebp - 0x98]
cmp eax, 4
jae 0x1005f53f
push 0x5c
mov esi, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
push esi
call edi
pop ecx
pop ecx
test eax, eax
je 0x1005f4f3
push 0x5c
push esi
call edi
pop ecx
pop ecx
lea ecx, [eax + 1]
jmp 0x1005f4f5
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call edi
pop ecx
pop ecx
test eax, eax
je 0x1005f446
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call edi
pop ecx
pop ecx
inc eax
jmp 0x1005f44b
mov eax, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
push dword [ebp - 0xa4]
push dword [ebp - 0x9c]
push str.CleanUp
push dword [0x1014818c]
push 0xc8
push eax
push str._24s:_5d____10s____32s_dropped__u_events__reclaimed__u_bytes
push 0xd
push 1
call fcn.10023da0
mov eax, dword [ebp - 0xa4]
add esp, 0x24
sub dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebx + 0x44]
push 0
sub dword [ebp + eax*4 - 0x30], edx
add ecx, 0x330
push 1
push edx
push eax
call fcn.10053444
lea ecx, [ebp - 0xc8]
call fcn.10037c75
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.100202d3
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.100202d3
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.100202d3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
push 0
push 1
call fcn.100202d3
mov eax, dword [ebp - 0x98]
jmp 0x1005f530
mov ecx, esi
mov eax, dword [ebp - 0x98]
lea esi, [eax + 1]
push esi
push eax
push str.CleanUp
push dword [0x1014818c]
push 0xd5
push ecx
push str._24s:_5d____10s____32s_no_more_records_of_pri_d__moving_on_to_pri_d
push 0xd
push 1
call fcn.10023da0
mov eax, esi
add esp, 0x24
mov esi, dword [ebp - 0xb4]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0xa0], 0
jg 0x1005f1e3
jmp 0x1005f5aa
push str.void___thiscall_clienttelemetry::EventCacheManager::CleanUp_void_
push 0xda
mov edi, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
push edi
push str._n_s__d_:__s_ERROR__:_no_more_records_to_delete__but_DB_is_still_full___full_purge...
push 0xd
push 4
call fcn.10023da0
add esp, 0x18
test esi, esi
je 0x1005f5aa
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
lea ecx, [ebx + 0x14c]
cmp dword [ecx + 0x14], 0x10
jb 0x1005f579
mov ecx, dword [ecx]
mov eax, dword [esi]
lea edx, [ebp - 0x34]
push edx
push dword [ebx + 0x164]
push ecx
mov ecx, esi
call dword [eax]
test eax, eax
je 0x1005f5aa
push str.void___thiscall_clienttelemetry::EventCacheManager::CleanUp_void_
push 0xe2
push edi
push str._n_s__d_:__s_ERROR__:_Failed_to_reinitialize_IOfflineStorage_after_purge_
push 0xd
push 4
call fcn.10023da0
add esp, 0x18
mov ecx, dword [ebx + 0x148]
mov eax, dword [ecx]
call dword [eax + 0x30]
call fcn.100eef5d
ret