Function at 0x4d3420
Capabilities:
Reference sql statements

Disassembly:
push 0xbc
mov eax, 0x5b1bae
call fcn.00462cd6
mov ebx, ecx
mov edx, dword [ebx + 0x148]
test edx, edx
je 0x4d3ab6
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [edx]
lea ecx, [ebp - 0x34]
xor esi, esi
push ecx
inc esi
mov ecx, edx
mov dword [ebp - 0x98], esi
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x30]
fild dword [ebp - 0x30]
test eax, eax
jns 0x4d346d
fadd qword [0x5cb0d0]
fstp qword [ebp - 0xa4]
fld qword [ebp - 0xa4]
mov eax, dword [ebx + 0x164]
fild dword [ebx + 0x164]
test eax, eax
jns 0x4d348f
fadd qword [0x5cb0d0]
fstp qword [ebp - 0xa4]
fdiv qword [ebp - 0xa4]
fmul qword [0x608710]
call fcn.00575fd0
mov edi, eax
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
mov dword [ebp - 0xac], edi
call fcn.00577b70
pop ecx
pop ecx
test eax, eax
je 0x4d34d1
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
pop ecx
pop ecx
inc eax
jmp 0x4d34d6
mov eax, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
push edi
push dword [ebx + 0x164]
push dword [ebp - 0x30]
push str.CleanUp
push dword [0x6389dc]
push 0x6b
push eax
push str._24s:_5d____10s____32s___u__u___u___
push 0xd
push 1
call fcn.00498b20
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
add esp, 0x30
test eax, eax
je 0x4d3520
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
pop ecx
pop ecx
inc eax
jmp 0x4d3525
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 [0x6389dc]
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.00498b20
mov eax, dword [ebp - 0x30]
xor edx, edx
push 0x64
pop ecx
div ecx
push 0
push 0x64426c
lea ecx, [edi - 0x4b]
imul eax, ecx
push 0x644220
push 0
push dword [ebx + 0x148]
mov dword [ebp - 0xa8], eax
call fcn.00578177
add esp, 0x40
mov edi, eax
cmp dword [ebp - 0xac], 0x63
jbe 0x4d3ab6
mov ecx, ebx
call fcn.004d3abc
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 0x4d35b4
fadd qword [0x5cb0d0]
fstp qword [ebp - 0xa4]
fld qword [ebp - 0xa4]
mov eax, dword [ebx + 0x164]
fild dword [ebx + 0x164]
test eax, eax
jns 0x4d35d6
fadd qword [0x5cb0d0]
fstp qword [ebp - 0xa4]
fdiv qword [ebp - 0xa4]
fmul qword [0x608710]
call fcn.00575fd0
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
mov dword [ebp - 0x9c], eax
call fcn.00577b70
pop ecx
pop ecx
test eax, eax
je 0x4d3616
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
pop ecx
pop ecx
inc eax
jmp 0x4d361b
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 [0x6389dc]
push 0x84
push eax
push str._24s:_5d____10s____32s__DELETED_INFLIGHT___u__u___u___
push 0xd
push 1
call fcn.00498b20
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
add esp, 0x30
test eax, eax
je 0x4d366d
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
pop ecx
pop ecx
inc eax
jmp 0x4d3672
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 [0x6389dc]
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.00498b20
add esp, 0x2c
cmp dword [ebp - 0x9c], 0x63
jbe 0x4d3ab6
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
pop ecx
pop ecx
test eax, eax
je 0x4d36d0
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
pop ecx
pop ecx
inc eax
jmp 0x4d36d5
mov eax, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
push dword [ebp - 0xa8]
push str.CleanUp
push dword [0x6389dc]
push 0x8f
push eax
push str._24s:_5d____10s____32s__trying_to_shrink_DB_by__d_bytes
push 0xd
push 1
call fcn.00498b20
add esp, 0x20
jmp 0x4d3a31
cmp dword [ebp + esi*4 - 0x30], 0
jbe 0x4d390a
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
pop ecx
pop ecx
test eax, eax
je 0x4d3730
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
pop ecx
pop ecx
inc eax
jmp 0x4d3735
mov eax, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
push dword [ebp + esi*4 - 0x30]
push esi
push str.CleanUp
push dword [0x6389dc]
push 0x94
push eax
push str._24s:_5d____10s____32s__trying_to_clean_pri_d__items_remaining_u
push 0xd
push 1
call fcn.00498b20
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, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xac], 0x18
call fcn.004ace29
lea esi, [ebx + 0x14c]
cmp dword [esi + 0x14], 0x10
jb 0x4d37a7
mov eax, dword [esi]
jmp 0x4d37a9
mov eax, esi
push eax
call fcn.0049ba2b
push dword [0x638a64]
mov dword [ebp - 0xa0], 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.0049bdb0
push dword [0x638a64]
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.0049bdb0
add esp, 0x24
cmp dword [ebp - 0x50], 0x10
lea ecx, [ebp - 0x64]
mov eax, dword [edi]
cmovae ecx, dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 3
push ecx
mov ecx, edi
call dword [eax + 0x4c]
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xbc]
sub eax, ecx
cdq
mov dword [ebp - 0xb0], 0xc
idiv dword [ebp - 0xb0]
mov byte [ebp - 4], 4
test eax, eax
je 0x4d3892
mov eax, dword [ecx]
cmp dword [eax + 0x14], 0x10
jb 0x4d383f
mov eax, dword [eax]
push eax
call fcn.0049bc3a
pop ecx
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ecx]
add ecx, 0x18
cmp dword [ecx + 0x14], 0x10
jb 0x4d385f
mov ecx, dword [ecx]
push ecx
call fcn.0049bc3a
and dword [ebp - 0xac], 0
cmp dword [ebp - 0x38], 0x10
mov eax, dword [edi]
pop ecx
lea ecx, [ebp - 0x4c]
cmovae ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, edi
call dword [eax + 0x4c]
lea ecx, [ebp - 0xc8]
call fcn.004ac965
cmp dword [esi + 0x14], 0x10
jb 0x4d389a
mov esi, dword [esi]
push esi
call fcn.0049ba2b
pop ecx
mov ecx, dword [ebp - 0xa0]
xor esi, esi
sub ecx, eax
cmp eax, dword [ebp - 0xa0]
cmovbe esi, ecx
mov ecx, edi
call fcn.004acf04
cmp dword [ebp - 0xac], 0
je 0x4d393d
lea ecx, [ebp - 0xbc]
call fcn.004ac965
xor esi, esi
lea ecx, [ebp - 0x4c]
push esi
push 1
call fcn.0049451f
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.0049451f
push esi
push 1
lea ecx, [ebp - 0x7c]
call fcn.0049451f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
push esi
push 1
call fcn.0049451f
mov esi, dword [ebp - 0x98]
cmp esi, 4
jae 0x4d3a40
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
pop ecx
pop ecx
test eax, eax
je 0x4d39fc
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
pop ecx
pop ecx
inc eax
jmp 0x4d3a01
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
pop ecx
pop ecx
test eax, eax
je 0x4d3960
push 0x5c
push str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
call fcn.00577b70
pop ecx
pop ecx
inc eax
jmp 0x4d3965
mov eax, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
push esi
push dword [ebp - 0x9c]
push str.CleanUp
push dword [0x6389dc]
push 0xc8
push eax
push str._24s:_5d____10s____32s_dropped__u_events__reclaimed__u_bytes
push 0xd
push 1
call fcn.00498b20
sub dword [ebp - 0xa8], esi
add esp, 0x24
mov esi, dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebx + 0x44]
push 0
sub dword [ebp + esi*4 - 0x30], eax
add ecx, 0x330
push 1
push eax
push esi
call fcn.004c7a82
lea ecx, [ebp - 0xbc]
call fcn.004ac965
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.0049451f
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.0049451f
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.0049451f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
push 0
push 1
call fcn.0049451f
jmp 0x4d3a31
mov eax, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
inc esi
push esi
push dword [ebp - 0x98]
push str.CleanUp
push dword [0x6389dc]
push 0xd5
push eax
push str._24s:_5d____10s____32s_no_more_records_of_pri_d__moving_on_to_pri_d
push 0xd
push 1
call fcn.00498b20
add esp, 0x24
mov dword [ebp - 0x98], esi
cmp dword [ebp - 0xa8], 0
jg 0x4d3702
jmp 0x4d3aab
push str.void___thiscall_clienttelemetry::EventCacheManager::CleanUp_void_
push 0xda
mov esi, str.C:_build_aria_cpp_v1clienttelemetry_srcEventCacheManager.cpp
push esi
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.00498b20
add esp, 0x18
test edi, edi
je 0x4d3aab
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
lea ecx, [ebx + 0x14c]
cmp dword [ecx + 0x14], 0x10
jb 0x4d3a7a
mov ecx, dword [ecx]
mov eax, dword [edi]
lea edx, [ebp - 0x34]
push edx
push dword [ebx + 0x164]
push ecx
mov ecx, edi
call dword [eax]
test eax, eax
je 0x4d3aab
push str.void___thiscall_clienttelemetry::EventCacheManager::CleanUp_void_
push 0xe2
push esi
push str._n_s__d_:__s_ERROR__:_Failed_to_reinitialize_IOfflineStorage_after_purge_
push 0xd
push 4
call fcn.00498b20
add esp, 0x18
mov ecx, dword [ebx + 0x148]
mov eax, dword [ecx]
call dword [eax + 0x30]
call fcn.00462c80
ret