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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x102d2008]
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], 0x102af450
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.100bf0b0
mov esi, dword [esp + 0x54]
add esp, 0x10
test esi, esi
jne 0x100bf74d
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 0x100bf3da
mov eax, dword [eax + 0x1c]
or word [eax + 0x4e], 1
xor eax, eax
jmp 0x100bf7a1
cmp byte [ecx + 9], 0
je 0x100bf3ee
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x100bf3ee
call fcn.10077eb0
mov ecx, dword [esi + 4]
cmp byte [ecx + 8], 0
jne 0x100bf42c
push 0
xor edx, edx
call fcn.1007afa0
mov esi, eax
add esp, 4
test esi, esi
je 0x100bf424
mov ecx, esi
call fcn.100e8040
mov ecx, dword [esp + 0x24]
mov edx, edi
push eax
call fcn.10066030
add esp, 4
jmp 0x100bf731
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 0x100bf462
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x100bf462
mov ecx, esi
call fcn.10077eb0
mov dl, byte [esi + 9]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
cmp ecx, 0xe
jne 0x100bf471
mov eax, dword [eax]
mov eax, dword [eax + 0x64]
add eax, dword [esi + 0x14]
jmp 0x100bf47d
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 0x100bf496
add dword [esi + 0xc], 0xffffffff
jne 0x100bf496
mov ecx, esi
call fcn.10077e70
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, 5
jl 0x100bf436
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x20]
and eax, 0x2000000
or eax, 0
je 0x100bf4c1
xorps xmm0, xmm0
xor edx, edx
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], edx
jmp 0x100bf4c5
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 0x100bf50c
cmp dword [esp + 0x18], 0
jne 0x100bf4e5
mov byte [edi + 0x4e], 1
mov cl, 1
jmp 0x100bf51f
mov cl, byte [edi + 0x4e]
movzx eax, cl
cmp edx, eax
je 0x100bf51f
mov ecx, dword [esp + 0x24]
mov edx, edi
push str.attached_databases_must_use_the_same_text_encoding_as_main_database
call fcn.10066030
add esp, 4
mov esi, 1
jmp 0x100bf6d6
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 0x100bf546
mov dword [eax + 0x50], 0xfffff830
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [edx + 0x50]
call fcn.1007a600
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 0x100bf55d
mov byte [eax + 0x4c], 1
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x4c], 4
jbe 0x100bf5df
mov esi, dword [esp + 0x24]
mov ecx, dword [esi]
test ecx, ecx
je 0x100bf5aa
cmp dword [edi + 0x1d0], 0
je 0x100bf581
mov edx, ecx
mov ecx, edi
call fcn.10065950
jmp 0x100bf5aa
cmp ecx, dword [edi + 0x130]
jb 0x100bf5a1
cmp ecx, dword [edi + 0x134]
jae 0x100bf5a1
mov eax, dword [edi + 0x12c]
mov dword [ecx], eax
mov dword [edi + 0x12c], ecx
jmp 0x100bf5aa
push ecx
call sym.BasicSQLite.dll_sqlite3_free
add esp, 4
push 0
push 0x18
mov ecx, edi
call fcn.10065cb0
add esp, 8
test eax, eax
je 0x100bf5d3
movups xmm0, xmmword [str.unsupported_file_format]
movups xmmword [eax], xmm0
movq xmm0, qword [0x102b1658]
movq qword [eax + 0x10], xmm0
mov dword [esi], eax
mov esi, 1
jmp 0x100bf6d6
cmp dword [esp + 0x18], 0
jne 0x100bf5f5
cmp ecx, 4
jl 0x100bf5f5
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.10068060
mov esi, dword [edi + 0x138]
lea ecx, [esp + 0x48]
push 0
push ecx
push fcn.100bf0b0
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 0x100bf690
cmp dword [edi + 0x1d0], 0
je 0x100bf667
mov edx, ecx
mov ecx, edi
call fcn.10065950
jmp 0x100bf690
cmp ecx, dword [edi + 0x130]
jb 0x100bf687
cmp ecx, dword [edi + 0x134]
jae 0x100bf687
mov eax, dword [edi + 0x12c]
mov dword [ecx], eax
mov dword [edi + 0x12c], ecx
jmp 0x100bf690
push ecx
call sym.BasicSQLite.dll_sqlite3_free
add esp, 4
test esi, esi
jne 0x100bf69f
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.100a6e70
cmp byte [edi + 0x51], 0
je 0x100bf6b3
mov ecx, edi
mov esi, 7
call fcn.100a8e10
jmp 0x100bf6b7
test esi, esi
je 0x100bf6c4
mov eax, dword [edi + 0x20]
and eax, 0x8000000
or eax, 0
je 0x100bf6d6
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 0x100bf731
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
cmp byte [eax + 9], 0
je 0x100bf702
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x100bf702
mov ecx, eax
call fcn.10077eb0
mov eax, dword [esp + 0x14]
xor edx, edx
mov ecx, eax
call fcn.1007be60
test eax, eax
jne 0x100bf71a
mov ecx, dword [esp + 0x14]
xor edx, edx
call fcn.1007c070
mov eax, dword [esp + 0x14]
cmp byte [eax + 9], 0
je 0x100bf731
add dword [eax + 0xc], 0xffffffff
jne 0x100bf731
mov ecx, eax
call fcn.10077e70
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
cmp byte [ecx + 9], 0
je 0x100bf749
add dword [ecx + 0xc], 0xffffffff
jne 0x100bf749
call fcn.10077e70
test esi, esi
je 0x100bf79f
cmp esi, 7
je 0x100bf75a
cmp esi, 0xc0a
jne 0x100bf794
cmp byte [edi + 0x51], 0
jne 0x100bf794
cmp byte [edi + 0x52], 0
jne 0x100bf794
cmp dword [edi + 0xbc], 0
mov byte [edi + 0x51], 1
jle 0x100bf77d
mov dword [edi + 0x108], 1
inc dword [edi + 0x110]
mov eax, dword [edi + 0xec]
test eax, eax
je 0x100bf794
mov dword [eax + 0xc], 7
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.100a8db0
mov eax, esi
mov ecx, dword [esp + 0x8c]
mov byte [edi + 0xa5], 0
pop edi
pop esi
xor ecx, esp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret