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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x4e2040]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x4c], ecx
xor ecx, ecx
mov ebx, dword [edi]
mov dword [esp + 0x54], eax
mov eax, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], ecx
cmp dword [edi + 0x24], ecx
jne 0x47886d
cmp byte [edi + 0xd4], 1
jne 0x477d0e
cmp byte [ebp + 0x28], 2
jne 0x47886d
mov ecx, edi
call fcn.004863f8
test eax, eax
jne 0x47886d
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.00477c3c
test eax, eax
jne 0x47886d
cmp dword [esp + 0x24], eax
je 0x477e0e
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x50]
push eax
push esi
mov ecx, edi
call fcn.00474a48
mov esi, eax
mov dword [esp + 0x28], esi
pop ecx
pop ecx
test esi, esi
js 0x47886d
cmp byte [ebx + 0xb1], 0
jne 0x477d90
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.0047a199
mov ecx, dword [esp + 0x40]
cmp dword [ecx + 4], 0
jne 0x477d90
test eax, eax
je 0x477d90
mov ecx, dword [ebx + 0x10]
mov eax, dword [eax + 0x3c]
push 1
cmp eax, dword [ecx + 0x1c]
pop eax
cmove esi, eax
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x58]
push eax
push str.index
push esi
mov edx, edi
call fcn.0047387c
mov esi, dword [esp + 0x30]
add esp, 0xc
mov edx, esi
call fcn.004738dc
lea eax, [esi + 8]
xor edx, edx
push eax
mov ecx, edi
call fcn.00474385
mov esi, eax
mov dword [esp + 0x3c], esi
pop ecx
test esi, esi
je 0x47886d
mov edx, dword [esp + 0x20]
xor eax, eax
inc eax
cmp edx, eax
jne 0x477dfb
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x1c]
cmp eax, dword [esi + 0x3c]
je 0x477dfb
push dword [esi]
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
push edi
call fcn.00441b18
add esp, 0xc
jmp 0x478833
test byte [esi + 0x1c], 0x80
je 0x477e30
mov ecx, esi
call fcn.00474bb9
mov dword [esp + 0x3c], eax
jmp 0x477e30
mov esi, dword [edi + 0xf0]
mov dword [esp + 0x38], esi
test esi, esi
je 0x47886d
mov edx, dword [esi + 0x3c]
mov ecx, ebx
call fcn.004864ff
mov edx, eax
mov dword [esp + 0x20], edx
mov eax, edx
push 7
shl eax, 4
add eax, dword [ebx + 0x10]
push str.sqlite_
push dword [esi]
mov dword [esp + 0x20], eax
call fcn.00441c90
add esp, 0xc
test eax, eax
jne 0x477e68
cmp byte [ebx + 0xb1], al
jne 0x477e68
cmp dword [esp + 0x24], eax
je 0x477e68
push dword [esi]
push str.table__s_may_not_be_indexed
jmp 0x477ded
mov al, byte [esi + 0x2b]
cmp al, 2
jne 0x477e81
push str.views_may_not_be_indexed
push edi
call fcn.00441b18
pop ecx
pop ecx
jmp 0x478833
cmp al, 1
jne 0x477e8c
push str.virtual_tables_may_not_be_indexed
jmp 0x477e74
mov eax, dword [esp + 0x50]
test eax, eax
je 0x477f59
mov edx, dword [eax]
mov ecx, ebx
push 0
push dword [eax + 4]
call fcn.0043f3c0
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x30], eax
call fcn.00441b97
mov eax, ecx
test eax, eax
je 0x478833
push dword [esi]
mov edx, eax
mov ecx, edi
push str.index
call fcn.00474ac2
pop ecx
pop ecx
test eax, eax
jne 0x478833
cmp byte [edi + 0xd4], 2
jae 0x477ff7
cmp byte [ebx + 0xb1], al
jne 0x477f10
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov edx, dword [esp + 0x30]
push dword [eax]
call fcn.0047405a
pop ecx
test eax, eax
je 0x477f10
push dword [esp + 0x30]
push str.there_is_already_a_table_named__s
jmp 0x477ded
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov edx, dword [esp + 0x30]
push dword [eax]
call fcn.004743c0
pop ecx
test eax, eax
je 0x477f92
cmp dword [ebp + 0x24], 0
jne 0x477f3a
push dword [esp + 0x30]
push str.index__s_already_exists
jmp 0x477ded
cmp dword [edi + 0x78], 0
mov ecx, edi
mov edx, dword [esp + 0x20]
cmovne ecx, dword [edi + 0x78]
call fcn.004793c0
mov ecx, edi
call fcn.00474c5d
jmp 0x478833
mov eax, dword [esi + 8]
xor ecx, ecx
inc ecx
jmp 0x477f65
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x477f61
push ecx
push dword [esi]
push str.sqlite_autoindex__s__d
push ebx
call fcn.00440d10
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x478833
cmp byte [edi + 0xd4], 0
je 0x477f92
inc byte [eax + 7]
cmp byte [edi + 0xd4], 2
jae 0x477ff7
mov eax, dword [esp + 0x14]
mov ecx, str.sqlite_temp_master
cmp dword [esp + 0x20], 1
mov eax, dword [eax]
push eax
mov dword [esp + 0x2c], eax
mov eax, str.sqlite_master
push 0
cmove eax, ecx
mov ecx, edi
push eax
push 0x12
pop edx
call fcn.00473b56
add esp, 0xc
test eax, eax
jne 0x478833
push dword [esp + 0x28]
inc eax
mov ecx, edi
push dword [esi]
cmp dword [esp + 0x28], eax
push dword [esp + 0x38]
push 3
pop edx
cmovne edx, eax
call fcn.00473b56
add esp, 0xc
test eax, eax
jne 0x478833
mov eax, dword [esp + 0x1c]
push 8
pop edx
test eax, eax
jne 0x47806f
movsx ecx, word [esi + 0x22]
mov eax, dword [esi + 4]
add ecx, ecx
or word [eax + ecx*8 - 2], dx
mov eax, dword [eax + ecx*8 - 0x10]
mov dword [esp + 0x28], eax
test eax, eax
je 0x478028
push eax
call fcn.004b5c60
pop ecx
and eax, 0x3fffffff
mov dword [esp + 0x2c], eax
mov ecx, ebx
push 0
lea eax, [esp + 0x2c]
push eax
push 0x3b
pop edx
call fcn.004699ad
pop ecx
pop ecx
mov ecx, dword [edi]
mov edx, eax
call fcn.0046a92b
mov dword [esp + 0x1c], eax
test eax, eax
je 0x478833
mov ecx, dword [ebp + 0x20]
xor eax, eax
movzx edx, cl
cmp ecx, 0xffffffff
cmovne eax, edx
mov edx, dword [esp + 0x1c]
imul ecx, dword [edx], 0x14
mov byte [ecx + edx - 4], al
jmp 0x478098
mov ecx, dword [edi]
mov eax, dword [eax]
cmp eax, dword [ecx + 0x80]
jle 0x47808e
push str.index
push str.too_many_columns_in__s
push edi
call fcn.00441b18
add esp, 0xc
cmp dword [edi + 0x24], 0
jne 0x478833
mov eax, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x28], edx
cmp dword [eax], edx
jle 0x4780f2
lea ecx, [eax + 8]
mov esi, eax
mov dword [esp + 0x40], ecx
mov edi, edx
mov eax, dword [ecx]
cmp byte [eax], 0x71
jne 0x4780d6
mov eax, dword [eax + 8]
test eax, eax
je 0x4780d3
push eax
call fcn.004b5c60
mov edx, dword [esp + 0x2c]
and eax, 0x3fffffff
pop ecx
mov ecx, dword [esp + 0x40]
inc edi
add edi, eax
inc edx
add ecx, 0x14
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], ecx
cmp edx, dword [esi]
jl 0x4780b1
mov esi, dword [esp + 0x38]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x48]
push dword [esp + 0x30]
call fcn.004b5c60
mov edx, dword [esp + 0x40]
and eax, 0x3fffffff
mov dword [esp + 0x2c], eax
pop ecx
test edx, edx
je 0x478113
movzx ecx, word [edx + 0x32]
jmp 0x478116
xor ecx, ecx
inc ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x38]
inc edx
add eax, edx
push eax
mov eax, dword [esp + 0x24]
movzx edx, word [eax]
add dx, cx
mov ecx, ebx
call fcn.00477bca
mov ebx, eax
mov eax, dword [esp + 0x18]
pop ecx
pop ecx
cmp byte [eax + 0x57], 0
jne 0x4783a4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov dword [ebx], edx
lea eax, [edx + 1]
add eax, ecx
inc ecx
push ecx
push dword [esp + 0x34]
mov dword [esp + 0x48], eax
push edx
call fcn.004b1c10
mov eax, dword [esp + 0x58]
add esp, 0xc
mov byte [ebx + 0x36], al
neg eax
mov edx, dword [esp + 0x1c]
sbb ecx, ecx
mov dword [ebx + 0xc], esi
mov eax, dword [ebx + 0x38]
and ecx, 8
and eax, 0xfffffff7
or ecx, eax
movzx eax, byte [ebp + 0x28]
xor eax, ecx
and eax, 3
xor eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x38], eax
add ecx, ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 0xc]
mov ecx, dword [esp + 0x54]
mov dword [ebx + 0x18], eax
movzx eax, word [edx]
mov word [ebx + 0x32], ax
test ecx, ecx
je 0x4781db
push 0
push ecx
push 2
mov edx, esi
mov ecx, edi
call fcn.00469002
mov eax, dword [esp + 0x60]
add esp, 0xc
and dword [esp + 0x54], 0
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x24], eax
movzx eax, word [ebx + 0x32]
cmp byte [edi + 0xd4], 2
movzx ecx, ax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x47], al
lea eax, [edx + 8]
mov dword [esp + 0x34], eax
jb 0x478204
and dword [esp + 0x1c], 0
mov dword [ebx + 0x28], edx
xor edx, edx
and dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
cmp word [esp + 0x18], cx
jae 0x4783be
mov ecx, dword [eax]
call fcn.0047576d
mov eax, dword [esp + 0x34]
mov edx, esi
push 0
mov ecx, edi
push dword [eax]
push 0x20
call fcn.00469002
xor edx, edx
add esp, 0xc
cmp dword [edi + 0x24], edx
jne 0x4783a4
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
call fcn.004691be
cmp byte [eax], 0xa7
je 0x478293
cmp esi, dword [edi + 0xf0]
je 0x478397
cmp dword [ebx + 0x28], edx
jne 0x47826d
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x28], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
push 0xfffffffffffffffe
pop eax
mov ecx, eax
mov eax, dword [ebx + 4]
push ecx
pop edi
mov word [eax + edx*2], di
mov eax, dword [ebx + 0x38]
mov edi, dword [esp + 0x48]
and eax, 0xfffffff7
or eax, 0x800
mov dword [ebx + 0x38], eax
jmp 0x4782cf
movsx ecx, word [eax + 0x20]
test ecx, ecx
jns 0x4782a1
movsx ecx, word [esi + 0x20]
jmp 0x4782c4
mov eax, dword [esi + 4]
mov edx, ecx
add edx, edx
test byte [eax + edx*8 + 4], 0xf
jne 0x4782b3
and dword [ebx + 0x38], 0xfffffff7
mov eax, dword [esi + 4]
test byte [eax + edx*8 + 0xe], 0x20
je 0x4782c4
or dword [ebx + 0x38], 0xc00
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x14]
mov word [eax + edx*2], cx
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
cmp byte [eax], 0x71
jne 0x47831a
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4782f1
push eax
call fcn.004b5c60
pop ecx
and eax, 0x3fffffff
lea esi, [eax + 1]
push esi
push dword [esp + 0x1c]
push dword [esp + 0x48]
call fcn.004b1c10
mov ecx, dword [esp + 0x4c]
add esp, 0xc
mov dword [esp + 0x28], ecx
lea eax, [esi + ecx]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x40], eax
jmp 0x47832f
test ecx, ecx
js 0x478333
shl ecx, 4
add ecx, dword [esi + 4]
call fcn.00474772
mov ecx, eax
mov dword [esp + 0x28], eax
test ecx, ecx
jne 0x47833c
mov ecx, 0x4ccdf0
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x10]
cmp byte [eax + 0xb1], 0
jne 0x478356
mov edx, ecx
mov ecx, edi
call fcn.00479d47
test eax, eax
je 0x4783a4
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x34]
movzx ecx, byte [eax + 8]
xor eax, eax
cmp byte [esp + 0x47], 4
cmovb ecx, eax
mov eax, dword [ebx + 0x1c]
add dword [esp + 0x34], 0x14
mov byte [edx + eax], cl
inc edx
movzx eax, word [ebx + 0x32]
mov dword [esp + 0x14], edx
cmp edx, eax
jge 0x4783be
mov eax, dword [esp + 0x34]
jmp 0x478219
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
push edi
call fcn.00441b18
pop ecx
pop ecx
test ebx, ebx
je 0x47882f
mov edx, ebx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
call fcn.0047442b
jmp 0x478833
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x47844b
and dword [esp + 0x18], 0
xor eax, eax
cmp ax, word [ecx + 0x32]
jae 0x47845f
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [ecx + 4]
movzx edx, word [ebx + 0x32]
push esi
push ecx
movzx eax, word [eax + esi*2]
mov ecx, ebx
mov dword [esp + 0x20], eax
call fcn.00475f54
pop ecx
pop ecx
test eax, eax
je 0x47840c
mov eax, 0xffff
add word [ebx + 0x34], ax
jmp 0x478434
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov word [eax + edi*2], cx
mov eax, dword [edx + 0x20]
mov ecx, dword [ebx + 0x20]
mov eax, dword [eax + esi*4]
mov dword [ecx + edi*4], eax
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebx + 0x1c]
mov al, byte [esi + eax]
mov byte [edi + ecx], al
inc edi
mov ecx, dword [esp + 0x3c]
inc esi
movzx eax, word [ecx + 0x32]
cmp esi, eax
jl 0x4783e3
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x38]
jmp 0x47845f
mov eax, dword [ebx + 4]
or ecx, 0xffffffff
mov word [eax + edx*2], cx
mov eax, dword [ebx + 0x20]
mov dword [eax + edx*4], 0x4ccdf0
mov ecx, ebx
call fcn.004788c0
cmp dword [edi + 0xf0], 0
jne 0x478476
mov ecx, ebx
call fcn.00475efa
mov ecx, ebx
call fcn.00475fb4
cmp dword [esp + 0x24], 0
je 0x4784d8
movzx ecx, word [ebx + 0x34]
movsx eax, word [esi + 0x22]
cmp ecx, eax
jl 0x4784d8
mov eax, dword [ebx + 0x38]
xor ecx, ecx
or eax, 0x20
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [ebx + 0x38], eax
movzx eax, word [esi + 0x22]
cmp cx, ax
jge 0x4784d8
mov dword [esp + 0x18], eax
movsx eax, word [esi + 0x20]
cmp edx, eax
je 0x4784c2
mov ecx, ebx
call fcn.00474bd1
test ax, ax
js 0x4784ce
mov eax, dword [esp + 0x18]
inc edx
cwde
cmp edx, eax
jge 0x4784d8
jmp 0x4784ae
mov eax, dword [esp + 0x28]
and eax, 0xffffffdf
mov dword [ebx + 0x38], eax
cmp esi, dword [edi + 0xf0]
jne 0x4785a1
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x4785a1
movzx edx, word [ebx + 0x32]
movzx eax, word [ecx + 0x32]
cmp ax, dx
jne 0x478592
mov edi, eax
xor edx, edx
mov dword [esp + 0x28], edi
xor edi, edi
cmp di, ax
mov dword [esp + 0x3c], edx
mov edi, dword [esp + 0x48]
jae 0x478583
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x40], eax
movzx eax, ax
mov edi, dword [esi + 4]
mov dword [esp + 0x18], ecx
sub edi, ecx
mov dword [esp + 0x28], eax
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x478577
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx + 0x20]
mov ecx, dword [esi + 0x20]
mov edx, dword [edx + eax*4]
mov ecx, dword [ecx + eax*4]
call fcn.00441c65
mov edx, dword [esp + 0x3c]
test eax, eax
jne 0x478577
mov ecx, dword [esp + 0x18]
inc edx
mov eax, dword [esp + 0x40]
add ecx, 2
movzx eax, ax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], ecx
cmp edx, eax
jl 0x478536
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
movzx eax, ax
cmp edx, eax
je 0x478601
movzx edx, word [ebx + 0x32]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x4784f7
cmp byte [edi + 0xd4], 2
mov eax, dword [esp + 0x10]
jae 0x47880b
cmp byte [eax + 0xb1], 0
je 0x478699
cmp dword [esp + 0x24], 0
je 0x478669
mov eax, dword [eax + 0xac]
mov ecx, ebx
mov dword [ebx + 0x2c], eax
call fcn.00485db9
test eax, eax
je 0x478669
push str.invalid_rootpage
push edi
call fcn.00441b18
pop ecx
pop ecx
mov ecx, 0x1d8b5
call fcn.004a845a
mov dword [edi + 0xc], eax
jmp 0x4783a4
mov al, byte [ecx + 0x36]
mov dl, byte [ebx + 0x36]
cmp al, dl
je 0x478634
cmp al, 0xb
je 0x478628
cmp dl, 0xb
je 0x478628
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push edi
call fcn.00441b18
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp byte [ecx + 0x36], 0xb
jne 0x478634
mov al, byte [ebx + 0x36]
mov byte [ecx + 0x36], al
cmp byte [ebp + 0x28], 2
jne 0x478646
mov eax, dword [ecx + 0x38]
and eax, 0xfffffffc
xor eax, 2
mov dword [ecx + 0x38], eax
cmp byte [edi + 0xd4], 2
jb 0x4783a4
mov eax, dword [edi + 0xf4]
mov dword [ebx + 0x14], eax
mov dword [edi + 0xf4], ebx
xor ebx, ebx
jmp 0x4783a4
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx]
add ecx, 0x18
push ebx
call fcn.00443345
pop ecx
test eax, eax
je 0x47868a
mov ecx, dword [esp + 0x10]
call fcn.0043f47b
jmp 0x4783a4
mov eax, dword [esp + 0x10]
xor ecx, ecx
inc ecx
or dword [eax + 0x18], ecx
jmp 0x47880b
test byte [esi + 0x1c], 0x80
je 0x4786ab
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x47880f
inc dword [edi + 0x2c]
mov ecx, edi
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x28], eax
call fcn.00488de5
mov dword [esp + 0x38], eax
test eax, eax
je 0x4783a4
push dword [esp + 0x20]
xor eax, eax
mov ecx, edi
lea edx, [eax + 1]
call fcn.00479447
pop ecx
mov ecx, dword [esp + 0x38]
xor eax, eax
push eax
push eax
push eax
mov edx, 0xb8
call fcn.004591cc
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov edx, 0x93
mov dword [ebx + 0x2c], eax
push 2
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.004591cc
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x47875a
mov edx, dword [edi + 0xcc]
add edx, dword [edi + 0xc8]
mov eax, dword [esp + 0x50]
mov ecx, edx
sub ecx, dword [eax]
push dword [eax]
cmp byte [edx - 1], 0x3b
mov edx, str._UNIQUE
lea eax, [ecx - 1]
cmovne eax, ecx
cmp dword [esp + 0x50], 0
push eax
mov eax, 0x4c8c24
cmovne eax, edx
push eax
push str.CREATE_s_INDEX__.s
push dword [esp + 0x20]
call fcn.00440d10
add esp, 0x14
jmp 0x47875c
xor eax, eax
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x54], eax
add ecx, ecx
push dword [esi]
mov eax, dword [esp + 0x1c]
push dword [ebx]
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
push str.INSERT_INTO__Q.sqlite_master_VALUES_index__Q__Q__d__Q__
push edi
call fcn.00473fa3
mov edx, dword [esp + 0x68]
add esp, 0x1c
test edx, edx
je 0x478798
mov ecx, dword [esp + 0x10]
call fcn.0043eeff
cmp dword [esp + 0x24], 0
je 0x4787f5
push dword [esp + 0x28]
mov edx, ebx
mov ecx, edi
call fcn.004778c9
mov edx, dword [esp + 0x24]
pop ecx
mov ecx, edi
call fcn.00475b69
push 0
push ecx
push dword [ebx]
push str.name_q_AND_typeindex
push dword [esp + 0x20]
call fcn.00440d10
mov edx, dword [esp + 0x34]
add esp, 0x10
mov ecx, dword [esp + 0x3c]
push eax
call fcn.00459481
mov ecx, dword [esp + 0x40]
xor eax, eax
push 0
inc eax
mov edx, 0xa6
push eax
push 0
call fcn.004591cc
add esp, 0x14
mov edx, dword [ebx + 0x2c]
mov ecx, dword [esp + 0x38]
call fcn.00459a36
mov ecx, dword [ecx + 0x6c]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp byte [eax + 0xb1], 0
jne 0x478838
test ecx, ecx
je 0x478838
cmp byte [edi + 0xd4], 2
jb 0x4783a4
mov dword [edi + 0xf4], ebx
mov ebx, dword [esp + 0x10]
add esi, 8
jmp 0x47884e
mov eax, dword [esi + 8]
mov dword [ebx + 0x14], eax
mov dword [esi + 8], ebx
jmp 0x47882f
cmp byte [ecx + 0x36], 5
lea edx, [ecx + 0x14]
je 0x478867
mov esi, edx
mov ecx, dword [esi]
test ecx, ecx
jne 0x478843
jmp 0x47886d
cmp byte [eax + 0x36], 5
je 0x47886d
mov dword [esi], eax
lea esi, [eax + 0x14]
mov eax, dword [esi]
mov dword [edx], eax
mov dword [esi], ecx
mov eax, dword [edx]
test eax, eax
jne 0x478856
mov eax, dword [esp + 0x54]
test eax, eax
je 0x47887e
mov edx, eax
mov ecx, ebx
call fcn.00469f9d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47888f
mov edx, eax
mov ecx, ebx
call fcn.0046ac05
mov edx, dword [esp + 0x24]
mov ecx, ebx
call fcn.00478ead
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4788ab
mov edx, eax
mov ecx, ebx
call fcn.0043eeff
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b0ce6
mov esp, ebp
pop ebp
ret