Function at 0x4dd230
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60efbc
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x6ba394]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x6c], ebx
cmp byte [ebx + 0x368], 0
mov dword [ebp - 0x60], ebx
jne 0x4dd73e
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 0x314]
push eax
mov dword [ebp - 0x94], eax
call esi
mov byte [ebp - 0x90], 1
lea eax, [ebx + 0x2fc]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x8c], eax
call esi
mov byte [ebp - 0x88], 1
push str.Starting_purging
push str.DBFeeder::PurgeDB
push 4
mov byte [ebp - 4], 1
call fcn.00587c13
add esp, 0xc
lea ecx, [ebp - 0x44]
push str..ds
call fcn.004347d0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea esi, [ebx + 0x10]
push esi
call fcn.0058d9a3
mov dword [ebp - 0x70], eax
add esp, 8
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x4dd304
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00434bd0
push str..db
lea ecx, [ebp - 0x44]
call fcn.004347d0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
push esi
call fcn.0058d9a3
add dword [ebp - 0x70], eax
add esp, 8
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x4dd33a
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00434bd0
xorps xmm0, xmm0
lea ecx, [ebp - 0xc4]
movlpd qword [ebp - 0x84], xmm0
call fcn.004dd8f0
push 0
push str.SELECT_COUNT___FROM_Ps
lea ecx, [ebx + 0x28]
mov byte [ebp - 4], 4
call fcn.0059bff4
cdq
mov esi, edx
mov dword [ebp - 0x64], eax
push esi
push eax
push str.Ps_table_count__d
push str.DBFeeder::ValidProcCountInDB
push 4
call fcn.00587c13
add esp, 0x14
test esi, esi
jl 0x4dd653
jg 0x4dd396
cmp dword [ebp - 0x64], 0x30d40
jb 0x4dd653
push 0x666940
push str.DBFeeder::PurgeDB
push 4
call fcn.00587c13
push str.Too_many_processes_in_the_database__handle_database_as_corrupted_instead_of_purge
push 1
push str.SQL_exception__code__d_:__S
push str.DBFeeder::HandleCorruptedDB
push 1
call fcn.00587c13
push str.Handle_corrupt_DB
push str.DBFeeder::HandleCorruptedDB
push 3
call fcn.00587c13
add esp, 0x2c
mov byte [ebx + 0x368], 1
mov ecx, ebx
call fcn.004d8fb0
push ecx
push 0x666a39
push str.Too_many_processes_in_the_database__handle_database_as_corrupted_instead_of_purge
lea ecx, [ebp - 0x2c]
call fcn.004de3f0
mov esi, eax
mov byte [ebp - 4], 5
call fcn.00547fc0
push esi
call fcn.00548380
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4dd41e
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00434bd0
push dword [ebx + 0xc]
lea esi, [ebx + 0x10]
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004658e0
push str..BAK
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004658e0
add esp, 0x18
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x44]
push 9
cmovae ecx, dword [ebp - 0x5c]
cmp dword [ebp - 0x30], 8
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4dd4be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_move_the_DB_file._Error:__d_Create_CorruptedDB_registry_key
push str.DBFeeder::HandleCorruptedDB
push 1
call fcn.00587c13
add esp, 0x10
lea ecx, [ebp - 0x2c]
push str.CorruptedDB
call fcn.004347d0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 8
push 1
push eax
call fcn.00592245
mov eax, dword [ebp - 0x18]
add esp, 8
cmp eax, 8
jb 0x4dd4be
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00434bd0
lea eax, [ebx + 0x2fc]
push eax
mov dword [ebp - 0xdc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0xd8], 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
push 4
xor eax, eax
mov dword [ebp - 0x18], 7
push str..ds
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.004346a0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0058e486
add esp, 0xc
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x4dd52d
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00434bd0
mov edi, dword [ebp - 0x78]
xor eax, eax
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp esi, edi
je 0x4dd59e
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
jb 0x4dd55b
mov eax, dword [esi]
jmp 0x4dd55d
mov eax, esi
push eax
call fcn.005d60dc
add esp, 4
test eax, eax
je 0x4dd594
cmp dword [esi + 0x14], 8
jb 0x4dd577
mov eax, dword [esi]
mov dword [ebp - 0x64], eax
jmp 0x4dd57a
mov dword [ebp - 0x64], esi
call ebx
push eax
push dword [ebp - 0x64]
push str.Could_not_move_small_DB_file__d._Error:__d_Create_CorruptedDB_registry_key
push str.DBFeeder::HandleCorruptedDB
push 1
call fcn.00587c13
add esp, 0x14
add esi, 0x18
cmp esi, edi
jne 0x4dd551
mov ebx, dword [ebp - 0x6c]
mov ecx, ebx
call fcn.004d8c20
test al, al
je 0x4dd5b0
mov byte [ebx + 0x368], 0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4dd5ff
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
push ecx
push dword [ebp - 0x78]
push eax
call fcn.004342f0
mov ecx, dword [ebp - 0x74]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x7c]
add esp, 0x10
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00434340
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
lea eax, [ebx + 0x2fc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x4dd621
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00434bd0
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x4c], 0
cmp eax, 8
jb 0x4dd76b
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00434bd0
jmp 0x4dd76b
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0xc4]
mov ecx, ebx
push eax
call fcn.004da9c0
push str.BEGIN_TRANSACTION
lea ecx, [ebx + 0x28]
call fcn.0059bda6
push 0
mov byte [ebp - 4], 0xe
call fcn.005de0cf
add esp, 4
mov dword [ebp - 0x68], eax
mov ecx, ebx
mov dword [ebp - 0x64], edx
call fcn.004dbde0
push str.END_TRANSACTION
lea ecx, [ebx + 0x28]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0xd
call fcn.0059bda6
jmp 0x4dd764
lea ecx, [ebp - 0xa0]
call fcn.004ddb80
lea ecx, [ebp - 0xac]
call fcn.004ddb80
lea ecx, [ebp - 0xb8]
call fcn.004ddb80
lea ecx, [ebp - 0xc4]
call fcn.004ddb80
push dword [ebp - 0x8c]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
push dword [ebp - 0x94]
call esi
xor al, al
jmp 0x4dd8cb
mov dword [ebp - 4], 4
push str.VACUUM
lea ecx, [ebx + 0x28]
mov byte [ebp - 4], 0x11
call fcn.0059bda6
jmp 0x4dd7ac
mov dword [ebp - 4], 4
mov ecx, ebx
mov byte [ebp - 4], 0x13
call fcn.004d8fb0
jmp 0x4dd7f4
mov dword [ebp - 4], 4
cmp byte [ebx + 0x368], 0
jne 0x4dd6fc
mov ecx, ebx
call fcn.004db550
mov ecx, ebx
call fcn.004d8c20
push 0
call fcn.005de0cf
mov edi, eax
mov esi, edx
sub edi, dword [ebp - 0x68]
push str.Sending_purge_telemetry
sbb esi, dword [ebp - 0x64]
push str.DBFeeder::PurgeDB
push 4
call fcn.00587c13
add esp, 0x10
call fcn.00547fc0
push esi
push edi
push dword [ebp - 0x6c]
push 0
push 0x3c
push dword [ebp - 0x80]
push dword [ebp - 0x84]
call fcn.005b22e0
push 0
push 0x18
push edx
push eax
call fcn.005b22e0
push edx
push eax
push dword [ebp - 0x70]
lea eax, [ebp - 0xc4]
push eax
call fcn.0054a450
push str.Purging_is_finished
push str.DBFeeder::PurgeDB
push 4
call fcn.00587c13
add esp, 0xc
lea ecx, [ebp - 0xa0]
call fcn.004ddb80
lea ecx, [ebp - 0xac]
call fcn.004ddb80
lea ecx, [ebp - 0xb8]
call fcn.004ddb80
lea ecx, [ebp - 0xc4]
call fcn.004ddb80
push dword [ebp - 0x8c]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
push dword [ebp - 0x94]
call esi
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b168a
mov esp, ebp
pop ebp
ret