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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov ecx, eax
and ecx, 1
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ecx
cmp ebx, 1
je 0x1006b90d
cmp byte [edi + 0x16], 0
je 0x1006b90d
cmp byte [edi + 0x10], 1
je 0x1006b8fd
test al, 2
je 0x1006b90d
mov dword [esp + 0x18], 1
cmp dword [edi + 0xc8], esi
je 0x1006b911
mov dword [esp + 0x18], esi
cmp ebx, esi
jne 0x1006b93a
push 0x100b88d4
push 0xb5c1
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
mov eax, dword [edi + 0x28]
mov byte [edi + 0x17], 1
cmp eax, esi
je 0x1006b94c
mov esi, eax
jmp 0x1006bab4
cmp dword [esp + 0x18], esi
je 0x1006ba48
mov eax, dword [edi + 0xe0]
cmp eax, esi
je 0x1006b983
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
call fcn.10064aa0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1006bbf9
cmp dword [esp + 0x14], eax
jne 0x1006ba48
mov esi, dword [edi + 0x98]
xor ecx, ecx
push ecx
mov dword [esp + 0x14], ecx
mov eax, esi
cdq
lea ecx, [ebx - 1]
push ecx
push edx
push eax
call fcn.100083f0
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
mov ecx, dword [edx + 0x44]
call ecx
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1006bbf9
cmp dword [esp + 0x10], eax
je 0x1006ba40
cmp byte [edi + 0x10], 1
jbe 0x1006b9eb
mov eax, ebx
mov ecx, edi
call fcn.10021c80
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1006ba04
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
push ebx
mov esi, edi
call fcn.1002c860
add esp, 0xc
mov esi, eax
jmp 0x1006ba2a
mov eax, dword [edi + 0x98]
xor ecx, ecx
push ecx
cdq
lea ecx, [ebx - 1]
push ecx
push edx
push eax
call fcn.100083f0
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edi + 0x3c]
call fcn.100176b0
add esp, 8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1006ba40
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x1006bbec
mov ecx, dword [edi + 0xdc]
movzx eax, byte [ecx + 0x1d]
mov edx, dword [ecx + 0x28]
and eax, 3
push eax
push ebx
push edx
call dword [0x100cb444]
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1006ba8e
mov esi, dword [edi + 0xdc]
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.10015680
mov esi, eax
add esp, 8
test esi, esi
jne 0x1006bbec
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0xdc]
push eax
push ebx
push ecx
call fcn.1001d830
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov dword [edx], eax
test eax, eax
jne 0x1006bab0
lea esi, [eax + 7]
jmp 0x1006bbf9
mov ecx, dword [esp + 0x1c]
test esi, esi
jne 0x1006bbf9
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax + 0x10], esi
je 0x1006bad9
test ecx, ecx
jne 0x1006bad9
inc dword [edi + 0xb8]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0xc], eax
mov dword [eax + 0x10], edi
cmp ebx, 0x7fffffff
ja 0x1006bbce
mov eax, dword [0x100cb4d0]
cdq
idiv dword [edi + 0x98]
inc eax
cmp ebx, eax
je 0x1006bbce
cmp byte [edi + 0xf], 0
jne 0x1006bb62
cmp dword [edi + 0x18], ebx
jb 0x1006bb62
test ecx, ecx
jne 0x1006bb62
mov edx, dword [edi + 0x3c]
cmp dword [edx], ecx
je 0x1006bb62
mov eax, dword [edi + 0xe0]
test eax, eax
je 0x1006bb40
cmp dword [esp + 0x18], ecx
jne 0x1006bb40
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
call fcn.10064aa0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1006bbec
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
inc dword [edi + 0xbc]
push edx
call fcn.1001cee0
mov esi, eax
add esp, 4
test esi, esi
je 0x1006bbc5
jmp 0x1006bbec
cmp ebx, dword [edi + 0x9c]
jbe 0x1006bb71
mov esi, 0xd
jmp 0x1006bbec
test ecx, ecx
je 0x1006bbac
mov eax, dword [0x100cd594]
test eax, eax
je 0x1006bb80
call eax
cmp ebx, dword [edi + 0x1c]
ja 0x1006bb96
mov eax, dword [edi + 0x38]
test eax, eax
je 0x1006bb96
push ebx
push eax
call fcn.1002ff20
add esp, 8
push ebx
mov esi, edi
call fcn.10031c60
mov eax, dword [0x100cd598]
add esp, 4
test eax, eax
je 0x1006bbac
call eax
mov eax, dword [edi + 0x98]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 4]
push eax
push 0
push edx
call fcn.10004b00
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100b88d4
push 0xb611
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x10
mov esi, 0xb
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1006bbf9
call fcn.1001d790
cmp dword [edi + 0x78], 0
jne 0x1006bc14
mov eax, dword [edi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x1006bc14
push edi
call fcn.10069eb0
add esp, 4
mov ecx, dword [ebp + 0x10]
pop edi
mov eax, esi
pop esi
mov dword [ecx], 0
pop ebx
mov esp, ebp
pop ebp
ret