Function at 0x10076470
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 0x10076b29
cmp byte [edi + 0x1d5], bl
jne 0x10076b29
cmp byte [ebp + 0x89], bl
jne 0x100764cd
lea eax, [edi + 4]
push eax
mov esi, ebp
call fcn.10087120
add esp, 4
cmp eax, ebx
je 0x100764cd
inc dword [edi + 0x44]
mov dword [edi + 0xc], eax
jmp 0x10076b29
cmp dword [esp + 0x6c], ebx
je 0x100765a7
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push edi
lea ecx, [esp + 0x24]
call fcn.10073ba0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
jl 0x10076b29
cmp byte [ebp + 0x89], bl
jne 0x1007652c
mov eax, dword [esp + 0x6c]
mov ebx, edi
call fcn.100789c0
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 4], 0
jne 0x1007652c
test eax, eax
je 0x1007652c
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 0x40]
cmp eax, dword [edx + 0x1c]
jne 0x1007652c
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.100725f0
add esp, 8
test eax, eax
je 0x1007655e
mov edx, dword [esp + 0x6c]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.10072630
add esp, 8
mov ecx, dword [esp + 0x6c]
add ecx, 8
push ecx
push 0
mov eax, edi
call fcn.10073360
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x10076b29
cmp dword [esp + 0x10], 1
jne 0x100765c7
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ebx + 0x40]
je 0x100765c7
mov ecx, dword [ebx]
push ecx
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
call fcn.10041d70
add esp, 8
jmp 0x10076b29
mov ebx, dword [edi + 0x1fc]
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x10076b29
mov esi, dword [ebx + 0x40]
mov ecx, ebp
call fcn.10087480
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 0x10102d08
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], ecx
call fcn.10041eb0
add esp, 0xc
test eax, eax
jne 0x1007661b
push 9
lea edx, [esi + 7]
push str.altertab_
push edx
call fcn.10041eb0
add esp, 0xc
test eax, eax
je 0x1007661b
push esi
push str.table__s_may_not_be_indexed
call fcn.10041d70
add esp, 8
jmp 0x10076b29
cmp dword [ebx + 0xc], 0
je 0x10076633
push str.views_may_not_be_indexed
call fcn.10041d70
add esp, 4
jmp 0x10076b29
test byte [ebx + 0x2a], 0x10
je 0x1007664b
push str.virtual_tables_may_not_be_indexed
call fcn.10041d70
add esp, 4
jmp 0x10076b29
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100766ee
push ebp
call fcn.100739c0
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
je 0x10076b29
mov eax, edi
call fcn.10073c30
test eax, eax
jne 0x10076b29
cmp byte [ebp + 0x89], al
jne 0x100766a7
push eax
push esi
push ebp
call fcn.100731d0
add esp, 0xc
test eax, eax
je 0x100766a7
push esi
push str.there_is_already_a_table_named__s
call fcn.10041d70
add esp, 8
jmp 0x10076b29
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ecx
push esi
mov ecx, ebp
call fcn.100733c0
add esp, 8
test eax, eax
je 0x10076727
cmp dword [esp + 0x84], 0
jne 0x100766da
push esi
push str.index__s_already_exists
call fcn.10041d70
add esp, 8
jmp 0x10076b29
mov edx, dword [esp + 0x10]
push edx
mov eax, edi
call fcn.100779b0
add esp, 4
jmp 0x10076b29
mov eax, dword [ebx + 8]
mov ecx, 1
test eax, eax
je 0x10076708
lea ebx, [ebx]
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x10076700
push ecx
push esi
push str.sqlite_autoindex__s__d
mov esi, ebp
call fcn.10041200
mov esi, eax
add esp, 0xc
mov dword [esp + 0x24], esi
test esi, esi
je 0x10076b29
cmp dword [esp + 0x10], 1
mov eax, dword [esp + 0x1c]
mov ebp, dword [eax]
mov eax, str.sqlite_temp_master
je 0x1007673e
mov eax, str.sqlite_master
push ebp
push 0
push eax
push 0x12
mov eax, edi
call fcn.10072b00
add esp, 0x10
test eax, eax
jne 0x10076b29
mov eax, 1
cmp dword [esp + 0x10], eax
jne 0x10076766
mov eax, 3
mov ecx, dword [ebx]
push ebp
push ecx
push esi
push eax
mov eax, edi
call fcn.10072b00
add esp, 0x10
test eax, eax
jne 0x10076b29
mov esi, dword [esp + 0x70]
test esi, esi
jne 0x100767da
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.10041ce0
mov dword [esp + 0x40], eax
push esi
xor ecx, ecx
mov eax, edi
call fcn.1006b590
mov esi, eax
add esp, 4
mov dword [esp + 0x70], esi
test esi, esi
je 0x10076b29
push 0
push edi
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.1006b630
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 0x1007680e
mov esi, dword [esi + 8]
mov edi, dword [esp + 0x28]
mov edx, ebx
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x10076802
mov ecx, dword [eax + 4]
call fcn.10041ce0
lea edi, [edi + eax + 1]
add esi, 0x18
sub edx, 1
jne 0x100767f0
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0x24]
call fcn.10041ce0
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.1003fe10
mov ebp, eax
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x40], 0
jne 0x10076b01
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 0x10076908
mov edx, dword [esp + 0x60]
push esi
push 0x10
push edx
xor ebx, ebx
mov eax, edi
call fcn.10069e50
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 0x10076a40
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 0x10076970
lea esp, [esp]
mov ecx, dword [esi]
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.10041e60
add esp, 8
test eax, eax
je 0x10076970
movsx eax, word [edi + 0x26]
inc ebx
add esi, 0x18
cmp ebx, eax
jl 0x10076950
movsx eax, word [edi + 0x26]
cmp ebx, eax
jge 0x10076b67
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 0x100769ba
mov ecx, dword [eax + 4]
call fcn.10041ce0
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 0x100769d4
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 0x100769d4
mov dword [esp + 0x28], str.BINARY
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x89], 0
jne 0x100769fa
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x60]
call fcn.100747e0
test eax, eax
je 0x10076b01
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 0x10076a2a
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 0x10076934
mov edx, ebp
call fcn.10076dd0
mov eax, dword [esp + 0x60]
cmp edi, dword [eax + 0x1fc]
jne 0x10076acc
mov esi, dword [edi + 8]
test esi, esi
je 0x10076acc
lea ebx, [ebx]
movzx eax, word [esi + 0x2c]
movzx ecx, word [ebp + 0x2c]
cmp ax, cx
jne 0x10076ac5
movzx eax, ax
xor ebx, ebx
mov dword [esp + 0x30], eax
test eax, eax
jle 0x10076abb
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 0x10076abb
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 0x10076ab2
push ecx
push eax
call fcn.10041e60
add esp, 8
test eax, eax
jne 0x10076abb
mov edx, dword [esp + 0x3c]
movzx eax, word [esi + 0x2c]
inc ebx
cmp ebx, eax
jl 0x10076a86
cmp ebx, dword [esp + 0x30]
je 0x10076b89
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x10076a60
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x89], 0
je 0x10076be7
mov ecx, dword [ebp]
push ebp
call fcn.10041ce0
push ecx
mov ecx, dword [ebp + 0x18]
add ecx, 0x18
call fcn.10043190
add esp, 8
test eax, eax
je 0x10076bc8
mov byte [esi + 0x40], 1
test ebp, ebp
je 0x10076b29
mov eax, dword [ebp + 0x24]
mov esi, dword [esp + 0x14]
push eax
push esi
call fcn.1006ab30
mov eax, dword [ebp + 0x10]
add esp, 8
mov ecx, esi
call fcn.1003fc10
mov eax, ebp
mov ecx, esi
call fcn.1003fc10
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x14]
push ecx
push esi
call fcn.1006ab30
mov edx, dword [esp + 0x78]
push edx
push esi
call fcn.1006b720
mov eax, dword [esp + 0x7c]
push eax
call fcn.10077390
mov eax, dword [esp + 0x38]
add esp, 0x14
mov ecx, esi
call fcn.1003fc10
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.10041d70
add esp, 0xc
mov byte [edi + 0x11], 1
jmp 0x10076b01
mov al, byte [esi + 0x2e]
mov cl, byte [ebp + 0x2e]
cmp al, cl
je 0x10076b01
cmp al, 0x63
je 0x10076bb3
cmp cl, 0x63
je 0x10076bb3
mov edi, dword [esp + 0x60]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.10041d70
add esp, 8
cmp byte [esi + 0x2e], 0x63
jne 0x10076b01
mov cl, byte [ebp + 0x2e]
mov byte [esi + 0x2e], cl
jmp 0x10076b01
or dword [esi + 0x18], 2
cmp dword [esp + 0x6c], 0
je 0x10076d5a
mov edx, esi
mov eax, dword [edx + 0x84]
mov dword [ebp + 0x28], eax
jmp 0x10076d5a
mov ecx, dword [esp + 0x60]
cmp dword [ecx + 0x44], 0
jne 0x10076d5a
mov ebx, ecx
inc dword [ebx + 0x4c]
mov edx, dword [ebx + 0x4c]
mov edi, ebx
mov dword [esp + 0x30], edx
call fcn.1008a360
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x10076b01
mov edi, dword [esp + 0x10]
push 1
mov eax, ebx
call fcn.10077b00
mov eax, dword [esi + 0x1c]
add esp, 4
cmp dword [esi + 0x20], eax
mov dword [esp + 0x3c], eax
jg 0x10076c3d
mov edi, esi
call fcn.1005b400
test eax, eax
jne 0x10076c6d
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 0x10076cbb
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 0x10076c90
dec eax
cmp dword [esp + 0x74], 0
mov edx, 0x10101d23
je 0x10076ca1
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.10041200
add esp, 0x10
mov esi, eax
jmp 0x10076cc1
mov edi, dword [esp + 0x14]
xor esi, esi
cmp dword [esp + 0x10], 1
mov eax, str.sqlite_temp_master
je 0x10076cd2
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.10073110
add esp, 0x1c
mov eax, esi
mov ecx, edi
call fcn.1003fc10
cmp dword [esp + 0x6c], 0
je 0x10076d5a
mov edx, dword [esp + 0x30]
push edx
push ebp
push ebx
call fcn.10075f10
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
mov esi, ebx
call fcn.10074850
mov ecx, dword [ebp]
add esp, 4
push ecx
push str.name_q_AND_typeindex
mov esi, edi
call fcn.10041200
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
push eax
push edx
call fcn.1005b5d0
push 0
push 0x84
mov eax, esi
call fcn.1005b530
add esp, 0x18
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x89], 0
jne 0x10076d72
cmp dword [esp + 0x6c], 0
jne 0x10076b01
mov ecx, dword [esp + 0x18]
mov edx, 5
cmp dword [esp + 0x74], edx
jne 0x10076db5
mov eax, dword [ecx + 8]
test eax, eax
je 0x10076db5
cmp byte [eax + 0x2e], dl
je 0x10076db5
cmp dword [eax + 0x14], 0
je 0x10076da3
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x2e], dl
je 0x10076da3
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x10076d93
mov ecx, dword [eax + 0x14]
mov dword [ebp + 0x14], ecx
mov dword [eax + 0x14], ebp
mov dword [esp + 0x38], ebp
jmp 0x10076b29
mov edx, dword [ecx + 8]
mov dword [ebp + 0x14], edx
mov dword [ecx + 8], ebp
mov dword [esp + 0x38], ebp
jmp 0x10076b29