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

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
xor eax, eax
push esi
push edi
xor edi, edi
mov dword [esp + 0x2c], eax
mov ebx, dword [ebp]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
cmp dword [ebp + 0x24], eax
jne 0x502d1e
cmp byte [ebp + 0xd8], 1
jne 0x501eb6
cmp byte [esp + 0x9c], 2
jne 0x502d1e
push ebp
call fcn.0051f280
add esp, 4
test eax, eax
jne 0x502d1e
mov eax, dword [esp + 0x84]
push eax
push ebp
mov dword [esp + 0x28], eax
call fcn.00511d60
add esp, 8
test eax, eax
jne 0x502d1e
cmp dword [esp + 0x80], edi
je 0x501fdb
mov esi, dword [esp + 0x7c]
lea eax, [esp + 0x2c]
push eax
push esi
push dword [esp + 0x80]
push ebp
call fcn.00527dc0
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
js 0x502d1e
cmp byte [ebx + 0xb1], 0
jne 0x501f54
push dword [esp + 0x80]
push ebp
call fcn.00525a60
add esp, 8
cmp dword [esi + 4], edi
mov esi, dword [esp + 0x1c]
jne 0x501f56
test eax, eax
je 0x501f56
mov ecx, dword [ebx + 0x10]
mov edx, 1
mov eax, dword [eax + 0x3c]
cmp eax, dword [ecx + 0x1c]
cmove esi, edx
mov dword [esp + 0x1c], esi
jmp 0x501f56
mov esi, eax
mov eax, dword [esp + 0x2c]
push eax
push str.index
push esi
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.0050c2d0
push dword [esp + 0x94]
lea eax, [esp + 0x54]
push eax
call fcn.0050c340
mov eax, dword [esp + 0x9c]
add eax, 8
push eax
push 0
push ebp
call fcn.00515820
mov edx, eax
add esp, 0x28
mov dword [esp + 0x10], edx
test edx, edx
je 0x502d1e
cmp esi, 1
jne 0x501fc6
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edx + 0x3c]
je 0x501fc6
push dword [edx]
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
push ebp
call fcn.00505000
add esp, 0xc
jmp 0x502c8d
test byte [edx + 0x1c], 0x80
je 0x50201c
push edx
call fcn.0051e750
add esp, 4
mov dword [esp + 0x28], eax
jmp 0x50201c
mov eax, dword [ebp + 0xf4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x502d1e
mov ecx, dword [eax + 0x3c]
mov esi, 0xffff8000
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x50201c
mov eax, dword [ebx + 0x10]
xor esi, esi
add eax, 0xc
mov dword [esp + 0x1c], esi
cmp dword [eax], ecx
je 0x50201c
nop dword [eax]
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x502010
mov dword [esp + 0x1c], esi
mov edi, dword [esp + 0x14]
mov ebx, esi
mov ecx, dword [esp + 0x10]
mov edx, 7
shl ebx, 4
add ebx, dword [edi + 0x10]
mov esi, dword [ecx]
mov dword [esp + 0x30], ebx
test esi, esi
je 0x5020b6
mov edi, str.sqlite_
mov al, byte [esi]
dec edx
test al, al
je 0x502062
movzx ecx, byte [edi]
movzx eax, al
mov al, byte [eax + 0x6e8f28]
cmp al, byte [ecx + 0x6e8f28]
jne 0x502062
inc esi
inc edi
test edx, edx
jg 0x502040
dec edx
test edx, edx
js 0x50207e
movzx eax, byte [edi]
movzx ecx, byte [eax + 0x6e8f28]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x6e8f28]
sub eax, ecx
jne 0x5020b2
mov edi, dword [esp + 0x14]
cmp byte [edi + 0xb1], 0
jne 0x5020b6
cmp dword [esp + 0x80], 0
je 0x5020b6
mov eax, dword [esp + 0x10]
push dword [eax]
push str.table__s_may_not_be_indexed
push ebp
call fcn.00505000
add esp, 0xc
mov ebx, edi
xor edi, edi
jmp 0x502c8d
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov al, byte [edx + 0x2b]
cmp al, 2
jne 0x5020da
push str.views_may_not_be_indexed
push ebp
call fcn.00505000
mov ebx, dword [esp + 0x1c]
add esp, 8
xor edi, edi
jmp 0x502c8d
cmp al, 1
jne 0x5020f7
push str.virtual_tables_may_not_be_indexed
push ebp
call fcn.00505000
mov ebx, dword [esp + 0x1c]
add esp, 8
xor edi, edi
jmp 0x502c8d
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x50222e
mov edi, dword [eax]
mov esi, dword [eax + 4]
test edi, edi
je 0x502219
xor eax, eax
mov ecx, esi
add ecx, 1
adc eax, eax
push eax
push ecx
push dword [esp + 0x1c]
call fcn.00503030
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x502203
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
mov byte [esi + eax], 0
mov esi, eax
push esi
call fcn.00504140
mov eax, dword [esp + 0x20]
push dword [eax]
push str.index
push esi
push ebp
call fcn.004fe7d0
add esp, 0x20
test eax, eax
jne 0x502c85
cmp byte [ebp + 0xd8], 2
mov edi, dword [esp + 0x14]
jae 0x5021fd
cmp byte [edi + 0xb1], al
jne 0x5021ab
push dword [ebx]
push esi
push edi
call fcn.0050b6c0
add esp, 0xc
test eax, eax
je 0x5021ab
push esi
push str.there_is_already_a_table_named__s
push ebp
call fcn.00505000
add esp, 0xc
mov dword [esp + 0x18], esi
mov ebx, edi
jmp 0x502c89
push dword [ebx]
push esi
push edi
call fcn.0050b630
add esp, 0xc
test eax, eax
je 0x5021fd
cmp dword [esp + 0x98], 0
jne 0x5021df
push esi
push str.index__s_already_exists
push ebp
call fcn.00505000
add esp, 0xc
mov dword [esp + 0x18], esi
mov ebx, edi
jmp 0x502c89
push dword [esp + 0x1c]
push ebp
call fcn.004ffef0
push ebp
call fcn.0050d4a0
add esp, 0xc
mov dword [esp + 0x18], esi
mov ebx, edi
jmp 0x502c89
mov dword [esp + 0x18], esi
jmp 0x502273
mov edi, dword [esp + 0x18]
push edi
call fcn.00504140
mov ebx, dword [esp + 0x18]
add esp, 4
jmp 0x502c8d
push 0
call fcn.00504140
mov ebx, dword [esp + 0x18]
add esp, 4
xor edi, edi
jmp 0x502c8d
mov eax, dword [edx + 8]
mov ecx, 1
test eax, eax
je 0x502248
nop word [eax + eax]
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x502240
push ecx
push dword [edx]
push str.sqlite_autoindex__s__d
push edi
call fcn.00515bf0
mov esi, eax
add esp, 0x10
mov dword [esp + 0x18], esi
test esi, esi
je 0x502c85
cmp byte [ebp + 0xd8], 0
je 0x502273
inc byte [esi + 7]
cmp byte [ebp + 0xd8], 2
jae 0x5022d6
mov esi, dword [ebx]
mov ecx, str.sqlite_temp_master
cmp dword [esp + 0x1c], 1
mov eax, str.sqlite_master
push esi
push 0
cmove eax, ecx
push eax
push 0x12
push ebp
call fcn.004f9a50
add esp, 0x14
test eax, eax
jne 0x502c85
mov eax, dword [esp + 0x10]
push esi
push dword [eax]
mov eax, dword [esp + 0x20]
push eax
xor eax, eax
cmp dword [esp + 0x28], 1
sete al
lea eax, [eax*2 + 1]
push eax
push ebp
call fcn.004f9a50
add esp, 0x14
test eax, eax
jne 0x502c85
cmp dword [esp + 0x84], 0
jne 0x5023a1
mov eax, dword [esp + 0x10]
movsx ecx, word [eax + 0x22]
mov eax, dword [eax + 4]
add ecx, ecx
or word [eax + ecx*8 - 2], 8
mov ebx, dword [eax + ecx*8 - 0x10]
test ebx, ebx
jne 0x502303
xor esi, esi
jmp 0x502317
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x502308
sub esi, ecx
and esi, 0x3fffffff
lea eax, [esi + 0x35]
push 0
push eax
push edi
call fcn.00503030
mov edi, eax
add esp, 0xc
test edi, edi
je 0x502366
push 0x34
push 0
push edi
call sub.VCRUNTIME140.dll_memset
or eax, 0xffffffff
mov byte [edi], 0x3b
mov word [edi + 0x22], ax
add esp, 0xc
lea eax, [edi + 0x34]
mov dword [edi + 8], eax
test esi, esi
je 0x502358
push esi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [edi + 8]
mov byte [esi + eax], 0
mov dword [edi + 0x18], 1
push edi
push dword [ebp]
call fcn.00509af0
mov edi, eax
add esp, 8
mov dword [esp + 0x20], edi
test edi, edi
je 0x502c85
mov ecx, dword [esp + 0x94]
xor ebx, ebx
movzx edx, cl
cmp ecx, 0xffffffff
mov ecx, dword [edi]
cmovne ebx, edx
lea eax, [ecx + ecx*4]
mov byte [edi + eax*4 - 4], bl
mov ebx, dword [esp + 0x30]
jmp 0x5023d2
mov edi, dword [esp + 0x84]
mov ecx, dword [ebp]
mov eax, dword [edi]
cmp eax, dword [ecx + 0x80]
jle 0x5023c8
push str.index
push str.too_many_columns_in__s
push ebp
call fcn.00505000
add esp, 0xc
cmp dword [ebp + 0x24], 0
jne 0x502c85
mov esi, dword [edi]
test esi, esi
jle 0x502417
lea edx, [edi + 8]
xor ebx, ebx
nop dword [eax]
mov ecx, dword [edx]
cmp byte [ecx], 0x71
jne 0x502403
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x502400
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5023f1
sub ecx, edi
and ecx, 0x3fffffff
inc ebx
add ebx, ecx
add edx, 0x14
sub esi, 1
jne 0x5023e0
mov edi, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x502420
mov eax, dword [esp + 0x28]
sub esi, ecx
and esi, 0x3fffffff
test eax, eax
je 0x50243d
movzx ecx, word [eax + 0x32]
jmp 0x502442
mov ecx, 1
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x28]
inc eax
add eax, esi
push eax
mov ax, word [edi]
add ax, cx
movzx eax, ax
push eax
push dword [esp + 0x20]
call fcn.004f7270
mov edi, eax
add esp, 0x10
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x57], 0
jne 0x502c29
mov edx, dword [esp + 0x34]
lea ecx, [esi + 1]
push ecx
push dword [esp + 0x1c]
mov dword [edi], edx
lea eax, [edx + 1]
add eax, esi
push edx
mov dword [esp + 0x40], eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x94]
add esp, 0xc
mov byte [edi + 0x36], al
neg eax
mov edx, dword [esp + 0x10]
sbb ecx, ecx
mov esi, dword [esp + 0x90]
mov eax, dword [edi + 0x38]
and ecx, 8
and eax, 0xfffffff7
mov dword [edi + 0xc], edx
or ecx, eax
movzx eax, byte [esp + 0x9c]
xor eax, ecx
and eax, 3
xor eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x38], eax
add ecx, ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 0xc]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x20]
movzx eax, word [eax]
mov word [edi + 0x32], ax
test esi, esi
je 0x502516
push 0
push esi
push 2
push edx
push ebp
call fcn.005202f0
movzx eax, word [edi + 0x32]
add esp, 0x14
mov edx, dword [esp + 0x10]
mov dword [edi + 0x24], esi
mov dword [esp + 0x90], 0
cmp byte [ebp + 0xd8], 2
movzx ecx, ax
mov eax, dword [ebx + 0xc]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x84], al
mov eax, dword [esp + 0x20]
lea ebx, [eax + 8]
mov dword [esp + 0x30], ebx
jb 0x502545
mov dword [edi + 0x28], eax
mov dword [esp + 0x20], 0
xor esi, esi
xor eax, eax
mov dword [esp + 0x24], esi
cmp ax, cx
jae 0x502762
mov eax, dword [ebx]
mov cl, byte [eax]
cmp cl, 0x75
je 0x50256c
cmp cl, 0x71
jne 0x50256f
mov eax, dword [eax + 0xc]
cmp byte [eax], 0x75
jne 0x50256f
mov byte [eax], 0x3b
push 0
push dword [ebx]
push 0x20
push edx
push ebp
call fcn.005202f0
add esp, 0x14
cmp dword [ebp + 0x24], 0
jne 0x502759
mov eax, dword [ebx]
test eax, eax
je 0x5025a0
nop
test dword [eax + 4], 0x2000
je 0x5025a0
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x502590
cmp byte [eax], 0xa7
je 0x5025e8
mov edx, dword [esp + 0x10]
cmp edx, dword [ebp + 0xf4]
je 0x50274b
cmp dword [edi + 0x28], 0
jne 0x5025ca
mov eax, dword [esp + 0x20]
mov dword [edi + 0x28], eax
mov dword [esp + 0x20], 0
mov eax, dword [edi + 4]
mov ecx, 0xfffffffe
mov ebp, ecx
mov word [eax + esi*2], bp
mov eax, dword [edi + 0x38]
and eax, 0xfffffff7
or eax, 0x800
mov dword [edi + 0x38], eax
jmp 0x50262c
movsx ecx, word [eax + 0x20]
test ecx, ecx
jns 0x5025fa
mov edx, dword [esp + 0x10]
movsx ecx, word [edx + 0x20]
jmp 0x502625
mov ebp, dword [esp + 0x10]
mov edx, ecx
add edx, edx
mov eax, dword [ebp + 4]
test byte [eax + edx*8 + 4], 0xf
jne 0x502610
and dword [edi + 0x38], 0xfffffff7
mov eax, dword [ebp + 4]
test byte [eax + edx*8 + 0xe], 0x20
mov edx, dword [esp + 0x10]
je 0x502625
or dword [edi + 0x38], 0xc00
mov eax, dword [edi + 4]
mov word [eax + esi*2], cx
mov eax, dword [ebx]
cmp byte [eax], 0x71
jne 0x50266f
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x50263e
xor esi, esi
jmp 0x502652
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x502643
sub esi, edx
and esi, 0x3fffffff
mov ebp, dword [esp + 0x34]
inc esi
push esi
push ecx
push ebp
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + ebp]
add esp, 0xc
mov esi, dword [esp + 0x24]
mov dword [esp + 0x34], eax
jmp 0x5026a9
test ecx, ecx
js 0x5026ad
shl ecx, 4
mov eax, 0x200
add ecx, dword [edx + 4]
test word [ecx + 0xe], ax
je 0x5026ad
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x502696
nop dword [eax + eax]
inc eax
cmp byte [eax], 0
jne 0x502690
test byte [ecx + 0xe], 4
je 0x5026a6
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x5026a0
lea ebp, [eax + 1]
test ebp, ebp
jne 0x5026b2
mov ebp, 0x6e921c
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xb1], 0
jne 0x50270d
mov esi, dword [esp + 0x74]
mov ecx, dword [esi]
mov al, byte [ecx + 0x54]
mov bl, byte [ecx + 0xb1]
mov byte [esp + 0x38], al
movzx eax, bl
push eax
push ebp
push dword [esp + 0x40]
push ecx
call fcn.0050a910
add esp, 0x10
test bl, bl
jne 0x502701
test eax, eax
je 0x5026f2
cmp dword [eax + 0xc], 0
jne 0x502705
push ebp
push eax
push dword [esp + 0x40]
push esi
call fcn.00510ea0
add esp, 0x10
test eax, eax
je 0x502759
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 0x20]
mov dword [eax + esi*4], ebp
xor eax, eax
movzx ecx, byte [ebx + 8]
cmp byte [esp + 0x84], 4
mov ebp, dword [esp + 0x74]
cmovb ecx, eax
mov eax, dword [edi + 0x1c]
add ebx, 0x14
mov dword [esp + 0x30], ebx
mov byte [esi + eax], cl
inc esi
movzx eax, word [edi + 0x32]
mov dword [esp + 0x24], esi
cmp esi, eax
jge 0x502762
mov edx, dword [esp + 0x10]
jmp 0x502556
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
push ebp
call fcn.00505000
add esp, 8
mov ebx, dword [esp + 0x14]
jmp 0x502c2b
mov edx, dword [esp + 0x28]
test edx, edx
je 0x5027d1
xor eax, eax
xor esi, esi
cmp ax, word [edx + 0x32]
jae 0x5027e5
mov ebp, dword [esp + 0x24]
mov eax, dword [edx + 4]
push esi
push edx
movzx ebx, word [eax + esi*2]
movzx eax, word [edi + 0x32]
push eax
push edi
call fcn.004df340
mov edx, dword [esp + 0x38]
add esp, 0x10
test eax, eax
je 0x5027a2
mov eax, 0xffff
add word [edi + 0x34], ax
jmp 0x5027c2
mov eax, dword [edi + 4]
mov word [eax + ebp*2], bx
mov eax, dword [edx + 0x20]
mov ecx, dword [edi + 0x20]
mov eax, dword [eax + esi*4]
mov dword [ecx + ebp*4], eax
mov eax, dword [edx + 0x1c]
mov ecx, dword [edi + 0x1c]
mov al, byte [esi + eax]
mov byte [ecx + ebp], al
inc ebp
movzx eax, word [edx + 0x32]
inc esi
cmp esi, eax
jl 0x502778
mov ebp, dword [esp + 0x74]
jmp 0x5027e5
mov eax, dword [edi + 4]
or ecx, 0xffffffff
mov word [eax + esi*2], cx
mov eax, dword [edi + 0x20]
mov dword [eax + esi*4], 0x6e921c
push edi
call fcn.00503480
add esp, 4
cmp dword [ebp + 0xf4], 0
jne 0x502800
push edi
call fcn.004d2f20
add esp, 4
push edi
call fcn.004ef5b0
add esp, 4
cmp dword [esp + 0x80], 0
je 0x50289b
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 0x34]
mov edx, eax
mov dword [esp + 0x38], edx
movsx ecx, word [ecx + 0x22]
cmp eax, ecx
jl 0x50289b
mov ebx, dword [edi + 0x38]
xor esi, esi
or ebx, 0x20
mov dword [esp + 0x84], esi
mov dword [edi + 0x38], ebx
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x10]
movzx eax, word [ebx + 0x22]
mov ecx, eax
mov dword [esp + 0x34], ecx
cmp si, ax
jge 0x50289b
movsx eax, word [ebx + 0x20]
mov dword [esp + 0x84], eax
cmp esi, eax
je 0x5029c7
xor eax, eax
xor ecx, ecx
cmp ax, dx
jae 0x502891
movzx ebx, dx
mov edx, dword [edi + 4]
nop dword [eax + eax]
cmp si, word [edx]
je 0x5029b3
inc ecx
add edx, 2
cmp ecx, ebx
jl 0x502880
mov eax, dword [esp + 0x30]
and eax, 0xffffffdf
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0xf4]
jne 0x50294d
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x502949
movzx ecx, word [edi + 0x32]
nop word [eax + eax]
movzx eax, word [ebp + 0x32]
cmp ax, cx
jne 0x50293a
xor edx, edx
xor ebx, ebx
mov ecx, eax
cmp dx, ax
jae 0x50292b
mov esi, dword [edi + 4]
mov dword [esp + 0x84], eax
movzx eax, ax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 4]
sub eax, esi
mov dword [esp + 0x38], eax
nop
mov ax, word [eax + esi]
cmp ax, word [esi]
jne 0x502927
mov eax, dword [edi + 0x20]
push dword [eax + ebx*4]
mov eax, dword [ebp + 0x20]
push dword [eax + ebx*4]
call fcn.00526840
add esp, 8
test eax, eax
jne 0x502927
mov eax, dword [esp + 0x84]
inc ebx
movzx eax, ax
add esi, 2
cmp ebx, eax
mov eax, dword [esp + 0x38]
jl 0x5028f0
mov ecx, dword [esp + 0x34]
movzx eax, cx
cmp ebx, eax
je 0x5029df
movzx ecx, word [edi + 0x32]
mov ebp, dword [ebp + 0x14]
test ebp, ebp
jne 0x5028c0
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x74]
cmp byte [ebp + 0xd8], 2
mov ebx, dword [esp + 0x14]
jae 0x502bed
cmp byte [ebx + 0xb1], 0
je 0x502a7a
cmp dword [esp + 0x80], 0
je 0x502a4d
mov eax, dword [ebx + 0xac]
push edi
mov dword [edi + 0x2c], eax
call fcn.005126a0
add esp, 4
test eax, eax
je 0x502a4d
push str.invalid_rootpage
push ebp
call fcn.00505000
push 0x1e364
call fcn.005016c0
add esp, 0xc
mov dword [ebp + 0xc], eax
jmp 0x502c2b
movzx eax, cx
test ax, ax
js 0x502891
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
inc esi
movsx eax, cx
cmp esi, eax
jge 0x50289b
mov eax, dword [esp + 0x84]
jmp 0x502861
mov al, byte [ebp + 0x36]
mov cl, byte [edi + 0x36]
mov esi, dword [esp + 0x74]
cmp al, cl
je 0x502a12
cmp al, 0xb
je 0x502a06
cmp cl, 0xb
je 0x502a06
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push esi
call fcn.00505000
add esp, 0xc
cmp byte [ebp + 0x36], 0xb
jne 0x502a12
mov al, byte [edi + 0x36]
mov byte [ebp + 0x36], al
cmp byte [esp + 0x9c], 2
jne 0x502a28
mov eax, dword [ebp + 0x38]
and eax, 0xfffffffc
xor eax, 2
mov dword [ebp + 0x38], eax
cmp byte [esi + 0xd8], 2
mov ebx, dword [esp + 0x14]
jb 0x502c2b
mov eax, dword [esi + 0xf8]
mov dword [edi + 0x14], eax
mov dword [esi + 0xf8], edi
jmp 0x502c89
mov eax, dword [edi + 0x18]
push edi
push dword [edi]
add eax, 0x18
push eax
call fcn.00511eb0
add esp, 0xc
test eax, eax
je 0x502a71
push ebx
call fcn.00516600
add esp, 4
jmp 0x502c2b
or dword [ebx + 0x18], 1
jmp 0x502bed
test byte [eax + 0x1c], 0x80
je 0x502a8f
mov eax, dword [esp + 0x80]
test eax, eax
je 0x502bf4
inc dword [ebp + 0x2c]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x2c]
mov dword [esp + 0x74], ebx
test esi, esi
jne 0x502ac5
cmp dword [ebp + 0x7c], esi
jne 0x502ab2
mov eax, dword [ebp]
test byte [eax + 0x50], 8
jne 0x502ab2
mov byte [ebp + 0x17], 1
push ebp
call fcn.0052ba20
mov esi, eax
add esp, 4
test esi, esi
je 0x502759
push dword [esp + 0x1c]
push 1
push ebp
call fcn.004fa500
push 0xb8
push esi
call fcn.0052b360
push 2
push ebx
push dword [esp + 0x38]
mov dword [edi + 0x2c], eax
push 0x93
push esi
call fcn.0052b470
add esp, 0x28
cmp dword [esp + 0x8c], 0
je 0x502b4b
mov edx, dword [ebp + 0xd0]
add edx, dword [ebp + 0xcc]
mov eax, dword [esp + 0x2c]
mov ecx, edx
mov eax, dword [eax]
sub ecx, eax
cmp byte [edx - 1], 0x3b
push eax
lea eax, [ecx - 1]
cmovne eax, ecx
cmp dword [esp + 0x8c], 0
push eax
mov ecx, str._UNIQUE
mov eax, 0x774272
cmovne eax, ecx
push eax
push str.CREATE_s_INDEX__.s
push dword [esp + 0x24]
call fcn.00515bf0
add esp, 0x14
mov ebx, eax
jmp 0x502b4d
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push ebx
push dword [esp + 0x78]
add ecx, ecx
push dword [eax]
mov eax, dword [esp + 0x20]
push dword [edi]
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
push str.INSERT_INTO__Q.sqlite_master_VALUES_index__Q__Q__d__Q__
push ebp
call fcn.005163c0
add esp, 0x1c
test ebx, ebx
je 0x502b8c
push ebx
mov ebx, dword [esp + 0x18]
push ebx
call fcn.00502f20
add esp, 8
jmp 0x502b90
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x80], 0
je 0x502be1
push dword [esp + 0x74]
push edi
push ebp
call fcn.0051f4d0
push dword [esp + 0x28]
push ebp
call fcn.004fe760
add esp, 0x14
push 0
push dword [edi]
push str.name_q_AND_typeindex
push ebx
call fcn.00515bf0
add esp, 0xc
push eax
push dword [esp + 0x24]
push esi
call fcn.0052b670
push 1
push 0
push 0xa6
push esi
call fcn.0052b410
add esp, 0x20
push dword [edi + 0x2c]
push esi
call fcn.00535820
add esp, 8
mov eax, dword [esp + 0x80]
cmp byte [ebx + 0xb1], 0
jne 0x502c12
test eax, eax
je 0x502c12
cmp byte [ebp + 0xd8], 2
jb 0x502c2b
mov dword [ebp + 0xf8], edi
jmp 0x502c89
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 0x14], eax
mov dword [ecx + 8], edi
mov edi, dword [esp + 0x18]
jmp 0x502c91
mov ebx, eax
test edi, edi
je 0x502c89
mov eax, dword [edi + 0x24]
test eax, eax
je 0x502c40
push eax
push ebx
call fcn.00508c00
add esp, 8
mov eax, dword [edi + 0x28]
test eax, eax
je 0x502c51
push eax
push ebx
call fcn.004d6580
add esp, 8
mov eax, dword [edi + 0x10]
test eax, eax
je 0x502c62
push eax
push ebx
call fcn.00502f20
add esp, 8
test byte [edi + 0x38], 0x10
je 0x502c79
mov eax, dword [edi + 0x20]
test eax, eax
je 0x502c79
push eax
push ebx
call fcn.00502f20
add esp, 8
push edi
push ebx
call fcn.00502f20
add esp, 8
jmp 0x502c89
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
add ecx, 8
test edx, edx
je 0x502caf
nop dword [eax + eax]
cmp byte [edx + 0x36], 5
je 0x502cfc
lea ecx, [edx + 0x14]
mov edx, dword [ecx]
test edx, edx
jne 0x502ca0
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x90]
test esi, esi
je 0x502cc8
push esi
push ebx
call fcn.00508c00
add esp, 8
test ebp, ebp
je 0x502cd6
push ebp
push ebx
call fcn.004d6580
add esp, 8
push dword [esp + 0x80]
push ebx
call fcn.00525490
add esp, 8
test edi, edi
je 0x502cf4
push edi
push ebx
call fcn.00502f20
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, dword [edx + 0x14]
test eax, eax
je 0x502caf
cmp byte [eax + 0x36], 5
je 0x502caf
mov dword [ecx], eax
lea ecx, [eax + 0x14]
mov eax, dword [ecx]
mov dword [edx + 0x14], eax
mov dword [ecx], edx
mov eax, dword [edx + 0x14]
test eax, eax
jne 0x502d03
jmp 0x502caf
mov ebp, dword [esp + 0x84]
jmp 0x502cb3