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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x60]
mov ebp, dword [edi]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
cmp byte [ebp + 0x40], bl
jne 0x10076d59
cmp byte [edi + 0x1d5], bl
jne 0x10076d59
cmp byte [ebp + 0x89], bl
jne 0x100766fd
lea eax, [edi + 4]
push eax
mov esi, ebp
call fcn.10087370
add esp, 4
cmp eax, ebx
je 0x100766fd
inc dword [edi + 0x44]
mov dword [edi + 0xc], eax
jmp 0x10076d59
cmp dword [esp + 0x6c], ebx
je 0x100767d7
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push edi
lea ecx, [esp + 0x24]
call fcn.10073dd0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
jl 0x10076d59
cmp byte [ebp + 0x89], bl
jne 0x1007675c
mov eax, dword [esp + 0x6c]
mov ebx, edi
call fcn.10078bf0
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 4], 0
jne 0x1007675c
test eax, eax
je 0x1007675c
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 0x40]
cmp eax, dword [edx + 0x1c]
jne 0x1007675c
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push str.index
mov edx, edi
lea eax, [esp + 0x4c]
call fcn.10072820
add esp, 8
test eax, eax
je 0x1007678e
mov edx, dword [esp + 0x6c]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.10072860
add esp, 8
mov ecx, dword [esp + 0x6c]
add ecx, 8
push ecx
push 0
mov eax, edi
call fcn.10073590
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x10076d59
cmp dword [esp + 0x10], 1
jne 0x100767f7
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ebx + 0x40]
je 0x100767f7
mov ecx, dword [ebx]
push ecx
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
call fcn.10041f80
add esp, 8
jmp 0x10076d59
mov ebx, dword [edi + 0x1fc]
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x10076d59
mov esi, dword [ebx + 0x40]
mov ecx, ebp
call fcn.100876d0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebx]
shl eax, 4
push 7
add ecx, eax
push 0x10103d08
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], ecx
call fcn.100420c0
add esp, 0xc
test eax, eax
jne 0x1007684b
push 9
lea edx, [esi + 7]
push str.altertab_
push edx
call fcn.100420c0
add esp, 0xc
test eax, eax
je 0x1007684b
push esi
push str.table__s_may_not_be_indexed
call fcn.10041f80
add esp, 8
jmp 0x10076d59
cmp dword [ebx + 0xc], 0
je 0x10076863
push str.views_may_not_be_indexed
call fcn.10041f80
add esp, 4
jmp 0x10076d59
test byte [ebx + 0x2a], 0x10
je 0x1007687b
push str.virtual_tables_may_not_be_indexed
call fcn.10041f80
add esp, 4
jmp 0x10076d59
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1007691e
push ebp
call fcn.10073bf0
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
je 0x10076d59
mov eax, edi
call fcn.10073e60
test eax, eax
jne 0x10076d59
cmp byte [ebp + 0x89], al
jne 0x100768d7
push eax
push esi
push ebp
call fcn.10073400
add esp, 0xc
test eax, eax
je 0x100768d7
push esi
push str.there_is_already_a_table_named__s
call fcn.10041f80
add esp, 8
jmp 0x10076d59
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ecx
push esi
mov ecx, ebp
call fcn.100735f0
add esp, 8
test eax, eax
je 0x10076957
cmp dword [esp + 0x84], 0
jne 0x1007690a
push esi
push str.index__s_already_exists
call fcn.10041f80
add esp, 8
jmp 0x10076d59
mov edx, dword [esp + 0x10]
push edx
mov eax, edi
call fcn.10077be0
add esp, 4
jmp 0x10076d59
mov eax, dword [ebx + 8]
mov ecx, 1
test eax, eax
je 0x10076938
lea ebx, [ebx]
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x10076930
push ecx
push esi
push str.sqlite_autoindex__s__d
mov esi, ebp
call fcn.10041410
mov esi, eax
add esp, 0xc
mov dword [esp + 0x24], esi
test esi, esi
je 0x10076d59
cmp dword [esp + 0x10], 1
mov eax, dword [esp + 0x1c]
mov ebp, dword [eax]
mov eax, str.sqlite_temp_master
je 0x1007696e
mov eax, str.sqlite_master
push ebp
push 0
push eax
push 0x12
mov eax, edi
call fcn.10072d30
add esp, 0x10
test eax, eax
jne 0x10076d59
mov eax, 1
cmp dword [esp + 0x10], eax
jne 0x10076996
mov eax, 3
mov ecx, dword [ebx]
push ebp
push ecx
push esi
push eax
mov eax, edi
call fcn.10072d30
add esp, 0x10
test eax, eax
jne 0x10076d59
mov esi, dword [esp + 0x70]
test esi, esi
jne 0x10076a0a
movsx eax, word [ebx + 0x26]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edx*8 - 0x18]
mov dword [esp + 0x3c], ecx
call fcn.10041ef0
mov dword [esp + 0x40], eax
push esi
xor ecx, ecx
mov eax, edi
call fcn.1006b7c0
mov esi, eax
add esp, 4
mov dword [esp + 0x70], esi
test esi, esi
je 0x10076d59
push 0
push edi
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.1006b860
mov ecx, dword [esi + 8]
mov dl, byte [esp + 0x88]
add esp, 8
mov byte [ecx + 0xc], dl
mov ebx, dword [esi]
test ebx, ebx
jle 0x10076a3e
mov esi, dword [esi + 8]
mov edi, dword [esp + 0x28]
mov edx, ebx
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x10076a32
mov ecx, dword [eax + 4]
call fcn.10041ef0
lea edi, [edi + eax + 1]
add esi, 0x18
sub edx, 1
jne 0x10076a20
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0x24]
call fcn.10041ef0
mov edx, dword [esp + 0x28]
mov esi, eax
lea eax, [ebx*4 + 0xb]
and eax, 0xfffffff8
add eax, esi
lea ecx, [ebx + ebx*8]
add ecx, eax
mov eax, dword [esp + 0x14]
lea edi, [ecx + edx + 0x39]
call fcn.10040010
mov ebp, eax
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x40], 0
jne 0x10076d31
lea ecx, [ebx*4 + 8]
lea eax, [ebp + 0x38]
mov dword [ebp + 8], eax
and ecx, 0xfffffff8
add eax, ecx
mov dword [ebp + 0x20], eax
lea eax, [eax + ebx*4]
mov dword [ebp + 4], eax
lea eax, [eax + ebx*4]
add ebx, eax
lea edx, [ebx + esi + 1]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x24]
inc esi
push esi
push eax
push ebx
mov dword [ebp], ebx
mov dword [esp + 0x38], edx
call sub.MSVCR90.dll_memcpy
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x7c]
xor edx, edx
mov dword [ebp + 0xc], edi
mov cx, word [eax]
mov word [ebp + 0x2c], cx
mov ecx, dword [esp + 0x80]
add esp, 0xc
cmp ecx, 2
sete dl
mov byte [ebp + 0x2e], cl
xor ecx, ecx
mov esi, dword [esp + 0x7c]
and edx, 1
add edx, edx
add edx, edx
add edx, edx
cmp dword [esp + 0x20], ecx
sete cl
and ecx, 3
or edx, ecx
mov ecx, dword [ebp + 0x30]
and ecx, 0xfffffff4
or edx, ecx
mov dword [ebp + 0x30], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x10]
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + ecx + 0xc]
mov dword [ebp + 0x18], ecx
test esi, esi
je 0x10076b38
mov edx, dword [esp + 0x60]
push esi
push 0x10
push edx
xor ebx, ebx
mov eax, edi
call fcn.1006a080
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov dword [ebp + 0x24], esi
mov dword [esp + 0x7c], ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xc]
cmp byte [edx + 0x4c], 4
mov dword [esp + 0x30], 0
sbb ecx, ecx
neg ecx
dec ecx
cmp dword [eax], 0
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
jle 0x10076c70
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
mov esi, dword [edi + 4]
mov dword [esp + 0x28], eax
movsx eax, word [edi + 0x26]
xor ebx, ebx
test eax, eax
jle 0x10076ba0
lea esp, [esp]
mov ecx, dword [esi]
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.10042070
add esp, 8
test eax, eax
je 0x10076ba0
movsx eax, word [edi + 0x26]
inc ebx
add esi, 0x18
cmp ebx, eax
jl 0x10076b80
movsx eax, word [edi + 0x26]
cmp ebx, eax
jge 0x10076d97
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [ecx + edx*4], ebx
mov eax, dword [eax]
test eax, eax
je 0x10076bea
mov ecx, dword [eax + 4]
call fcn.10041ef0
mov esi, eax
inc esi
push esi
push ecx
mov ecx, dword [esp + 0x34]
push ecx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x28], eax
add eax, esi
mov dword [esp + 0x2c], eax
jmp 0x10076c04
mov eax, dword [edi + 4]
lea edx, [ebx + ebx*2]
mov eax, dword [eax + edx*8 + 0x10]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x10076c04
mov dword [esp + 0x28], str.BINARY
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x89], 0
jne 0x10076c2a
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x60]
call fcn.10074a10
test eax, eax
je 0x10076d31
mov edi, dword [esp + 0x18]
mov edx, dword [ebp + 0x20]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword [edx + esi*4], eax
mov dl, byte [ecx + 0xc]
and dl, byte [esp + 0x3c]
mov eax, dword [ebp + 0x1c]
mov byte [esi + eax], dl
mov edx, dword [edi + 4]
lea ecx, [ebx + ebx*2]
cmp byte [edx + ecx*8 + 0x14], 0
jne 0x10076c5a
and dword [ebp + 0x30], 0xfffffff7
mov eax, dword [esp + 0x70]
add dword [esp + 0x1c], 0x18
inc esi
cmp esi, dword [eax]
mov dword [esp + 0x30], esi
jl 0x10076b64
mov edx, ebp
call fcn.10077000
mov eax, dword [esp + 0x60]
cmp edi, dword [eax + 0x1fc]
jne 0x10076cfc
mov esi, dword [edi + 8]
test esi, esi
je 0x10076cfc
lea ebx, [ebx]
movzx eax, word [esi + 0x2c]
movzx ecx, word [ebp + 0x2c]
cmp ax, cx
jne 0x10076cf5
movzx eax, ax
xor ebx, ebx
mov dword [esp + 0x30], eax
test eax, eax
jle 0x10076ceb
mov edi, dword [ebp + 4]
mov edx, dword [esi + 4]
sub edx, edi
mov dword [esp + 0x3c], edx
lea eax, [edi + ebx*4]
mov ecx, dword [edx + eax]
cmp ecx, dword [eax]
jne 0x10076ceb
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp + 0x20]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ecx + ebx*4]
cmp eax, ecx
je 0x10076ce2
push ecx
push eax
call fcn.10042070
add esp, 8
test eax, eax
jne 0x10076ceb
mov edx, dword [esp + 0x3c]
movzx eax, word [esi + 0x2c]
inc ebx
cmp ebx, eax
jl 0x10076cb6
cmp ebx, dword [esp + 0x30]
je 0x10076db9
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x10076c90
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x89], 0
je 0x10076e17
mov ecx, dword [ebp]
push ebp
call fcn.10041ef0
push ecx
mov ecx, dword [ebp + 0x18]
add ecx, 0x18
call fcn.100433a0
add esp, 8
test eax, eax
je 0x10076df8
mov byte [esi + 0x40], 1
test ebp, ebp
je 0x10076d59
mov eax, dword [ebp + 0x24]
mov esi, dword [esp + 0x14]
push eax
push esi
call fcn.1006ad60
mov eax, dword [ebp + 0x10]
add esp, 8
mov ecx, esi
call fcn.1003fe10
mov eax, ebp
mov ecx, esi
call fcn.1003fe10
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x14]
push ecx
push esi
call fcn.1006ad60
mov edx, dword [esp + 0x78]
push edx
push esi
call fcn.1006b950
mov eax, dword [esp + 0x7c]
push eax
call fcn.100775c0
mov eax, dword [esp + 0x38]
add esp, 0x14
mov ecx, esi
call fcn.1003fe10
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [edi]
mov edi, dword [esp + 0x60]
push ecx
push edx
push str.table__s_has_no_column_named__s
call fcn.10041f80
add esp, 0xc
mov byte [edi + 0x11], 1
jmp 0x10076d31
mov al, byte [esi + 0x2e]
mov cl, byte [ebp + 0x2e]
cmp al, cl
je 0x10076d31
cmp al, 0x63
je 0x10076de3
cmp cl, 0x63
je 0x10076de3
mov edi, dword [esp + 0x60]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.10041f80
add esp, 8
cmp byte [esi + 0x2e], 0x63
jne 0x10076d31
mov cl, byte [ebp + 0x2e]
mov byte [esi + 0x2e], cl
jmp 0x10076d31
or dword [esi + 0x18], 2
cmp dword [esp + 0x6c], 0
je 0x10076f8a
mov edx, esi
mov eax, dword [edx + 0x84]
mov dword [ebp + 0x28], eax
jmp 0x10076f8a
mov ecx, dword [esp + 0x60]
cmp dword [ecx + 0x44], 0
jne 0x10076f8a
mov ebx, ecx
inc dword [ebx + 0x4c]
mov edx, dword [ebx + 0x4c]
mov edi, ebx
mov dword [esp + 0x30], edx
call fcn.1008a5b0
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x10076d31
mov edi, dword [esp + 0x10]
push 1
mov eax, ebx
call fcn.10077d30
mov eax, dword [esi + 0x1c]
add esp, 4
cmp dword [esi + 0x20], eax
mov dword [esp + 0x3c], eax
jg 0x10076e6d
mov edi, esi
call fcn.1005b630
test eax, eax
jne 0x10076e9d
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x6e
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
cmp dword [esp + 0x78], 0
je 0x10076eeb
mov eax, dword [ebx + 0x214]
add eax, dword [ebx + 0x210]
mov ecx, dword [esp + 0x20]
sub eax, dword [ecx]
mov ecx, dword [ecx]
cmp byte [ecx + eax - 1], 0x3b
jne 0x10076ec0
dec eax
cmp dword [esp + 0x74], 0
mov edx, 0x10102d23
je 0x10076ed1
mov edx, str._UNIQUE
mov edi, dword [esp + 0x14]
push ecx
push eax
push edx
push str.CREATE_s_INDEX__.s
mov esi, edi
call fcn.10041410
add esp, 0x10
mov esi, eax
jmp 0x10076ef1
mov edi, dword [esp + 0x14]
xor esi, esi
cmp dword [esp + 0x10], 1
mov eax, str.sqlite_temp_master
je 0x10076f02
mov eax, str.sqlite_master
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push esi
push edx
mov edx, dword [ecx]
mov ecx, dword [ebp]
push edx
mov edx, dword [edi + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + edx]
push ecx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
call fcn.10073340
add esp, 0x1c
mov eax, esi
mov ecx, edi
call fcn.1003fe10
cmp dword [esp + 0x6c], 0
je 0x10076f8a
mov edx, dword [esp + 0x30]
push edx
push ebp
push ebx
call fcn.10076140
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
mov esi, ebx
call fcn.10074a80
mov ecx, dword [ebp]
add esp, 4
push ecx
push str.name_q_AND_typeindex
mov esi, edi
call fcn.10041410
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
push eax
push edx
call fcn.1005b800
push 0
push 0x84
mov eax, esi
call fcn.1005b760
add esp, 0x18
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x89], 0
jne 0x10076fa2
cmp dword [esp + 0x6c], 0
jne 0x10076d31
mov ecx, dword [esp + 0x18]
mov edx, 5
cmp dword [esp + 0x74], edx
jne 0x10076fe5
mov eax, dword [ecx + 8]
test eax, eax
je 0x10076fe5
cmp byte [eax + 0x2e], dl
je 0x10076fe5
cmp dword [eax + 0x14], 0
je 0x10076fd3
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x2e], dl
je 0x10076fd3
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x10076fc3
mov ecx, dword [eax + 0x14]
mov dword [ebp + 0x14], ecx
mov dword [eax + 0x14], ebp
mov dword [esp + 0x38], ebp
jmp 0x10076d59
mov edx, dword [ecx + 8]
mov dword [ebp + 0x14], edx
mov dword [ecx + 8], ebp
mov dword [esp + 0x38], ebp
jmp 0x10076d59