Function at 0x4d8220
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e3ec
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x6ba394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1cc], ebx
cmp dword [ebx + 0x360], 8
lea esi, [ebx + 0x34c]
mov edi, dword [ebp + 0xc]
jb 0x4d826c
mov eax, dword [esi]
jmp 0x4d826e
mov eax, esi
push eax
push edi
push dword [ebp + 8]
push str.Purging_is_failed._SQL_exception__code__d_:__S__lastExecutedQuery:_ws
push str.DBFeeder::HandleFailedPurging
push 1
call fcn.00587c13
add esp, 0x18
lea eax, [ebp - 0x1b8]
lea ecx, [ebp - 0x1bc]
mov dword [ebp - 0x1bc], eax
push 0xfde9
push edi
call fcn.00464730
mov dword [ebp - 4], 0
xor eax, eax
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
cmp word [edx], ax
jne 0x4d82ce
xor ecx, ecx
jmp 0x4d82f3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1d0], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d82e0
sub ecx, dword [ebp - 0x1d0]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.004346a0
mov eax, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1b8]
cmp eax, ecx
je 0x4d8316
push eax
call fcn.005c9cbb
add esp, 4
xor eax, eax
mov dword [ebp - 0x94], 7
xorps xmm0, xmm0
mov dword [ebp - 0x98], 0
movlpd qword [ebp - 0xb8], xmm0
movlpd qword [ebp - 0xb0], xmm0
mov word [ebp - 0xa8], ax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], eax
mov word [ebp - 0x8c], ax
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 3
cmp eax, esi
je 0x4d8377
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00434d60
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x70]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x90], esi
call fcn.00434d60
push 0
push 0x5a0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.005b22e0
push 0
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
call fcn.005de0cf
add esp, 4
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0xb0], eax
sbb edx, dword [ebp + 0x14]
mov dword [ebp - 0xac], edx
call fcn.00547fc0
lea eax, [ebp - 0xb8]
push eax
call fcn.0054a9b0
mov eax, dword [ebx + 0x364]
inc eax
mov dword [ebx + 0x364], eax
cmp eax, 3
jl 0x4d86d6
push eax
push str.Purging_was_failed_more_than__d_times._Handling_the_database_as_corrupted.
push str.DBFeeder::HandleFailedPurging
push 1
call fcn.00587c13
push edi
push esi
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, 0x30
mov byte [ebx + 0x368], 1
mov ecx, ebx
call fcn.004d8fb0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d8440
sub ecx, edx
push ecx
lea eax, [ecx + edi]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004de3f0
mov esi, eax
mov byte [ebp - 4], 4
call fcn.00547fc0
push esi
call fcn.00548380
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4d8481
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00434bd0
push dword [ebx + 0xc]
lea esi, [ebx + 0x10]
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.004658e0
push str..BAK
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004658e0
add esp, 0x18
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x58]
push 9
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4d8521
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 - 0x28]
push str.CorruptedDB
call fcn.004347d0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push 1
push eax
call fcn.00592245
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, 8
jb 0x4d8521
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00434bd0
lea eax, [ebx + 0x2fc]
push eax
mov dword [ebp - 0x1d4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x1d0], 1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
push 4
xor eax, eax
mov dword [ebp - 0x14], 7
push str..ds
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004346a0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x1c8]
push esi
push eax
call fcn.0058e486
add esp, 0xc
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4d8593
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00434bd0
mov edi, dword [ebp - 0x1c4]
xor eax, eax
mov esi, dword [ebp - 0x1c8]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp esi, edi
je 0x4d8605
cmp dword [esi + 0x14], 8
jb 0x4d85c1
mov eax, dword [esi]
jmp 0x4d85c3
mov eax, esi
push eax
call fcn.005d60dc
add esp, 4
test eax, eax
je 0x4d85f8
cmp dword [esi + 0x14], 8
jb 0x4d85da
mov ebx, dword [esi]
jmp 0x4d85dc
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
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 0x4d85b7
mov ebx, dword [ebp - 0x1cc]
mov ecx, ebx
call fcn.004d8c20
test al, al
je 0x4d8617
mov byte [ebx + 0x368], 0
mov eax, dword [ebp - 0x1c8]
test eax, eax
je 0x4d8681
push dword [ebp - 0x1cc]
lea ecx, [ebp - 0x1c8]
push ecx
push dword [ebp - 0x1c4]
push eax
call fcn.004342f0
mov ecx, dword [ebp - 0x1c0]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c8]
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 - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0
lea eax, [ebx + 0x2fc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4d86a3
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00434bd0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x4d86cc
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00434bd0
mov dword [ebx + 0x364], 0
lea ecx, [ebp - 0xb8]
call fcn.004d8720
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4d86f6
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00434bd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b168a
mov esp, ebp
pop ebp
ret 0x18