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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
mov dword [esp + 0x14], eax
mov edx, str.sqlite_temp_master
mov dword [esp + 0x18], edi
mov esi, dword [edi]
mov dword [esp + 0x10], esi
cmp byte [esi + 0xb1], 0
je 0x10069c6d
cmp dword [esi + 0xac], 1
jne 0x10069c6d
movzx ebx, byte [esi + 0xb0]
mov eax, str.sqlite_master
cmp ebx, 1
cmove eax, edx
mov ecx, eax
mov dword [esp + 0x1c], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10069c30
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, esi
push eax
mov dword [esp + 0x28], eax
call fcn.1001d1c0
mov esi, eax
add esp, 8
test esi, esi
je 0x10069d71
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call fcn.10107690
add esp, 0xc
jmp 0x10069d71
lea ecx, [esp + 0x20]
mov edx, eax
push ecx
push dword [ebp + 8]
mov ecx, edi
call fcn.10069840
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x1006a56e
cmp dword [ebp + 0xc], 0
je 0x10069cb9
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jbe 0x10069cb4
cmp ebx, 1
je 0x10069cb4
push str.temporary_table_name_must_be_unqualified
push edi
call fcn.10020b80
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 1
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10069d1c
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
test eax, eax
je 0x10069d11
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, esi
call fcn.1001d1c0
mov esi, eax
add esp, 8
test esi, esi
je 0x10069d13
push dword [esp + 0x1c]
push dword [esp + 0x24]
push esi
call fcn.10107690
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, esi
mov byte [eax + esi], 0
call fcn.10020c10
jmp 0x10069d1e
xor esi, esi
mov ecx, esi
call fcn.10020c10
jmp 0x10069d1e
xor esi, esi
mov al, byte [edi + 0xd8]
cmp al, 2
jb 0x10069d71
cmp al, 3
je 0x10069d71
mov ecx, dword [edi]
push 0
push 0x10
test ecx, ecx
je 0x10069d3d
call fcn.1001d1c0
jmp 0x10069d42
call fcn.1001cb50
mov edx, eax
add esp, 8
test edx, edx
je 0x10069d71
mov ecx, dword [esp + 0x14]
xorps xmm0, xmm0
movups xmmword [edx], xmm0
mov dword [edx], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov eax, dword [edi + 0x114]
mov dword [edx + 0xc], eax
mov dword [edi + 0x114], edx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0xc4], eax
mov dword [edi + 0xc8], ecx
test esi, esi
je 0x1006a56e
cmp dword [ebp + 0x10], 0
mov ecx, str.table
mov eax, str.view
mov edx, esi
cmove eax, ecx
mov ecx, edi
push esi
push eax
call fcn.100698d0
add esp, 8
test eax, eax
jne 0x1006a55d
mov eax, 1
mov edx, ebx
mov ecx, eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
cmp byte [eax + 0xb0], cl
mov eax, dword [eax + 0x10]
cmovne ecx, dword [ebp + 0xc]
shl edx, 4
cmp ecx, 1
mov dword [esp + 0x24], ecx
mov ecx, str.sqlite_temp_master
mov dword [esp + 0x1c], edx
mov eax, dword [edx + eax]
mov edx, 0x12
push eax
mov dword [esp + 0x24], eax
mov eax, str.sqlite_master
cmove eax, ecx
mov ecx, edi
push 0
push eax
call fcn.10067f00
add esp, 0xc
test eax, eax
jne 0x1006a55d
cmp dword [ebp + 0x14], eax
jne 0x10069e3c
push dword [esp + 0x20]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
push esi
movzx edx, byte [eax + ecx*2 + 0x1012c908]
mov ecx, edi
call fcn.10067f00
add esp, 0xc
test eax, eax
jne 0x1006a55d
cmp byte [edi + 0xd8], 0
jne 0x10069f11
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov eax, dword [ecx + eax]
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.10089a50
test eax, eax
jne 0x1006a55d
push dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.10068950
add esp, 4
test eax, eax
je 0x10069ee7
cmp dword [ebp + 0x18], 0
jne 0x10069eb0
mov ecx, dword [esp + 0x14]
cmp byte [eax + 0x2b], 2
mov eax, str.view
push ecx
mov ecx, str.table
cmovne eax, ecx
push eax
push str._s__T_already_exists
push edi
call fcn.10020b80
add esp, 0x10
jmp 0x1006a55d
mov eax, dword [edi + 0x78]
mov edx, edi
test eax, eax
mov ecx, ebx
cmovne edx, eax
shl dword [esp + 0xc], cl
mov eax, dword [edx + 0x58]
test dword [esp + 0xc], eax
jne 0x10069edb
bts eax, ebx
mov dword [edx + 0x58], eax
cmp ebx, 1
jne 0x10069edb
mov ecx, edx
call fcn.10070df0
mov ecx, edi
call fcn.10069b40
jmp 0x1006a55d
push dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.10068ee0
add esp, 4
test eax, eax
je 0x10069f11
push esi
push str.there_is_already_an_index_named__s
push edi
call fcn.10020b80
add esp, 0xc
jmp 0x1006a55d
mov ecx, dword [esp + 0x10]
push 0
push 0x40
call fcn.1001d1c0
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x1006a553
push 0x40
push 0
push eax
call fcn.10106200
mov edx, dword [esp + 0x30]
or eax, 0xffffffff
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [edx], esi
mov esi, dword [esp + 0x1c]
mov word [edx + 0x20], ax
mov eax, dword [ecx + 0x10]
mov eax, dword [esi + eax + 0xc]
mov dword [edx + 0x3c], eax
mov eax, 0xc8
mov dword [edx + 0x18], 1
mov word [edx + 0x26], ax
mov dword [edi + 0xf4], edx
cmp byte [ecx + 0xb1], 0
jne 0x1006a56e
mov esi, dword [edi + 8]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x10069fad
cmp dword [edi + 0x78], esi
jne 0x10069f98
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x10069f98
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.1003f600
mov esi, eax
mov dword [esp + 0x14], eax
test esi, esi
je 0x1006a56e
mov eax, dword [edi + 0x78]
mov edx, edi
test eax, eax
mov ecx, ebx
cmovne edx, eax
shl dword [esp + 0xc], cl
mov dword [esp + 0x24], edx
mov eax, dword [edx + 0x58]
test dword [esp + 0xc], eax
jne 0x10069fe0
bts eax, ebx
mov dword [edx + 0x58], eax
cmp ebx, 1
jne 0x10069fe0
mov ecx, edx
call fcn.10070df0
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x54]
or byte [edx + 0x14], 1
bts eax, ebx
cmp dword [ebp + 0x14], 0
mov dword [edx + 0x54], eax
je 0x1006a045
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1006a012
push 0
push 0
push 0
mov edx, 0xaa
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006a045
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xaa
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x2c]
inc eax
mov dword [edi + 0x5c], eax
mov dword [esp + 0xc], eax
inc eax
mov dword [edi + 0x60], eax
lea edx, [eax + 1]
mov dword [edi + 0x2c], edx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1006a077
push 2
push edx
push ebx
mov edx, 0x63
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006a0a2
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x63
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 2
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x9c]
bts eax, ebx
mov dword [esi + 0x9c], eax
cmp ebx, 1
je 0x1006a0d8
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx + 4]
cmp byte [eax + 9], 0
je 0x1006a0d8
mov eax, dword [esi + 0xa0]
bts eax, ebx
mov dword [esi + 0xa0], eax
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x20], edx
cmp dword [esi + 0x70], edx
jg 0x1006a105
mov edx, dword [esp + 0xc]
mov ecx, esi
push 0
add edx, 2
push 0
push edx
mov edx, 0x10
call fcn.1003f7e0
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x1006a143
mov edi, dword [esp + 0x18]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
add edx, 2
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
mov edx, 1
mov eax, dword [eax + 0x20]
and eax, 2
or eax, 0
jne 0x1006a15c
mov edx, 4
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1006a179
push edx
push 2
push ebx
mov edx, 0x64
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006a1a8
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 2
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x6c]
movzx edx, byte [eax + 0x54]
cmp dword [esi + 0x70], ecx
jg 0x1006a1cd
push edx
push 5
push ebx
mov edx, 0x64
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006a1fc
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 5
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x1006a20e
mov eax, 0x10143a20
jmp 0x1006a21b
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
cmp dword [ebp + 0x10], 0
mov dword [eax + 8], edx
jne 0x1006a297
cmp dword [ebp + 0x14], 0
jne 0x1006a297
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x1006a257
mov eax, dword [esp + 0xc]
mov edx, 0x93
push 1
inc eax
mov ecx, esi
push eax
push ebx
call fcn.1003f7e0
mov edx, eax
add esp, 0xc
mov dword [edi + 0x88], edx
jmp 0x1006a2f2
mov edi, dword [esp + 0xc]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
inc edi
mov esi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x93
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
mov dword [edi + 0x88], edx
jmp 0x1006a2f2
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1006a2ba
mov eax, dword [esp + 0xc]
mov edx, 0x47
push 0
inc eax
mov ecx, esi
push eax
push 0
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006a2f2
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
inc edx
mov esi, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 8]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1006a319
cmp dword [edi + 0x78], eax
jne 0x1006a30e
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x1006a30e
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.1003f600
mov dword [esp + 0x18], eax
cmp ebx, 1
je 0x1006a346
mov ecx, dword [edi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + eax + 4]
cmp byte [ecx + 9], 0
je 0x1006a346
push str.sqlite_master
push 1
push 1
mov edx, ebx
mov ecx, edi
call fcn.10067f90
add esp, 0xc
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x6c]
mov dword [esp + 0x24], ecx
cmp dword [edx + 0x70], ecx
jg 0x1006a374
mov ecx, dword [esp + 0x18]
mov edx, 0x71
push ebx
push 1
push 0
call fcn.1003f7e0
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, eax
jmp 0x1006a3ab
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x68]
mov dword [eax + ecx*4], 0x71
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x24]
mov eax, dword [edx]
cmp byte [eax + 0x57], 0
jne 0x1006a3c6
mov eax, dword [edx + 0x68]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], 5
cmp dword [edi + 0x28], 0
jne 0x1006a3d3
mov dword [edi + 0x28], 1
mov ecx, dword [esi + 0x6c]
mov edi, dword [esp + 0xc]
cmp dword [esi + 0x70], ecx
jg 0x1006a3f5
push 0
push edi
push 0
mov edx, 0x7f
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006a424
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x1006a447
push 0
lea ebx, [edi + 2]
mov edx, 0x4d
push ebx
push 6
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
mov edx, eax
jmp 0x1006a485
mov ebx, dword [esp + 0xc]
lea eax, [edx + 1]
mov edi, dword [esp + 0xc]
lea ecx, [edx + edx*4]
mov dword [esi + 0x6c], eax
add ebx, 2
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x4d
mov dword [eax + ecx*4 + 4], 6
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xffffffffffffffff
push 0x1012ac08
mov ecx, esi
call fcn.10040430
mov ecx, dword [esi + 0x6c]
add esp, 8
cmp dword [esi + 0x70], ecx
jg 0x1006a4b3
push edi
push ebx
push 0
mov edx, 0x80
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006a4de
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
test ecx, ecx
jle 0x1006a4f8
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
mov edx, 8
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x1006a519
push 0
push 0
push 0
mov edx, 0x7a
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x7a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc dword [edi + 0x24]
mov dword [edi + 0xc], 7
push esi
push dword [esp + 0x14]
mov byte [edi + 0x11], 1
call fcn.1001ce80
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret