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

Disassembly:
sub esp, 0x6c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x70]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov ebp, edx
mov eax, dword [esp + 0x84]
mov edx, str.sqlite_temp_master
mov dword [esp + 0x3c], eax
mov ecx, str.sqlite_master
mov esi, dword [edi + 0x18]
lea eax, [esp + 0x5c]
push 0
push eax
or esi, 0xffffffbf
mov dword [esp + 0x1c], ebp
cmp ebp, 1
mov dword [esp + 0x20], 0
lea eax, [esp + 0x34]
mov byte [edi + 0xb1], 1
cmove ecx, edx
mov dword [esp + 0x64], str.table
push 5
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 0x1016ab14
mov dword [esp + 0x7c], str.CREATE_TABLE_x_type_text_name_text_tbl_name_text_rootpage_int_sql_text_
mov dword [esp + 0x80], 0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.1009ef30
and dword [edi + 0x18], esi
add esp, 0x10
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x1009f6ad
mov eax, dword [edi + 0x10]
mov ecx, ebp
shl ecx, 4
mov dword [esp + 0x28], ecx
lea ebp, [eax + ecx]
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x1009f2af
mov eax, dword [eax + 0x1c]
or word [eax + 0x4e], 1
xor eax, eax
jmp 0x1009f6cc
cmp byte [ecx + 9], 0
je 0x1009f2c3
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x1009f2c3
call fcn.1003fd90
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x1009f2d4
cmp byte [ecx + 8], 0
jne 0x1009f399
cmp byte [ecx + 9], 0
jne 0x1009f2e4
cmp byte [ecx + 8], 0
jne 0x1009f391
push 0
xor edx, edx
call fcn.100430f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1009f391
mov ecx, ebx
mov esi, str.unknown_error
sub ecx, 0x64
je 0x1009f338
sub ecx, 1
je 0x1009f331
sub ecx, 0x19f
je 0x1009f32a
movzx eax, bl
cmp eax, 0x1d
jae 0x1009f33d
mov eax, dword [eax*4 + 0x1015ebd8]
test eax, eax
je 0x1009f33d
mov esi, eax
jmp 0x1009f33d
mov esi, str.abort_due_to_ROLLBACK
jmp 0x1009f33d
mov esi, str.no_more_rows_available
jmp 0x1009f33d
mov esi, str.another_row_available
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009f342
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, edi
push eax
mov dword [esp + 0x20], eax
call fcn.10028280
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x1009f375
push dword [esp + 0x18]
push esi
push eax
call fcn.1013c1a0
add esp, 0xc
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
test edx, edx
je 0x1009f386
mov ecx, edi
call fcn.10027de0
mov eax, dword [esp + 0x20]
mov dword [esi], eax
jmp 0x1009f691
mov dword [esp + 0x18], 1
xor ebx, ebx
nop dword [eax + eax]
mov esi, dword [ebp + 4]
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
mov dword [esp + 0x20], eax
test cl, cl
je 0x1009f3c8
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1009f3c8
mov ecx, esi
call fcn.1003fd90
mov cl, byte [esi + 9]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + ebx*4 + 0x28]
bswap eax
mov dword [esp + ebx*4 + 0x48], eax
test cl, cl
je 0x1009f3e9
add dword [esi + 0xc], 0xffffffff
jne 0x1009f3e9
mov ecx, esi
call fcn.1003fd70
inc ebx
cmp ebx, 5
jl 0x1009f3a0
mov eax, dword [edi + 0x20]
and eax, 0x2000000
or eax, 0
je 0x1009f408
xorps xmm0, xmm0
xor edx, edx
movups xmmword [esp + 0x48], xmm0
jmp 0x1009f40c
mov edx, dword [esp + 0x58]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x14]
mov dword [ecx], eax
test edx, edx
je 0x1009f456
test ebx, ebx
jne 0x1009f482
mov eax, dword [edi + 0x18]
test al, 0x40
jne 0x1009f482
and dl, 3
mov ecx, 1
movzx edx, dl
cmove edx, ecx
cmp dword [edi + 0xbc], ebx
jle 0x1009f44f
cmp dl, byte [edi + 0x54]
je 0x1009f44f
test al, 4
jne 0x1009f44f
lea ebx, [ecx + 5]
jmp 0x1009f648
mov ecx, edi
call fcn.10085870
mov ecx, dword [ebp + 0xc]
mov al, byte [edi + 0x54]
mov byte [ecx + 0x4d], al
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x50], 0
jne 0x1009f50b
mov eax, dword [esp + 0x50]
test eax, eax
jns 0x1009f4f0
cmp eax, 0x80000000
jne 0x1009f4ee
mov eax, 0x7fffffff
jmp 0x1009f4fa
and edx, 3
cmp dl, byte [edi + 0x54]
je 0x1009f456
push 0
push 0x44
mov ecx, edi
call fcn.10028280
mov esi, eax
add esp, 8
test esi, esi
je 0x1009f4d1
movups xmm0, xmmword [str.attached_databases_must_use_the_same_text_encoding_as_main_database]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x1016ba90]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [0x1016baa0]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [0x1016bab0]
movups xmmword [esi + 0x30], xmm0
mov eax, dword [0x1016bac0]
mov dword [esi + 0x40], eax
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx]
test edx, edx
je 0x1009f4e2
mov ecx, edi
call fcn.10027de0
mov dword [ebx], esi
mov ebx, 1
jmp 0x1009f648
neg eax
test eax, eax
mov edx, 0xfffff830
cmove eax, edx
mov dword [ecx + 0x50], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
mov edx, dword [edx + 0x50]
call fcn.10042a20
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x4c]
mov byte [eax + 0x4c], cl
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x4c], 0
jne 0x1009f522
mov byte [eax + 0x4c], 1
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x4c], 4
jbe 0x1009f573
push 0
push 0x18
mov ecx, edi
call fcn.10028280
mov esi, eax
add esp, 8
test esi, esi
je 0x1009f556
movups xmm0, xmmword [str.unsupported_file_format]
movups xmmword [esi], xmm0
movq xmm0, qword [0x1016d718]
movq qword [esi + 0x10], xmm0
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx]
test edx, edx
je 0x1009f4e2
mov ecx, edi
call fcn.10027de0
mov dword [ebx], esi
mov ebx, 1
jmp 0x1009f648
test ebx, ebx
jne 0x1009f586
cmp ecx, 4
jl 0x1009f586
mov eax, dword [edi + 0x24]
and dword [edi + 0x20], 0xfffffffd
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 4]
mov ecx, ebx
push dword [esp + 0x24]
add ecx, ecx
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x10]
push dword [eax + ecx*8]
push str.SELECTFROM__w_._s_ORDER_BY_rowid
push edi
call fcn.1002a740
mov esi, dword [edi + 0x16c]
lea ecx, [esp + 0x3c]
push 0
push ecx
push fcn.1009ef30
push eax
push edi
mov dword [esp + 0x48], eax
mov dword [edi + 0x16c], 0
call fcn.10096c40
mov edx, dword [esp + 0x48]
mov ebx, eax
add esp, 0x24
mov dword [edi + 0x16c], esi
test ebx, ebx
cmove ebx, dword [esp + 0x38]
test edx, edx
je 0x1009f5f4
mov ecx, edi
call fcn.10027de0
mov esi, dword [esp + 0x14]
test ebx, ebx
jne 0x1009f605
mov edx, esi
mov ecx, edi
call fcn.10079de0
cmp byte [edi + 0x57], 0
je 0x1009f620
mov ecx, edi
mov ebx, 7
call fcn.1007c290
mov ebp, dword [edi + 0x10]
add ebp, dword [esp + 0x28]
jmp 0x1009f648
test ebx, ebx
je 0x1009f636
mov eax, dword [edi + 0x20]
and eax, 0x8000000
or eax, 0
je 0x1009f648
cmp ebx, 7
je 0x1009f648
mov eax, dword [edi + 0x10]
mov ecx, esi
add ecx, ecx
mov eax, dword [eax + ecx*8 + 0xc]
or word [eax + 0x4e], 1
xor ebx, ebx
cmp dword [esp + 0x18], 0
je 0x1009f691
mov esi, dword [ebp + 4]
cmp byte [esi + 9], 0
je 0x1009f668
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1009f668
mov ecx, esi
call fcn.1003fd90
xor edx, edx
mov ecx, esi
call fcn.10043f80
test eax, eax
jne 0x1009f67e
xor edx, edx
mov ecx, esi
call fcn.10044150
cmp byte [esi + 9], 0
je 0x1009f691
add dword [esi + 0xc], 0xffffffff
jne 0x1009f691
mov ecx, esi
call fcn.1003fd70
mov ecx, dword [ebp + 4]
cmp byte [ecx + 9], 0
je 0x1009f6a5
add dword [ecx + 0xc], 0xffffffff
jne 0x1009f6a5
call fcn.1003fd70
mov ebp, dword [esp + 0x14]
test ebx, ebx
je 0x1009f6ca
cmp ebx, 7
je 0x1009f6ba
cmp ebx, 0xc0a
jne 0x1009f6c1
mov ecx, edi
call fcn.10028550
mov edx, ebp
mov ecx, edi
call fcn.1007c220
mov eax, ebx
mov ecx, dword [esp + 0x74]
mov byte [edi + 0xb1], 0
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1013942d
add esp, 0x6c
ret