Function at 0x1007f6a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x102d2008]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], esi
cmp word [edi + 0x18], 0
mov eax, dword [edi + 0x34]
mov dword [esp + 0x14], eax
jne 0x1007f70b
push 0x102b4274
push 0x1253e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.BasicSQLite.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [esp + 0x28]
push 0
push ecx
lea edx, [esp + 0x2c]
mov ecx, eax
call fcn.1007d990
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1007f90c
mov eax, dword [edi + 0x24]
add esi, 4
push eax
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x4c]
push edi
call eax
mov edi, dword [esp + 0x28]
lea edx, [ebx + 0xd]
movzx eax, ax
mov ecx, edi
mov dword [esp + 0x78], eax
call fcn.10079850
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
mov dword [esp + 0x40], ecx
xor edx, edx
lea ecx, [esp + 0x78]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x38]
mov eax, dword [eax + 0x3c]
push edi
push 1
mov dword [esp + 0x40], 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], 2
call fcn.1007efe0
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x1007f7a9
test edi, edi
je 0x1007f90c
jmp 0x1007f8ab
mov ecx, dword [esp + 0x14]
movzx eax, word [edi + 0x12]
mov ecx, dword [ecx + 0x28]
sub ecx, eax
movzx eax, word [esp + 0x70]
sub ecx, eax
mov eax, dword [esp + 0x14]
sub ecx, 2
mov dword [edi + 0x14], ecx
cmp byte [eax + 0x11], 0
je 0x1007f80d
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
push dword [ecx + 4]
mov ecx, eax
push 5
call fcn.10078510
mov ax, word [esp + 0x7c]
add esp, 0xc
cmp ax, word [edi + 0x10]
jbe 0x1007f809
lea eax, [esp + 0x10]
mov edx, edi
push eax
push dword [esp + 0x30]
mov ecx, edi
call fcn.10078a70
add esp, 8
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
movzx ecx, word [edx + 0x18]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov dword [esp + 0x2c], ecx
lea eax, [ecx + 9]
mov edx, eax
mov al, byte [ecx]
inc ecx
mov dword [esp + 0x2c], ecx
test al, al
jns 0x1007f845
cmp ecx, edx
jb 0x1007f836
mov edx, dword [esp + 0x18]
lea eax, [ecx + 9]
mov dword [esp + 0x14], eax
mov edi, eax
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
mov dword [esp + 0x2c], ecx
test al, al
jns 0x1007f864
cmp ecx, edi
jb 0x1007f852
mov edi, dword [esp + 0x20]
test ebx, ebx
jne 0x1007f896
lea eax, [esp + 0x10]
push eax
push dword [edx + 4]
mov eax, dword [esp + 0x30]
sub esi, eax
push 0
push esi
mov esi, dword [esp + 0x2c]
mov ecx, esi
push eax
movzx edx, word [esi + 0x18]
call fcn.1007ed30
mov ebx, dword [esp + 0x24]
add esp, 0x14
jmp 0x1007f89a
mov esi, dword [esp + 0x1c]
movzx ecx, byte [esi + 9]
mov eax, dword [esi + 0x38]
mov edx, dword [esp + 0x24]
bswap edx
mov dword [ecx + eax + 8], edx
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x1007f905
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov dword [eax + 0x88], edx
mov esi, dword [eax + 0x3c]
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.10180ab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.1006e3b0
mov ecx, dword [esp + 0x74]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret