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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x1040706c]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 8]
cmp edx, 1
push esi
push edi
mov dword [esp + 0x1c], 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 + 0x18], edx
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], edi
push 5
push eax
mov dword [esp + 0x3c], 0
mov byte [edi + 0xa5], 1
mov dword [esp + 0x84], str.table
mov dword [esp + 0x38], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], 0x103dbcac
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.10081a40
mov esi, dword [esp + 0x54]
add esp, 0x10
test esi, esi
jne 0x100820d7
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x10]
shl ecx, 4
mov dword [esp + 0x10], ecx
lea esi, [eax + ecx]
mov ecx, dword [esi + 4]
mov dword [esp + 0x20], esi
test ecx, ecx
jne 0x10081d6a
mov eax, dword [eax + 0x1c]
or word [eax + 0x4e], 1
xor eax, eax
jmp 0x10082134
cmp byte [ecx + 9], 0
je 0x10081d7e
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x10081d7e
call fcn.1003bce0
mov ecx, dword [esi + 4]
cmp byte [ecx + 8], 0
jne 0x10081dbc
push 0
xor edx, edx
call fcn.1003eb60
mov esi, eax
add esp, 4
test esi, esi
je 0x10081db4
mov ecx, esi
call fcn.100aff10
mov ecx, dword [esp + 0x1c]
mov edx, edi
push eax
call fcn.1002a8a0
add esp, 4
jmp 0x100820bb
mov dword [esp + 0x2c], 1
mov edi, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov esi, dword [edi + 4]
lea eax, [esp + 0x50]
lea eax, [eax + ecx*4]
mov dword [esp + 0x34], eax
mov dl, byte [esi + 9]
mov eax, dword [esi + 4]
mov dword [esp + 0x30], eax
test dl, dl
je 0x10081dfd
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x10081dfd
mov ecx, esi
call fcn.1003bce0
mov dl, byte [esi + 9]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
cmp ecx, 0xe
jne 0x10081e16
mov eax, dword [eax]
mov ecx, dword [esi + 0x14]
add ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x34]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
jmp 0x10081e26
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 0x10081e3b
add dword [esi + 0xc], 0xffffffff
jne 0x10081e3b
mov ecx, esi
call fcn.1003bca0
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, 5
jl 0x10081dc6
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x20]
and eax, 0x2000000
or eax, 0
je 0x10081e66
xorps xmm0, xmm0
xor edx, edx
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], edx
jmp 0x10081e6a
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
test edx, edx
je 0x10081ee4
cmp dword [esp + 0x14], 0
jne 0x10081e95
and dl, 3
mov eax, 1
movzx ecx, dl
cmove ecx, eax
mov byte [edi + 0x4e], cl
jmp 0x10081ef7
mov cl, byte [edi + 0x4e]
movzx eax, cl
cmp edx, eax
je 0x10081ef7
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
test edx, edx
je 0x10081eb0
mov ecx, edi
call fcn.1002a220
push 0
push 0x44
mov ecx, edi
call fcn.1002a520
mov esi, eax
add esp, 8
test esi, esi
je 0x10081ed4
push 0x44
push str.attached_databases_must_use_the_same_text_encoding_as_main_database
push esi
call fcn.101d3050
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov esi, 1
jmp 0x10082060
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x10]
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 edx, dword [esi + 0xc]
cmp dword [edx + 0x50], 0
jne 0x10081f3c
mov eax, dword [esp + 0x58]
test eax, eax
jns 0x10081f1e
cmp eax, 0x80000000
jne 0x10081f1c
mov eax, bind
jmp 0x10081f28
neg eax
test eax, eax
mov ecx, 0xfffff830
cmove eax, ecx
mov dword [edx + 0x50], eax
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [edx + 0x50]
call fcn.1003e260
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x54]
mov byte [edx + 0x4c], cl
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x4c], 0
jne 0x10081f53
mov byte [eax + 0x4c], 1
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x4c], 4
jbe 0x10081f9f
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
test edx, edx
je 0x10081f6a
mov ecx, edi
call fcn.1002a220
push 0
push 0x18
mov ecx, edi
call fcn.1002a520
add esp, 8
test eax, eax
je 0x10081f93
movups xmm0, xmmword [str.unsupported_file_format]
movups xmmword [eax], xmm0
movq xmm0, qword [0x103de140]
movq qword [eax + 0x10], xmm0
mov dword [esi], eax
mov esi, 1
jmp 0x10082060
cmp dword [esp + 0x14], 0
jne 0x10081fb5
cmp ecx, 4
jl 0x10081fb5
mov eax, dword [edi + 0x24]
and dword [edi + 0x20], 0xfffffffd
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x10]
push dword [esp + 0x28]
push dword [ecx + eax]
push str.SELECTFROM__w_._s_ORDER_BY_rowid
push edi
call fcn.1002ca00
mov esi, dword [edi + 0x150]
lea ecx, [esp + 0x48]
push 0
push ecx
push fcn.10081a40
push eax
push edi
mov dword [esp + 0x48], eax
mov dword [edi + 0x150], 0
call fcn.1007d530
mov edx, dword [esp + 0x48]
add esp, 0x24
mov dword [edi + 0x150], esi
mov esi, eax
test esi, esi
mov dword [esp + 0x28], eax
cmove esi, dword [esp + 0x44]
test edx, edx
je 0x1008201a
mov ecx, edi
call fcn.1002a220
test esi, esi
jne 0x10082029
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.100691f0
cmp byte [edi + 0x51], 0
je 0x1008203d
mov ecx, edi
mov esi, 7
call fcn.1006af70
jmp 0x10082041
test esi, esi
je 0x1008204e
mov eax, dword [edi + 0x20]
and eax, 0x8000000
or eax, 0
je 0x10082060
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + eax + 0xc]
or word [eax + 0x4e], 1
xor esi, esi
cmp dword [esp + 0x2c], 0
je 0x100820bb
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
cmp byte [eax + 9], 0
je 0x1008208c
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x1008208c
mov ecx, eax
call fcn.1003bce0
mov eax, dword [esp + 0x10]
xor edx, edx
mov ecx, eax
call fcn.1003f820
test eax, eax
jne 0x100820a4
mov ecx, dword [esp + 0x10]
xor edx, edx
call fcn.1003fa30
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], 0
je 0x100820bb
add dword [eax + 0xc], 0xffffffff
jne 0x100820bb
mov ecx, eax
call fcn.1003bca0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
cmp byte [ecx + 9], 0
je 0x100820d3
add dword [ecx + 0xc], 0xffffffff
jne 0x100820d3
call fcn.1003bca0
test esi, esi
je 0x10082132
cmp esi, 7
je 0x100820e4
cmp esi, 0xc0a
jne 0x10082127
cmp byte [edi + 0x51], 0
jne 0x10082127
cmp byte [edi + 0x52], 0
jne 0x10082127
cmp dword [edi + 0xbc], 0
mov byte [edi + 0x51], 1
jle 0x10082107
mov dword [edi + 0x110], 1
inc dword [edi + 0x118]
xor eax, eax
mov word [edi + 0x11c], ax
mov eax, dword [edi + 0xf4]
test eax, eax
je 0x10082127
mov dword [eax + 0xc], 7
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.1006af10
mov eax, esi
mov ecx, dword [esp + 0x8c]
mov byte [edi + 0xa5], 0
pop edi
pop esi
xor ecx, esp
call fcn.100f99ca
mov esp, ebp
pop ebp
ret