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

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
xor ecx, ecx
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], ecx
cmp byte [eax + 0x41], cl
jne 0x4775d3
mov ecx, dword [esp + 0x68]
cmp byte [ecx + 0x1bf], 0
jne 0x4775d3
mov edx, ecx
cmp dword [edx + 0x40], 0
jg 0x4775d3
cmp byte [eax + 0x91], 0
mov esi, ecx
jne 0x476fcc
lea ecx, [esi + 4]
push ecx
push eax
call fcn.00489690
add esp, 8
test eax, eax
je 0x476fcc
inc dword [esi + 0x40]
mov dword [esi + 0xc], eax
jmp 0x4775d3
cmp dword [esp + 0x74], 0
je 0x4770b5
push esi
mov esi, dword [esp + 0x70]
lea ecx, [esp + 0x38]
mov eax, ebp
call fcn.00473d60
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jl 0x4775d3
mov esi, dword [esp + 0x18]
cmp byte [esi + 0x91], 0
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x74]
jne 0x477033
push ebx
mov eax, edi
call fcn.00479c10
add esp, 4
cmp dword [ebp + 4], 0
jne 0x477033
test eax, eax
je 0x477033
mov edx, dword [esi + 0x10]
mov eax, dword [eax + 0x40]
cmp eax, dword [edx + 0x1c]
jne 0x477033
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
push ecx
push str.index
mov ecx, ebx
lea eax, [esp + 0x50]
call fcn.00472530
mov edx, eax
push edi
push edx
call fcn.00472570
add edi, 8
push edi
push 0
mov eax, ebx
call fcn.00473310
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
je 0x4775d3
mov ebx, dword [esp + 0x18]
mov edx, esi
mov edi, eax
cmp edx, 1
jne 0x4770a2
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [edi + 0x40]
je 0x4770a2
mov edx, dword [edi]
mov edi, dword [esp + 0x68]
push edx
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
call fcn.0043e000
add esp, 8
jmp 0x4775d3
test byte [edi + 0x2a], 0x20
je 0x4770dd
mov eax, edi
call fcn.00473e10
mov dword [esp + 0x38], eax
jmp 0x4770dd
mov esi, dword [esi + 0x1e0]
mov dword [esp + 0x14], esi
test esi, esi
je 0x4775d3
mov ebx, dword [esp + 0x18]
mov edi, esi
mov esi, dword [edi + 0x40]
mov ecx, ebx
call fcn.00489a20
mov edx, eax
mov dword [esp + 0x1c], 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 + 0x4c], eax
mov dword [esp + 0x48], ebp
call fcn.0043e200
add esp, 0xc
test eax, eax
jne 0x47713b
cmp byte [ebx + 0x91], al
jne 0x47713b
push 9
lea eax, [esi + 7]
push str.altertab_
push eax
call fcn.0043e200
add esp, 0xc
test eax, eax
je 0x47713b
mov edi, dword [esp + 0x68]
push esi
push str.table__s_may_not_be_indexed
call fcn.0043e000
add esp, 8
jmp 0x4775d3
cmp dword [edi + 0xc], 0
je 0x477157
mov edi, dword [esp + 0x68]
push str.views_may_not_be_indexed
call fcn.0043e000
add esp, 4
jmp 0x4775d3
test byte [edi + 0x2a], 0x10
je 0x477173
mov edi, dword [esp + 0x68]
push str.virtual_tables_may_not_be_indexed
call fcn.0043e000
add esp, 4
jmp 0x4775d3
mov eax, dword [esp + 0x34]
test eax, eax
je 0x47721f
push ebx
call fcn.00473b90
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x4775d3
mov esi, eax
mov eax, dword [esp + 0x68]
call fcn.00473dc0
test eax, eax
jne 0x4775d3
mov edi, dword [esp + 0x18]
cmp byte [edi + 0x91], al
jne 0x4771d9
push eax
push esi
push edi
call fcn.00473200
add esp, 0xc
test eax, eax
je 0x4771d9
mov edi, dword [esp + 0x68]
push esi
push str.there_is_already_a_table_named__s
call fcn.0043e000
add esp, 8
jmp 0x4775d3
mov ecx, dword [ebp]
push ecx
push esi
mov eax, edi
call fcn.00473370
add esp, 8
test eax, eax
je 0x477255
cmp dword [esp + 0x8c], 0
jne 0x47720d
mov edi, dword [esp + 0x68]
push esi
push str.index__s_already_exists
call fcn.0043e000
add esp, 8
jmp 0x4775d3
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x68]
call fcn.00478820
jmp 0x4775d3
mov eax, dword [edi + 8]
mov ecx, 1
test eax, eax
je 0x477238
jmp 0x477230
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x477230
push ecx
push esi
push str.sqlite_autoindex__s__d
mov esi, ebx
call fcn.0043d310
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
je 0x4775d3
cmp dword [esp + 0x1c], 1
mov esi, dword [ebp]
mov eax, str.sqlite_temp_master
je 0x477269
mov eax, str.sqlite_master
push esi
push 0
push eax
mov eax, dword [esp + 0x74]
push 0x12
call fcn.00472b40
add esp, 0x10
test eax, eax
jne 0x4775d3
mov eax, 1
cmp dword [esp + 0x1c], eax
jne 0x477293
mov eax, 3
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov edx, dword [esp + 0x20]
push esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x78]
call fcn.00472b40
add esp, 0x10
test eax, eax
jne 0x4775d3
mov edi, dword [esp + 0x78]
test edi, edi
jne 0x477314
mov eax, dword [esp + 0x68]
push edi
xor ecx, ecx
call fcn.0046a990
add esp, 4
mov dword [esp + 0x78], eax
test eax, eax
je 0x4775d3
mov ecx, dword [esp + 0x14]
movsx eax, word [ecx + 0x22]
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*8 - 0x18]
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
push edx
push ecx
call fcn.0043bc00
mov edi, dword [esp + 0x80]
mov edx, dword [edi + 4]
mov cl, byte [esp + 0x90]
mov dword [edx + 4], eax
mov eax, dword [edi + 4]
add esp, 8
mov byte [eax + 0xc], cl
mov eax, dword [edi]
test eax, eax
jle 0x477341
mov esi, dword [edi + 4]
mov ebp, dword [esp + 0x30]
mov ebx, eax
mov eax, dword [esi]
test eax, eax
je 0x477335
mov eax, dword [eax + 8]
call fcn.0043df20
lea ebp, [eax + ebp + 1]
add esi, 0x18
sub ebx, 1
jne 0x477323
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x20]
call fcn.0043df20
mov esi, eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x47735a
movzx eax, word [eax + 0x2e]
jmp 0x47735f
mov eax, 1
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x24]
push edx
mov dx, word [edi]
mov edi, dword [esp + 0x1c]
add dx, ax
movzx eax, dx
push eax
lea ecx, [esi + ecx + 1]
push edi
call fcn.00476ec0
add esp, 0xc
cmp byte [edi + 0x41], 0
mov ebp, eax
jne 0x4775c4
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + esi + 1]
inc esi
push esi
push edx
push eax
mov dword [ebp], eax
mov dword [esp + 0x30], ecx
call fcn.00510c60
mov ecx, dword [esp + 0x88]
xor edx, edx
add esp, 0xc
test ecx, ecx
setne dl
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x32], cl
xor ecx, ecx
mov esi, dword [esp + 0x84]
mov dword [ebp + 0xc], eax
and edx, 1
add edx, edx
add edx, edx
add edx, edx
cmp dword [esp + 0x34], 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 + 0x40]
mov ecx, dword [edx + ecx + 0xc]
mov edi, dword [esp + 0x78]
mov dword [ebp + 0x18], ecx
mov dx, word [edi]
mov word [ebp + 0x2e], dx
test esi, esi
je 0x47742e
mov ecx, dword [esp + 0x68]
push 0
push esi
push 0x10
push ecx
call fcn.00469150
add esp, 0x10
mov dword [ebp + 0x24], esi
mov dword [esp + 0x84], 0
mov edx, dword [esp + 0x3c]
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 + 0x44], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ecx
jle 0x47755c
jmp 0x477460
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
mov esi, dword [esp + 0x14]
mov edi, dword [esi + 4]
mov dword [esp + 0x3c], eax
movsx eax, word [esi + 0x22]
xor ebx, ebx
test eax, eax
jle 0x4774a0
lea esp, [esp]
mov ecx, dword [edi]
mov edx, dword [esp + 0x3c]
push ecx
push edx
call fcn.0043e190
add esp, 8
test eax, eax
je 0x4774a0
movsx eax, word [esi + 0x22]
inc ebx
add edi, 0x18
cmp ebx, eax
jl 0x477480
movsx eax, word [esi + 0x22]
cmp ebx, eax
jge 0x4775a3
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov word [ecx + edx*2], bx
mov eax, dword [eax]
test eax, eax
je 0x4774e3
mov esi, dword [eax + 8]
mov eax, esi
call fcn.0043df20
mov edi, eax
inc edi
push edi
push esi
mov esi, dword [esp + 0x2c]
push esi
call fcn.00510c60
add esp, 0xc
add dword [esp + 0x24], edi
jmp 0x4774f6
mov edx, dword [esi + 4]
lea ecx, [ebx + ebx*2]
mov esi, dword [edx + ecx*8 + 0x10]
test esi, esi
jne 0x4774f6
mov esi, str.BINARY
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x91], 0
jne 0x477514
mov edi, dword [esp + 0x68]
call fcn.00474ac0
test eax, eax
je 0x4775c4
mov ecx, dword [ebp + 0x20]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [ecx + edi*4], esi
mov al, byte [edx + 0xc]
and al, byte [esp + 0x44]
mov ecx, dword [ebp + 0x1c]
mov byte [edi + ecx], al
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
lea edx, [ebx + ebx*2]
cmp byte [ecx + edx*8 + 0x14], 0
jne 0x477544
and dword [ebp + 0x34], 0xfffffff7
mov edx, dword [esp + 0x78]
add dword [esp + 0x2c], 0x18
inc edi
cmp edi, dword [edx]
mov dword [esp + 0x30], edi
jl 0x477460
mov esi, edi
mov ebx, dword [esp + 0x38]
test ebx, ebx
je 0x477660
xor eax, eax
xor edi, edi
cmp ax, word [ebx + 0x2e]
jae 0x477674
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.00475060
add esp, 4
test eax, eax
je 0x477631
mov edx, 0xffff
add word [ebp + 0x30], dx
jmp 0x477651
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edi, dword [esp + 0x68]
push eax
push edx
push str.table__s_has_no_column_named__s
call fcn.0043e000
add esp, 0xc
mov byte [edi + 0x11], 1
test ebp, ebp
je 0x4775d3
mov esi, dword [esp + 0x18]
mov edi, ebp
call fcn.00473400
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x18]
push eax
push esi
call fcn.00469eb0
mov ecx, dword [esp + 0x80]
push ecx
push esi
call fcn.0046ab40
mov edx, dword [esp + 0x84]
push edx
mov eax, esi
call fcn.00478170
mov eax, dword [esp + 0x34]
add esp, 0x14
test eax, eax
je 0x4779e5
cmp dword [esi + 0x208], 0
je 0x4779ac
mov ecx, esi
call fcn.0043b790
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
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 0x477576
jmp 0x477674
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.00477a00
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 0x1e0], 0
jne 0x47768f
mov edi, ebp
call fcn.00475000
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x68]
cmp edx, dword [eax + 0x1e0]
jne 0x47771a
mov ecx, edx
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x47771a
jmp 0x4776b0
movzx eax, word [ebx + 0x2e]
movzx ecx, word [ebp + 0x2e]
cmp ax, cx
jne 0x477713
movzx eax, ax
xor esi, esi
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x47770d
mov edi, dword [ebp + 4]
mov edx, dword [ebx + 4]
sub edx, edi
mov dword [esp + 0x44], edx
mov ax, word [edx + edi]
cmp ax, word [edi]
jne 0x47770d
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 0x477701
push ecx
push eax
call fcn.0043e190
add esp, 8
test eax, eax
jne 0x47770d
mov edx, dword [esp + 0x44]
movzx eax, word [ebx + 0x2e]
inc esi
add edi, 2
cmp esi, eax
jl 0x4776d6
cmp esi, dword [esp + 0x3c]
je 0x477748
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x4776b0
mov esi, dword [esp + 0x18]
cmp byte [esi + 0x91], 0
je 0x4777a0
mov edx, dword [ebp]
mov ecx, dword [ebp + 0x18]
push edx
add ecx, 0x18
mov eax, ebp
call fcn.0043f7f0
add esp, 4
test eax, eax
je 0x477783
mov byte [esi + 0x41], 1
jmp 0x4775c4
mov al, byte [ebx + 0x32]
mov cl, byte [ebp + 0x32]
cmp al, cl
je 0x47777a
cmp al, 0xa
je 0x47776e
cmp cl, 0xa
je 0x47776e
mov edi, dword [esp + 0x68]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.0043e000
add esp, 8
cmp byte [ebx + 0x32], 0xa
jne 0x47777a
mov cl, byte [ebp + 0x32]
mov byte [ebx + 0x32], cl
mov dword [esp + 0x28], ebx
jmp 0x4775c4
or dword [esi + 0x18], 2
cmp dword [esp + 0x74], 0
je 0x477943
mov eax, dword [esi + 0x8c]
mov dword [ebp + 0x28], eax
jmp 0x477943
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 0x40], 0
jne 0x477943
mov edx, dword [esp + 0x14]
test byte [edx + 0x2a], 0x20
je 0x4777c3
cmp dword [esp + 0x74], 0
je 0x477943
mov edi, ecx
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x38], eax
call fcn.0048d110
mov ebx, eax
test ebx, ebx
je 0x4775c4
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x68]
push 1
mov ecx, edi
call fcn.00478900
add esp, 4
push 0x9f
mov esi, ebx
call fcn.00457e70
mov dword [ebp + 0x28], eax
mov esi, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
add esp, 4
cmp dword [ecx + 0x54], esi
jg 0x47781c
push ebx
call fcn.00457d80
add esp, 4
test eax, eax
jne 0x477844
mov eax, dword [ebx + 4]
inc dword [ebx + 0x20]
mov ecx, dword [esp + 0x38]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x79
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
cmp dword [esp + 0x80], 0
je 0x477897
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx + 0x1f8]
add eax, dword [ecx + 0x1f4]
mov ecx, dword [esp + 0x34]
sub eax, dword [ecx]
mov ecx, dword [ecx]
cmp byte [ecx + eax - 1], 0x3b
jne 0x47786e
dec eax
cmp dword [esp + 0x7c], 0
mov edx, 0x5331a8
je 0x47787f
mov edx, str._UNIQUE
mov esi, dword [esp + 0x18]
push ecx
push eax
push edx
push str.CREATE_s_INDEX__.s
call fcn.0043d310
add esp, 0x10
mov edi, eax
jmp 0x47789d
mov esi, dword [esp + 0x18]
xor edi, edi
cmp dword [esp + 0x1c], 1
mov eax, str.sqlite_temp_master
je 0x4778ae
mov eax, str.sqlite_master
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
push edi
push edx
mov edx, dword [ecx]
mov ecx, dword [ebp]
push edx
mov edx, dword [esi + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + edx]
mov edx, dword [esp + 0x7c]
push ecx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
push edx
call fcn.00473140
add esp, 0x20
mov eax, edi
mov ecx, esi
call fcn.0043b7d0
cmp dword [esp + 0x74], 0
je 0x477935
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x68]
push eax
push ebp
mov eax, edi
call fcn.00476900
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00474b20
mov edx, dword [ebp]
add esp, 0xc
push edx
push str.name_q_AND_typeindex
call fcn.0043d310
push eax
mov eax, dword [esp + 0x28]
push eax
mov esi, ebx
call fcn.00457fa0
push 0
push 0x93
call fcn.00457ec0
add esp, 0x18
mov eax, dword [ebp + 0x28]
mov edx, ebx
call fcn.00458410
mov esi, dword [esp + 0x18]
cmp byte [esi + 0x91], 0
jne 0x477957
cmp dword [esp + 0x74], 0
jne 0x4775c4
mov ecx, dword [esp + 0x14]
mov edx, 5
cmp dword [esp + 0x7c], edx
jne 0x47799a
mov eax, dword [ecx + 8]
test eax, eax
je 0x47799a
cmp byte [eax + 0x32], dl
je 0x47799a
cmp dword [eax + 0x14], 0
je 0x477988
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x32], dl
je 0x477988
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x477978
mov ecx, dword [eax + 0x14]
mov dword [ebp + 0x14], ecx
mov dword [eax + 0x14], ebp
mov dword [esp + 0x28], ebp
jmp 0x4775d3
mov edx, dword [ecx + 8]
mov dword [ebp + 0x14], edx
mov dword [ecx + 8], ebp
mov dword [esp + 0x28], ebp
jmp 0x4775d3
cmp eax, dword [esi + 0x114]
jb 0x4779dc
cmp eax, dword [esi + 0x118]
jae 0x4779dc
mov ecx, dword [esi + 0x110]
mov dword [eax], ecx
dec dword [esi + 0xfc]
mov dword [esi + 0x110], eax
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push eax
call fcn.0043b720
add esp, 4
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret