Function at 0x4dc000
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73dc98
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x8bb040]
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 esi, ecx
cmp dword [esi + 0x18], 0
lea eax, [esi + 0x18]
jne 0x4dc620
xor bl, bl
mov edi, 1
test bl, bl
jne 0x4dc1f1
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x4dc056
mov ecx, dword [esi]
push 0
push 6
mov edx, eax
call fcn.00700340
add esp, 8
test eax, eax
sete bl
test eax, eax
jne 0x4dc085
push eax
push eax
push eax
push str.PRAGMA_schema_version
push dword [esi + 0x18]
call fcn.006bdcd0
add esp, 0x14
test eax, eax
sete bl
test bl, bl
jne 0x4dc1d0
cmp edi, 1
jne 0x4dc1d0
mov ecx, dword [esi + 0x10]
mov eax, closesocket
sub eax, ecx
cmp eax, 0xa
jb 0x4dc6bc
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x4dc0b3
mov eax, dword [esi]
push ecx
push eax
push 0xa
push str.sqlite_DB
push ecx
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x58]
call fcn.00485710
push 0x2e
push str._seems_to_be_corrupt__removing_and_retrying...
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.004851c0
mov edx, eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x14], eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.004b48b0
mov byte [ebp - 4], 0
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x4dc17e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4dc174
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4dc4f8
push ecx
push edx
call fcn.00732c0f
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00481520
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x4dc1a9
mov eax, dword [esi]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov ecx, dword [esi + 0x18]
lea eax, [esi + 0x18]
add esp, 4
test ecx, ecx
je 0x4dc1d3
mov edx, 1
call fcn.006fe250
inc edi
lea eax, [esi + 0x18]
jmp 0x4dc044
lea eax, [esi + 0x18]
inc edi
cmp edi, 3
jl 0x4dc044
test bl, bl
jne 0x4dc1f1
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4dc697
jmp 0x4dc63c
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], str.PRAGMA_journal_modeWAL
mov dword [eax + 4], 0x17
call fcn.004dc6d0
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], str.PRAGMA_synchronous1
mov dword [eax + 4], 0x14
call fcn.004dc6d0
mov edi, dword [esi + 0x18]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4dc237
push eax
call dword [0x8bbd08]
add esp, 4
push 0
push 0
push 3
mov edx, 0xc
mov dword [edi + 0x1c8], 0
mov ecx, edi
call fcn.006ff610
mov ebx, eax
add esp, 0xc
mov dword [edi + 0x40], ebx
test ebx, ebx
jne 0x4dc270
cmp dword [edi + 0x124], eax
jne 0x4dc270
mov dword [edi + 0x44], 0xffffffff
jmp 0x4dc279
mov edx, ebx
mov ecx, edi
call fcn.006582d0
cmp byte [edi + 0x57], 0
jne 0x4dc283
test ebx, ebx
je 0x4dc28e
mov edx, ebx
mov ecx, edi
call fcn.00655160
mov ebx, eax
cmp dword [edi + 0xbc], 0
jne 0x4dc2a1
mov dword [edi + 0x128], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4dc2b2
push eax
call dword [0x8bbd10]
add esp, 4
test ebx, ebx
je 0x4dc620
cmp ebx, 5
je 0x4dc620
cmp ebx, 0x15
je 0x4dc522
mov ebx, dword [esi + 0x18]
test ebx, ebx
jne 0x4dc2e7
mov eax, dword [str.out_of_memory]
mov edi, str.unknown_error
test eax, eax
cmovne edi, eax
jmp 0x4dc404
mov al, byte [ebx + 0x61]
cmp al, 0xba
je 0x4dc33c
cmp al, 0x76
je 0x4dc33c
cmp al, 0x6d
je 0x4dc33c
push str.invalid
push str.API_call_with__s_database_connection_pointer
push 0x15
call fcn.006575b0
add esp, 0xc
push 0x88c2c4
push 0x2bb34
push str.misuse
push str._s_at_line__d_of___.10s_
push 0x15
call fcn.006575b0
mov eax, dword [str.bad_parameter_or_other_API_misuse]
add esp, 0x14
test eax, eax
mov edi, str.unknown_error
cmovne edi, eax
jmp 0x4dc404
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4dc34d
push eax
call dword [0x8bbd08]
add esp, 4
cmp byte [ebx + 0x57], 0
je 0x4dc367
mov eax, dword [str.out_of_memory]
mov edi, str.unknown_error
test eax, eax
cmovne edi, eax
jmp 0x4dc3f3
cmp dword [ebx + 0x40], 0
je 0x4dc3ae
mov ecx, dword [ebx + 0x124]
test ecx, ecx
jne 0x4dc37b
xor edi, edi
jmp 0x4dc3aa
movzx edx, word [ecx + 0x10]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x4dc398
cmp byte [ecx + 0x12], 1
jne 0x4dc398
mov edi, dword [ecx + 8]
jmp 0x4dc3aa
test dl, 1
je 0x4dc3a1
xor edi, edi
jmp 0x4dc3aa
mov dl, 1
call fcn.0067a420
mov edi, eax
test edi, edi
jne 0x4dc3f3
mov ecx, dword [ebx + 0x40]
mov edi, str.unknown_error
mov eax, ecx
sub eax, 0x64
je 0x4dc3ee
sub eax, 1
je 0x4dc3e7
sub eax, 0x19f
je 0x4dc3e0
movzx eax, cl
cmp eax, 0x1d
jae 0x4dc3f3
mov eax, dword [eax*4 + 0x7faba8]
test eax, eax
je 0x4dc3f3
mov edi, eax
jmp 0x4dc3f3
mov edi, str.abort_due_to_ROLLBACK
jmp 0x4dc3f3
mov edi, str.no_more_rows_available
jmp 0x4dc3f3
mov edi, str.another_row_available
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4dc404
push eax
call dword [0x8bbd10]
add esp, 4
mov ecx, dword [esi + 0x10]
mov eax, closesocket
sub eax, ecx
cmp eax, 0x1c
jb 0x4dc6bc
cmp dword [esi + 0x14], 0xf
jbe 0x4dc41f
mov esi, dword [esi]
push ecx
push esi
push 0x1c
push str.failed_to_checkpoint_WAL_on
push ecx
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x7c]
call fcn.00485710
push 3
push 0x80c0e8
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 5
call fcn.004851c0
mov edx, eax
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [edx]
mov dword [ebp - 0x40], ecx
mov eax, dword [edx + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
push edi
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x94]
call fcn.00485580
add esp, 4
mov byte [ebp - 4], 7
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x4dc4bb
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
call fcn.004b4890
add esp, 8
lea ecx, [ebp - 0x94]
call fcn.00481520
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x4dc508
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4dc4fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4dc4fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00732c0f
add esp, 8
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x4dc61b
mov ecx, dword [esi + 0x10]
mov eax, closesocket
sub eax, ecx
cmp eax, 0x1c
jb 0x4dc6c1
cmp dword [esi + 0x14], 0xf
jbe 0x4dc53d
mov esi, dword [esi]
push ecx
push esi
push 0x1c
push str.failed_to_checkpoint_WAL_on
push ecx
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x58]
call fcn.00485710
push 0x1b
push str.___WAL_probably_unavailable
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 3
call fcn.004851c0
mov edx, eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ecx, dword [edx]
mov dword [ebp - 0x28], ecx
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x14], eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.004b4890
mov ecx, dword [ebp - 0x14]
add esp, 8
cmp ecx, 0xf
jbe 0x4dc606
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4dc5fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4dc5fc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00732c0f
add esp, 8
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00481520
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.0073297b
mov esp, ebp
pop ebp
ret
push eax
call fcn.006ff700
add esp, 4
lea ecx, [ebp - 0x58]
push eax
call fcn.00481470
mov dword [ebp - 4], 2
push dword [esi + 0x18]
call fcn.006fe480
add esp, 4
mov dword [esi + 0x18], 0
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0x58]
push eax
call fcn.00484fe0
lea ecx, [ebp - 0xa0]
push dword [eax + 4]
push dword [eax]
call fcn.004d94b0
push 0x8b6a10
lea eax, [ebp - 0xa0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
sub esp, 8
mov ecx, esp
push str.unable_to_initialize_sqlite_DB_for_unknown_reason
call fcn.00480f20
lea ecx, [ebp - 0x64]
call fcn.004d94b0
push 0x8b6a10
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.00480e80
call fcn.00480e80
int3