Function at 0x1009cb50
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 + 0x20], 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], 0x10169d74
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.1009c8c0
and dword [edi + 0x18], esi
add esp, 0x10
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x1009d03d
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 0x1009cc3f
mov eax, dword [eax + 0x1c]
or word [eax + 0x4e], 1
xor eax, eax
jmp 0x1009d05c
cmp byte [ecx + 9], 0
je 0x1009cc53
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x1009cc53
call fcn.1003e950
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x1009cc64
cmp byte [ecx + 8], 0
jne 0x1009cd27
cmp byte [ecx + 9], 0
jne 0x1009cc74
cmp byte [ecx + 8], 0
jne 0x1009cd1f
push 0
xor edx, edx
call fcn.10041ce0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1009cd1f
mov esi, str.unknown_error
sub eax, 0x64
je 0x1009ccc5
sub eax, 1
je 0x1009ccbe
sub eax, 0x19f
je 0x1009ccb7
movzx eax, bl
cmp eax, 0x1d
jae 0x1009ccca
mov eax, dword [eax*4 + 0x1015de48]
test eax, eax
je 0x1009ccca
mov esi, eax
jmp 0x1009ccca
mov esi, str.abort_due_to_ROLLBACK
jmp 0x1009ccca
mov esi, str.no_more_rows_available
jmp 0x1009ccca
mov esi, str.another_row_available
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009ccd0
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, edi
push eax
mov dword [esp + 0x20], eax
call fcn.10026f30
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1009cd03
push dword [esp + 0x18]
push esi
push eax
call fcn.10139d00
add esp, 0xc
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
test edx, edx
je 0x1009cd14
mov ecx, edi
call fcn.10026a90
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
jmp 0x1009d021
mov dword [esp + 0x18], 1
xor ebx, ebx
nop dword [eax]
mov esi, dword [ebp + 4]
mov cl, byte [esi + 9]
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x1009cd58
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1009cd58
mov ecx, esi
call fcn.1003e950
mov cl, byte [esi + 9]
mov eax, dword [esp + 0x1c]
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 0x1009cd79
add dword [esi + 0xc], 0xffffffff
jne 0x1009cd79
mov ecx, esi
call fcn.1003e930
inc ebx
cmp ebx, 5
jl 0x1009cd30
mov eax, dword [edi + 0x20]
and eax, 0x2000000
or eax, 0
je 0x1009cd98
xorps xmm0, xmm0
xor edx, edx
movups xmmword [esp + 0x48], xmm0
jmp 0x1009cd9c
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 0x1009cde6
test ebx, ebx
jne 0x1009ce12
mov eax, dword [edi + 0x18]
test al, 0x40
jne 0x1009ce12
and dl, 3
mov ecx, 1
movzx edx, dl
cmove edx, ecx
cmp dword [edi + 0xbc], ebx
jle 0x1009cddf
cmp dl, byte [edi + 0x54]
je 0x1009cddf
test al, 4
jne 0x1009cddf
lea ebx, [ecx + 5]
jmp 0x1009cfd8
mov ecx, edi
call fcn.100835e0
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 0x1009ce9b
mov eax, dword [esp + 0x50]
test eax, eax
jns 0x1009ce80
cmp eax, 0x80000000
jne 0x1009ce7e
mov eax, 0x7fffffff
jmp 0x1009ce8a
and edx, 3
cmp dl, byte [edi + 0x54]
je 0x1009cde6
push 0
push 0x44
mov ecx, edi
call fcn.10026f30
mov esi, eax
add esp, 8
test esi, esi
je 0x1009ce61
movups xmm0, xmmword [str.attached_databases_must_use_the_same_text_encoding_as_main_database]
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x1016acf0]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [0x1016ad00]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [0x1016ad10]
movups xmmword [esi + 0x30], xmm0
mov eax, dword [0x1016ad20]
mov dword [esi + 0x40], eax
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx]
test edx, edx
je 0x1009ce72
mov ecx, edi
call fcn.10026a90
mov dword [ebx], esi
mov ebx, 1
jmp 0x1009cfd8
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.100415c0
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 0x1009ceb2
mov byte [eax + 0x4c], 1
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x4c], 4
jbe 0x1009cf03
push 0
push 0x18
mov ecx, edi
call fcn.10026f30
mov esi, eax
add esp, 8
test esi, esi
je 0x1009cee6
movups xmm0, xmmword [str.unsupported_file_format]
movups xmmword [esi], xmm0
movq xmm0, qword [0x1016c978]
movq qword [esi + 0x10], xmm0
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx]
test edx, edx
je 0x1009ce72
mov ecx, edi
call fcn.10026a90
mov dword [ebx], esi
mov ebx, 1
jmp 0x1009cfd8
test ebx, ebx
jne 0x1009cf16
cmp ecx, 4
jl 0x1009cf16
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.100293f0
mov esi, dword [edi + 0x16c]
lea ecx, [esp + 0x3c]
push 0
push ecx
push fcn.1009c8c0
push eax
push edi
mov dword [esp + 0x48], eax
mov dword [edi + 0x16c], 0
call fcn.10094880
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 0x1009cf84
mov ecx, edi
call fcn.10026a90
mov esi, dword [esp + 0x14]
test ebx, ebx
jne 0x1009cf95
mov edx, esi
mov ecx, edi
call fcn.10077d40
cmp byte [edi + 0x57], 0
je 0x1009cfb0
mov ecx, edi
mov ebx, 7
call fcn.1007a210
mov ebp, dword [edi + 0x10]
add ebp, dword [esp + 0x28]
jmp 0x1009cfd8
test ebx, ebx
je 0x1009cfc6
mov eax, dword [edi + 0x20]
and eax, 0x8000000
or eax, 0
je 0x1009cfd8
cmp ebx, 7
je 0x1009cfd8
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 0x1009d021
mov esi, dword [ebp + 4]
cmp byte [esi + 9], 0
je 0x1009cff8
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x1009cff8
mov ecx, esi
call fcn.1003e950
xor edx, edx
mov ecx, esi
call fcn.10042b90
test eax, eax
jne 0x1009d00e
xor edx, edx
mov ecx, esi
call fcn.10042d60
cmp byte [esi + 9], 0
je 0x1009d021
add dword [esi + 0xc], 0xffffffff
jne 0x1009d021
mov ecx, esi
call fcn.1003e930
mov ecx, dword [ebp + 4]
cmp byte [ecx + 9], 0
je 0x1009d035
add dword [ecx + 0xc], 0xffffffff
jne 0x1009d035
call fcn.1003e930
mov ebp, dword [esp + 0x14]
test ebx, ebx
je 0x1009d05a
cmp ebx, 7
je 0x1009d04a
cmp ebx, 0xc0a
jne 0x1009d051
mov ecx, edi
call fcn.10027200
mov edx, ebp
mov ecx, edi
call fcn.1007a1a0
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.10136e2d
add esp, 0x6c
ret