Function at 0x4d87a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e45b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
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 - 0x80], ebx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push edi
push str.SQL_exception__code__d_:__S
push str.DBFeeder::HandleCorruptedDB
push 1
call fcn.00587c13
add esp, 0x14
cmp byte [ebp + 0x10], 0
jne case.0x4d8805.11
lea eax, [edi - 0xb]
cmp eax, 0xf
ja case.0x4d8805.12
movzx eax, byte [eax + 0x4d8ad0]
jmp dword [eax*4 + 0x4d8ac8]
push str.Handle_corrupt_DB
push str.DBFeeder::HandleCorruptedDB
push 3
call fcn.00587c13
add esp, 0xc
mov byte [ebx + 0x368], 1
mov ecx, ebx
call fcn.004d8fb0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d8833
sub ecx, edx
push ecx
lea eax, [esi + ecx]
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.004de3f0
mov esi, eax
mov dword [ebp - 4], 0
call fcn.00547fc0
push esi
call fcn.00548380
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4d887a
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
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 dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004658e0
add esp, 0x18
mov byte [ebp - 4], 2
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 0x4d891d
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], 3
push 1
push eax
call fcn.00592245
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, 8
jb 0x4d891d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00434bd0
lea eax, [ebx + 0x2fc]
push eax
mov dword [ebp - 0x88], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x84], 1
mov byte [ebp - 4], 4
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], 5
push eax
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0058e486
add esp, 0xc
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4d898c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00434bd0
mov edi, dword [ebp - 0x78]
xor eax, eax
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp esi, edi
je 0x4d89fb
nop word [eax + eax]
cmp dword [esi + 0x14], 8
jb 0x4d89ba
mov eax, dword [esi]
jmp 0x4d89bc
mov eax, esi
push eax
call fcn.005d60dc
add esp, 4
test eax, eax
je 0x4d89f1
cmp dword [esi + 0x14], 8
jb 0x4d89d3
mov ebx, dword [esi]
jmp 0x4d89d5
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 0x4d89b0
mov ebx, dword [ebp - 0x80]
mov ecx, ebx
call fcn.004d8c20
test al, al
je 0x4d8a0d
mov byte [ebx + 0x368], 0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4d8a5c
push dword [ebp - 0x80]
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 - 0x2c]
cmp eax, 8
jb 0x4d8a7e
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 case.0x4d8805.12
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
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 0xc