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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ecx
cmp byte [eax + 0x41], cl
jne 0x10041d45
mov ecx, dword [esp + 0x58]
cmp byte [ecx + 0x1bf], 0
jne 0x10041d45
mov edx, ecx
cmp dword [edx + 0x40], 0
jg 0x10041d45
mov esi, ecx
call fcn.1000b050
test eax, eax
jne 0x10041d45
push ebx
push edi
cmp dword [esp + 0x6c], eax
je 0x1004183e
mov eax, dword [esp + 0x64]
push eax
mov ecx, esi
push ecx
lea ecx, [esp + 0x34]
mov eax, ebp
call fcn.10020840
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jl 0x10041d43
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x91], 0
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x6c]
jne 0x100417bd
push ebx
mov eax, edi
call fcn.1002be50
add esp, 4
cmp dword [ebp + 4], 0
jne 0x100417bd
test eax, eax
je 0x100417bd
mov edx, dword [esi + 0x10]
mov eax, dword [eax + 0x40]
cmp eax, dword [edx + 0x1c]
jne 0x100417bd
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
push ecx
push str.index
mov ecx, ebx
lea eax, [esp + 0x4c]
call fcn.10009e30
mov edx, eax
push edi
push edx
call fcn.100318e0
add edi, 8
push edi
push 0
push ebx
call fcn.100207f0
add esp, 0x1c
mov dword [esp + 0x10], eax
test eax, eax
je 0x10041d43
mov ebx, dword [esp + 0x14]
mov edx, esi
mov edi, eax
cmp edx, 1
jne 0x1004182b
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [edi + 0x40]
je 0x1004182b
mov edx, dword [edi]
mov edi, dword [esp + 0x60]
push edx
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
call fcn.1001d580
add esp, 8
jmp 0x10041d43
test byte [edi + 0x2a], 0x20
je 0x10041868
mov eax, edi
call fcn.1000a180
mov dword [esp + 0x30], eax
jmp 0x10041868
mov eax, esi
mov eax, dword [eax + 0x1e0]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10041d43
mov ebx, dword [esp + 0x14]
mov edi, eax
mov esi, dword [edi + 0x40]
mov ecx, ebx
call fcn.1000b080
mov edx, eax
mov dword [esp + 0x18], edx
mov ebp, dword [ebx + 0x10]
mov esi, dword [edi]
mov eax, edx
shl eax, 4
push 7
add ebp, eax
push str.sqlite_
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebp
call sym.idmindex.dll_sqlite3_strnicmp
add esp, 0xc
test eax, eax
jne 0x100418c6
cmp byte [ebx + 0x91], al
jne 0x100418c6
push 9
lea ecx, [esi + 7]
push str.altertab_
push ecx
call sym.idmindex.dll_sqlite3_strnicmp
add esp, 0xc
test eax, eax
je 0x100418c6
mov edi, dword [esp + 0x60]
push esi
push str.table__s_may_not_be_indexed
call fcn.1001d580
add esp, 8
jmp 0x10041d43
cmp dword [edi + 0xc], 0
je 0x100418e2
mov edi, dword [esp + 0x60]
push str.views_may_not_be_indexed
call fcn.1001d580
add esp, 4
jmp 0x10041d43
test byte [edi + 0x2a], 0x10
je 0x100418fe
mov edi, dword [esp + 0x60]
push str.virtual_tables_may_not_be_indexed
call fcn.1001d580
add esp, 4
jmp 0x10041d43
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100419aa
push ebx
call fcn.10013550
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10041d43
mov esi, eax
mov eax, dword [esp + 0x60]
call fcn.100208b0
test eax, eax
jne 0x10041d43
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x91], al
jne 0x10041964
push eax
push esi
push edi
call fcn.10009f50
add esp, 0xc
test eax, eax
je 0x10041964
mov edi, dword [esp + 0x60]
push esi
push str.there_is_already_a_table_named__s
call fcn.1001d580
add esp, 8
jmp 0x10041d43
mov edx, dword [ebp]
push edx
push esi
mov eax, edi
call fcn.10009fc0
add esp, 8
test eax, eax
je 0x100419db
cmp dword [esp + 0x84], 0
jne 0x10041998
mov edi, dword [esp + 0x60]
push esi
push str.index__s_already_exists
call fcn.1001d580
add esp, 8
jmp 0x10041d43
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x60]
call fcn.1003d200
jmp 0x10041d43
mov eax, dword [edi + 8]
mov ecx, 1
test eax, eax
je 0x100419be
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x100419b6
push ecx
push esi
push str.sqlite_autoindex__s__d
mov esi, ebx
call fcn.1001d320
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10041d43
cmp dword [esp + 0x18], 1
mov esi, dword [ebp]
mov eax, str.sqlite_temp_master
je 0x100419ef
mov eax, str.sqlite_master
push esi
push 0
push eax
mov eax, dword [esp + 0x6c]
push 0x12
call fcn.10020620
add esp, 0x10
test eax, eax
jne 0x10041d43
mov eax, 1
cmp dword [esp + 0x18], eax
jne 0x10041a19
mov eax, 3
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x1c]
push esi
push edx
push ecx
push eax
mov eax, dword [esp + 0x70]
call fcn.10020620
add esp, 0x10
test eax, eax
jne 0x10041d43
mov edi, dword [esp + 0x70]
test edi, edi
jne 0x10041a97
mov eax, dword [esp + 0x60]
push edi
xor ecx, ecx
call fcn.10017330
add esp, 4
mov dword [esp + 0x70], eax
test eax, eax
je 0x10041d43
mov ecx, dword [esp + 0x10]
movsx eax, word [ecx + 0x22]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + edx*8 - 0x18]
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
push ecx
push eax
call fcn.1000e430
mov edi, dword [esp + 0x78]
mov ecx, dword [edi + 4]
mov dword [ecx + 4], eax
mov edx, dword [edi + 4]
mov al, byte [esp + 0x88]
add esp, 8
mov byte [edx + 0xc], al
mov eax, dword [edi]
test eax, eax
jle 0x10041ac4
mov esi, dword [edi + 4]
mov ebp, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esi]
test eax, eax
je 0x10041ab8
mov eax, dword [eax + 8]
call fcn.10002170
lea ebp, [eax + ebp + 1]
add esi, 0x18
sub ebx, 1
jne 0x10041aa6
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x1c]
call fcn.10002170
mov esi, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10041add
movzx eax, word [eax + 0x2e]
jmp 0x10041ae2
mov eax, 1
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + edx + 1]
mov dx, word [edi]
mov edi, dword [esp + 0x18]
add dx, ax
movzx eax, dx
push eax
push edi
call fcn.10017650
add esp, 0xc
cmp byte [edi + 0x41], 0
mov ebp, eax
jne 0x10041d34
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + esi + 1]
inc esi
push esi
push edx
push eax
mov dword [ebp], eax
mov dword [esp + 0x2c], ecx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x80]
xor edx, edx
add esp, 0xc
test ecx, ecx
setne dl
mov eax, dword [esp + 0x10]
mov byte [ebp + 0x32], cl
xor ecx, ecx
mov esi, dword [esp + 0x7c]
mov dword [ebp + 0xc], eax
and edx, 1
add edx, edx
add edx, edx
add edx, edx
cmp dword [esp + 0x2c], ecx
sete cl
and ecx, 3
or edx, ecx
mov ecx, dword [ebp + 0x34]
and ecx, 0xfffffff4
or edx, ecx
mov dword [ebp + 0x34], edx
mov edx, edi
mov ecx, dword [edx + 0x10]
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + ecx + 0xc]
mov edi, dword [esp + 0x70]
mov dword [ebp + 0x18], ecx
mov dx, word [edi]
mov word [ebp + 0x2e], dx
test esi, esi
je 0x10041bab
mov ecx, dword [esp + 0x60]
push 0
push esi
push 0x10
push ecx
call fcn.1002b440
add esp, 0x10
mov dword [ebp + 0x24], esi
mov dword [esp + 0x7c], 0
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0xc]
cmp byte [eax + 0x4c], 4
mov ecx, dword [edi + 4]
sbb eax, eax
neg eax
xor esi, esi
dec eax
cmp dword [edi], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ecx
jle 0x10041ccc
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
mov esi, dword [esp + 0x10]
mov edi, dword [esi + 4]
mov dword [esp + 0x38], eax
movsx eax, word [esi + 0x22]
xor ebx, ebx
test eax, eax
jle 0x10041c10
mov ecx, dword [edi]
mov edx, dword [esp + 0x38]
push ecx
push edx
call sym.idmindex.dll_sqlite3_stricmp
add esp, 8
test eax, eax
je 0x10041c10
movsx eax, word [esi + 0x22]
inc ebx
add edi, 0x18
cmp ebx, eax
jl 0x10041bf0
movsx eax, word [esi + 0x22]
cmp ebx, eax
jge 0x10041d13
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov word [ecx + edx*2], bx
mov eax, dword [eax]
test eax, eax
je 0x10041c53
mov esi, dword [eax + 8]
mov eax, esi
call fcn.10002170
mov edi, eax
inc edi
push edi
push esi
mov esi, dword [esp + 0x28]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [esp + 0x20], edi
jmp 0x10041c66
mov edx, dword [esi + 4]
lea ecx, [ebx + ebx*2]
mov esi, dword [edx + ecx*8 + 0x10]
test esi, esi
jne 0x10041c66
mov esi, str.BINARY
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x91], 0
jne 0x10041c84
mov edi, dword [esp + 0x60]
call fcn.1002bd00
test eax, eax
je 0x10041d34
mov ecx, dword [ebp + 0x20]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [ecx + edi*4], esi
mov al, byte [edx + 0xc]
and al, byte [esp + 0x40]
mov ecx, dword [ebp + 0x1c]
mov byte [edi + ecx], al
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
lea edx, [ebx + ebx*2]
cmp byte [ecx + edx*8 + 0x14], 0
jne 0x10041cb4
and dword [ebp + 0x34], 0xfffffff7
mov edx, dword [esp + 0x70]
add dword [esp + 0x24], 0x18
inc edi
cmp edi, dword [edx]
mov dword [esp + 0x28], edi
jl 0x10041bd4
mov esi, edi
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x10041db1
xor eax, eax
xor edi, edi
cmp ax, word [ebx + 0x2e]
jae 0x10041dc5
mov ecx, dword [ebx + 4]
movsx edx, word [ecx + edi*2]
mov ecx, dword [ebp + 4]
movzx eax, word [ebp + 0x2e]
push ecx
call fcn.1000a300
add esp, 4
test eax, eax
je 0x10041d82
mov edx, 0xffff
add word [ebp + 0x30], dx
jmp 0x10041da2
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edi, dword [esp + 0x60]
push eax
push edx
push str.table__s_has_no_column_named__s
call fcn.1001d580
add esp, 0xc
mov byte [edi + 0x11], 1
test ebp, ebp
je 0x10041d43
mov edi, dword [esp + 0x14]
mov esi, ebp
call fcn.10013430
pop edi
pop ebx
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0xc]
push eax
push esi
call fcn.10012ab0
mov ecx, dword [esp + 0x70]
push ecx
push esi
call fcn.10012d50
mov edx, dword [esp + 0x74]
push edx
push esi
call fcn.1000a550
mov edx, dword [esp + 0x2c]
add esp, 0x18
mov ecx, esi
call fcn.10001ed0
mov eax, dword [esp + 0x2c]
pop esi
pop ebp
add esp, 0x4c
ret
mov eax, dword [ebp + 4]
mov word [eax + esi*2], dx
mov eax, dword [ebx + 0x20]
mov edx, dword [eax + edi*4]
mov ecx, dword [ebp + 0x20]
mov dword [ecx + esi*4], edx
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp + 0x1c]
mov dl, byte [edi + eax]
mov byte [esi + ecx], dl
inc esi
movzx eax, word [ebx + 0x2e]
inc edi
cmp edi, eax
jl 0x10041ce6
jmp 0x10041dc5
mov ecx, dword [ebp + 4]
or edx, 0xffffffff
mov word [ecx + esi*2], dx
mov eax, dword [ebp + 0x20]
mov dword [eax + esi*4], str.BINARY
mov esi, ebp
call fcn.1000a3a0
mov ecx, dword [esp + 0x60]
cmp dword [ecx + 0x1e0], 0
jne 0x10041de0
mov edi, ebp
call fcn.1000a2a0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x60]
cmp edx, dword [eax + 0x1e0]
jne 0x10041e6a
mov ecx, edx
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x10041e6a
lea ecx, [ecx]
movzx eax, word [ebx + 0x2e]
movzx ecx, word [ebp + 0x2e]
cmp ax, cx
jne 0x10041e63
movzx eax, ax
xor esi, esi
mov dword [esp + 0x38], eax
test eax, eax
jle 0x10041e5d
mov edi, dword [ebp + 4]
mov edx, dword [ebx + 4]
sub edx, edi
mov dword [esp + 0x40], edx
mov ax, word [edx + edi]
cmp ax, word [edi]
jne 0x10041e5d
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx + esi*4]
mov ecx, dword [ebp + 0x20]
mov ecx, dword [ecx + esi*4]
cmp eax, ecx
je 0x10041e51
push ecx
push eax
call sym.idmindex.dll_sqlite3_stricmp
add esp, 8
test eax, eax
jne 0x10041e5d
mov edx, dword [esp + 0x40]
movzx eax, word [ebx + 0x2e]
inc esi
add edi, 2
cmp esi, eax
jl 0x10041e26
cmp esi, dword [esp + 0x38]
je 0x10041e98
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x10041e00
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x91], 0
je 0x10041ef0
mov edx, dword [ebp]
mov ecx, dword [ebp + 0x18]
push edx
add ecx, 0x18
mov eax, ebp
call fcn.1000ecb0
add esp, 4
test eax, eax
je 0x10041ed3
mov byte [esi + 0x41], 1
jmp 0x10041d34
mov al, byte [ebx + 0x32]
mov cl, byte [ebp + 0x32]
cmp al, cl
je 0x10041eca
cmp al, 0xa
je 0x10041ebe
cmp cl, 0xa
je 0x10041ebe
mov edi, dword [esp + 0x60]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.1001d580
add esp, 8
cmp byte [ebx + 0x32], 0xa
jne 0x10041eca
mov cl, byte [ebp + 0x32]
mov byte [ebx + 0x32], cl
mov dword [esp + 0x34], ebx
jmp 0x10041d34
or dword [esi + 0x18], 2
cmp dword [esp + 0x6c], 0
je 0x10042058
mov eax, dword [esi + 0x8c]
mov dword [ebp + 0x28], eax
jmp 0x10042058
mov eax, dword [esp + 0x60]
cmp dword [eax + 0x40], 0
jne 0x10042058
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x2a], 0x20
je 0x10041f13
cmp dword [esp + 0x6c], 0
je 0x10042058
inc dword [eax + 0x48]
mov edx, dword [eax + 0x48]
mov dword [esp + 0x30], edx
call fcn.10017ea0
mov dword [esp + 0x28], eax
test eax, eax
je 0x10041d34
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x18]
push 1
mov edx, ebx
call fcn.1003d2a0
mov esi, dword [esp + 0x2c]
mov eax, 0x9f
call fcn.10011450
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x34]
push 0x79
mov ecx, edi
call fcn.10011470
add esp, 8
cmp dword [esp + 0x78], 0
je 0x10041fac
mov eax, dword [ebx + 0x1f8]
add eax, dword [ebx + 0x1f4]
mov ecx, dword [esp + 0x2c]
sub eax, dword [ecx]
mov ecx, dword [ecx]
cmp byte [eax + ecx - 1], 0x3b
jne 0x10041f83
dec eax
cmp dword [esp + 0x74], 0
mov edx, 0x1005bafa
je 0x10041f94
mov edx, str._UNIQUE
mov esi, dword [esp + 0x14]
push ecx
push eax
push edx
push str.CREATE_s_INDEX__.s
call fcn.1001d320
add esp, 0x10
mov edi, eax
jmp 0x10041fb2
mov esi, dword [esp + 0x14]
xor edi, edi
cmp dword [esp + 0x18], 1
mov eax, str.sqlite_temp_master
je 0x10041fc3
mov eax, str.sqlite_master
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push edi
push ecx
mov ecx, dword [edx]
mov edx, dword [ebp]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
mov eax, dword [esi + 0x10]
mov edx, dword [ecx + eax]
push edx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
push ebx
call fcn.100206b0
add esp, 0x20
mov edx, edi
mov ecx, esi
call fcn.10001ed0
cmp dword [esp + 0x6c], 0
je 0x10042044
mov eax, dword [esp + 0x30]
push eax
push ebx
mov eax, ebp
call fcn.100359d0
mov ecx, dword [esp + 0x20]
push ecx
mov edi, ebx
call fcn.10013730
mov edx, dword [ebp]
push edx
push str.name_q_AND_typeindex
call fcn.1001d320
mov esi, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x30]
mov ecx, esi
call fcn.10015f50
add esp, 0x18
xor eax, eax
mov ecx, 0x93
call fcn.10011460
mov eax, dword [ebp + 0x28]
mov esi, dword [esp + 0x28]
push eax
call fcn.100079d0
mov esi, dword [esp + 0x18]
add esp, 4
cmp byte [esi + 0x91], 0
jne 0x1004206c
cmp dword [esp + 0x6c], 0
jne 0x10041d34
mov ecx, dword [esp + 0x10]
mov edx, 5
cmp dword [esp + 0x74], edx
jne 0x100420b2
mov eax, dword [ecx + 8]
test eax, eax
je 0x100420b2
cmp byte [eax + 0x32], dl
je 0x100420b2
cmp dword [eax + 0x14], 0
je 0x100420a0
lea ecx, [ecx]
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x32], dl
je 0x100420a0
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x10042090
mov ecx, dword [eax + 0x14]
mov dword [ebp + 0x14], ecx
mov dword [eax + 0x14], ebp
mov dword [esp + 0x34], ebp
jmp 0x10041d43
mov edx, dword [ecx + 8]
mov dword [ebp + 0x14], edx
mov dword [ecx + 8], ebp
mov dword [esp + 0x34], ebp
jmp 0x10041d43