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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x102d4008]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 8]
cmp edx, 1
push esi
push edi
mov dword [esp + 0x24], eax
mov edi, ecx
mov dword [esp + 0x3c], eax
mov ecx, str.sqlite_master
mov eax, dword [ebp + 0xc]
mov esi, str.sqlite_temp_master
mov dword [esp + 0x48], eax
cmove ecx, esi
push 0
lea eax, [esp + 0x78]
mov dword [esp + 0x1c], edx
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x30], edi
push 5
push eax
mov dword [esp + 0x40], 0
mov byte [edi + 0xa5], 1
mov dword [esp + 0x84], str.table
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], 0x102b1598
mov dword [esp + 0x94], str.CREATE_TABLE_x_type_text_name_text_tbl_name_text_rootpage_int_sql_text_
mov dword [esp + 0x98], 0
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0
call fcn.100bf780
mov esi, dword [esp + 0x54]
add esp, 0x10
test esi, esi
jne 0x100bfe1d
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x10]
shl ecx, 4
mov dword [esp + 0x14], ecx
lea esi, [eax + ecx]
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], esi
test ecx, ecx
jne 0x100bfaaa
mov eax, dword [eax + 0x1c]
or word [eax + 0x4e], 1
xor eax, eax
jmp 0x100bfe71
cmp byte [ecx + 9], 0
je 0x100bfabe
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x100bfabe
call fcn.10078580
mov ecx, dword [esi + 4]
cmp byte [ecx + 8], 0
jne 0x100bfafc
push 0
xor edx, edx
call fcn.1007b670
mov esi, eax
add esp, 4
test esi, esi
je 0x100bfaf4
mov ecx, esi
call fcn.100e8700
mov ecx, dword [esp + 0x24]
mov edx, edi
push eax
call fcn.100666f0
add esp, 4
jmp 0x100bfe01
mov dword [esp + 0x30], 1
mov edi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov esi, dword [edi + 4]
mov dl, byte [esi + 9]
mov eax, dword [esi + 4]
mov dword [esp + 0x34], eax
test dl, dl
je 0x100bfb32
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100bfb32
mov ecx, esi
call fcn.10078580
mov dl, byte [esi + 9]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
cmp ecx, 0xe
jne 0x100bfb41
mov eax, dword [eax]
mov eax, dword [eax + 0x64]
add eax, dword [esi + 0x14]
jmp 0x100bfb4d
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + ecx*4 + 0x28]
bswap eax
mov dword [esp + ecx*4 + 0x50], eax
test dl, dl
je 0x100bfb66
add dword [esi + 0xc], 0xffffffff
jne 0x100bfb66
mov ecx, esi
call fcn.10078540
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, 5
jl 0x100bfb06
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x20]
and eax, 0x2000000
or eax, 0
je 0x100bfb91
xorps xmm0, xmm0
xor edx, edx
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], edx
jmp 0x100bfb95
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
test edx, edx
je 0x100bfbdc
cmp dword [esp + 0x18], 0
jne 0x100bfbb5
mov byte [edi + 0x4e], 1
mov cl, 1
jmp 0x100bfbef
mov cl, byte [edi + 0x4e]
movzx eax, cl
cmp edx, eax
je 0x100bfbef
mov ecx, dword [esp + 0x24]
mov edx, edi
push str.attached_databases_must_use_the_same_text_encoding_as_main_database
call fcn.100666f0
add esp, 4
mov esi, 1
jmp 0x100bfda6
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax + 0xc]
or word [eax + 0x4e], 4
mov cl, byte [edi + 0x4e]
mov eax, dword [esi + 0xc]
mov byte [eax + 0x4d], cl
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x50], 0
jne 0x100bfc16
mov dword [eax + 0x50], 0xfffff830
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [edx + 0x50]
call fcn.1007acd0
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x54]
mov byte [eax + 0x4c], cl
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x4c], 0
jne 0x100bfc2d
mov byte [eax + 0x4c], 1
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x4c], 4
jbe 0x100bfcaf
mov esi, dword [esp + 0x24]
mov ecx, dword [esi]
test ecx, ecx
je 0x100bfc7a
cmp dword [edi + 0x1d0], 0
je 0x100bfc51
mov edx, ecx
mov ecx, edi
call fcn.10066010
jmp 0x100bfc7a
cmp ecx, dword [edi + 0x130]
jb 0x100bfc71
cmp ecx, dword [edi + 0x134]
jae 0x100bfc71
mov eax, dword [edi + 0x12c]
mov dword [ecx], eax
mov dword [edi + 0x12c], ecx
jmp 0x100bfc7a
push ecx
call sym.BasicSQLite.dll_sqlite3_free
add esp, 4
push 0
push 0x18
mov ecx, edi
call fcn.10066370
add esp, 8
test eax, eax
je 0x100bfca3
movups xmm0, xmmword [str.unsupported_file_format]
movups xmmword [eax], xmm0
movq xmm0, qword [0x102b37a0]
movq qword [eax + 0x10], xmm0
mov dword [esi], eax
mov esi, 1
jmp 0x100bfda6
cmp dword [esp + 0x18], 0
jne 0x100bfcc5
cmp ecx, 4
jl 0x100bfcc5
mov eax, dword [edi + 0x24]
and dword [edi + 0x20], 0xfffffffd
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x2c]
push dword [ecx + eax]
push str.SELECTFROM__w_._s_ORDER_BY_rowid
push edi
call fcn.10068720
mov esi, dword [edi + 0x138]
lea ecx, [esp + 0x48]
push 0
push ecx
push fcn.100bf780
push eax
push edi
mov dword [esp + 0x4c], eax
mov dword [edi + 0x138], 0
call sym.BasicSQLite.dll_sqlite3_exec
mov ecx, dword [esp + 0x4c]
add esp, 0x24
mov dword [edi + 0x138], esi
mov esi, eax
test esi, esi
mov dword [esp + 0x2c], eax
cmove esi, dword [esp + 0x44]
test ecx, ecx
je 0x100bfd60
cmp dword [edi + 0x1d0], 0
je 0x100bfd37
mov edx, ecx
mov ecx, edi
call fcn.10066010
jmp 0x100bfd60
cmp ecx, dword [edi + 0x130]
jb 0x100bfd57
cmp ecx, dword [edi + 0x134]
jae 0x100bfd57
mov eax, dword [edi + 0x12c]
mov dword [ecx], eax
mov dword [edi + 0x12c], ecx
jmp 0x100bfd60
push ecx
call sym.BasicSQLite.dll_sqlite3_free
add esp, 4
test esi, esi
jne 0x100bfd6f
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.100a7540
cmp byte [edi + 0x51], 0
je 0x100bfd83
mov ecx, edi
mov esi, 7
call fcn.100a94e0
jmp 0x100bfd87
test esi, esi
je 0x100bfd94
mov eax, dword [edi + 0x20]
and eax, 0x8000000
or eax, 0
je 0x100bfda6
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax + 0xc]
or word [eax + 0x4e], 1
xor esi, esi
cmp dword [esp + 0x30], 0
je 0x100bfe01
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
cmp byte [eax + 9], 0
je 0x100bfdd2
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x100bfdd2
mov ecx, eax
call fcn.10078580
mov eax, dword [esp + 0x14]
xor edx, edx
mov ecx, eax
call fcn.1007c530
test eax, eax
jne 0x100bfdea
mov ecx, dword [esp + 0x14]
xor edx, edx
call fcn.1007c740
mov eax, dword [esp + 0x14]
cmp byte [eax + 9], 0
je 0x100bfe01
add dword [eax + 0xc], 0xffffffff
jne 0x100bfe01
mov ecx, eax
call fcn.10078540
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
cmp byte [ecx + 9], 0
je 0x100bfe19
add dword [ecx + 0xc], 0xffffffff
jne 0x100bfe19
call fcn.10078540
test esi, esi
je 0x100bfe6f
cmp esi, 7
je 0x100bfe2a
cmp esi, 0xc0a
jne 0x100bfe64
cmp byte [edi + 0x51], 0
jne 0x100bfe64
cmp byte [edi + 0x52], 0
jne 0x100bfe64
cmp dword [edi + 0xbc], 0
mov byte [edi + 0x51], 1
jle 0x100bfe4d
mov dword [edi + 0x108], 1
inc dword [edi + 0x110]
mov eax, dword [edi + 0xec]
test eax, eax
je 0x100bfe64
mov dword [eax + 0xc], 7
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.100a9480
mov eax, esi
mov ecx, dword [esp + 0x8c]
mov byte [edi + 0xa5], 0
pop edi
pop esi
xor ecx, esp
call fcn.1010f56f
mov esp, ebp
pop ebp
ret