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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x34]
push edi
mov edi, eax
push esi
lea eax, [esp + 0x24]
mov ecx, edi
mov dword [esp + 0x20], ebx
call fcn.100205e0
mov ax, word [esp + 0x3c]
add esp, 4
test ax, ax
je 0x1006a7b2
movzx ecx, word [esi + 0x12]
add ecx, dword [esi + 0x38]
movzx eax, ax
add eax, edi
lea edx, [eax + 3]
cmp edx, ecx
jbe 0x1006a778
push 0x100b2e14
push 0xdd21
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, byte [eax + 2]
xor ecx, ecx
mov ch, byte [eax]
xor edi, edi
mov cl, byte [eax + 1]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, edx
movzx edx, word [esp + 0x36]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x30]
mov esi, ecx
mov ecx, dword [ebx + 0x24]
sub eax, edx
sub ecx, 4
xor edx, edx
lea eax, [eax + ecx - 1]
div ecx
cmp eax, edi
jne 0x1006a7ca
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
xor edi, edi
sub eax, 1
cmp esi, 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
jb 0x1006a8f7
cmp esi, dword [ebx + 0x2c]
ja 0x1006a8f7
cmp eax, edi
je 0x1006a810
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
mov eax, ebx
call fcn.10069230
add esp, 0xc
cmp eax, edi
jne 0x1006a7b4
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x1006a85e
mov ecx, dword [ebx]
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], edi
mov edi, dword [ecx + 0xdc]
push esi
call fcn.1001ca90
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test ecx, ecx
je 0x1006a856
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
cmp esi, 1
mov dword [eax + 0x44], ecx
setne cl
sub cl, 1
mov dword [eax + 0x38], edx
mov dword [eax + 0x34], ebx
mov dword [eax + 0x48], esi
and ecx, 0x64
mov byte [eax + 5], cl
jmp 0x1006a858
xor eax, eax
test eax, eax
mov edi, eax
je 0x1006a888
mov edx, dword [edi + 0x44]
cmp word [edx + 0x1a], 1
je 0x1006a888
push 0x100b2e14
push 0xdd43
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x10
mov ebx, 0xb
jmp 0x1006a896
push esi
push ebx
mov eax, edi
call fcn.10068680
add esp, 8
mov ebx, eax
test edi, edi
je 0x1006a8d3
mov eax, dword [edi + 0x44]
test eax, eax
je 0x1006a8d3
test byte [eax + 0x18], 0x40
mov esi, dword [eax + 0x10]
je 0x1006a8b3
mov ecx, eax
call fcn.1001bdb0
jmp 0x1006a8b8
call fcn.1001ca10
cmp dword [esi + 0x78], 0
jne 0x1006a8d3
mov eax, dword [esi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x1006a8d3
push esi
call fcn.10065200
add esp, 4
test ebx, ebx
jne 0x1006a8ee
cmp dword [esp + 0x18], ebx
mov esi, dword [esp + 0x14]
jne 0x1006a7c0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100b2e14
push 0xdd2f
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x10
pop edi
pop esi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret