Function at 0x1004abf0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edx
cmp dword [edi + 0x24], 0
mov esi, dword [edi]
mov dword [ebp - 0xc], esi
jne 0x1004afdc
cmp byte [esi + 0x53], 0
jne 0x1004afdc
mov edx, dword [edi + 0xe8]
mov ebx, 0xffff8000
mov dword [ebp - 0x10], edx
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x1004ac40
mov eax, dword [esi + 0x10]
xor ebx, ebx
add eax, 0xc
cmp dword [eax], ecx
je 0x1004ac40
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x1004ac38
mov eax, dword [esi + 0x10]
mov ecx, ebx
add ecx, ecx
mov eax, dword [eax + ecx*8]
movsx ecx, word [edx + 0x22]
mov dword [ebp - 4], eax
mov eax, dword [edx]
add eax, 0x10
shl ecx, 4
mov dword [ebp - 8], eax
mov eax, dword [edx + 4]
add eax, ecx
mov dword [ebp - 0x14], eax
movzx eax, word [eax - 4]
test ax, ax
jne 0x1004ac71
xor esi, esi
jmp 0x1004ac91
cmp byte [edx + 0x2b], 0
je 0x1004ac7b
xor esi, esi
jmp 0x1004ac91
mov esi, dword [edx + 0x34]
test esi, esi
je 0x1004ac91
cmp dword [esi], eax
jge 0x1004ac8a
xor esi, esi
jmp 0x1004ac91
lea eax, [eax + eax*4]
mov esi, dword [esi + eax*4 - 0xc]
push dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.100524b0
add esp, 4
mov edx, 0x1a
mov ecx, edi
push 0
push dword [eax]
push dword [ebp - 4]
call fcn.10051b80
add esp, 0xc
test eax, eax
jne 0x1004afdc
mov eax, dword [ebp - 0x14]
movzx eax, word [eax - 2]
test al, 1
je 0x1004ace0
push str.Cannot_add_a_PRIMARY_KEY_column
push edi
call fcn.10008be0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 8], 0
je 0x1004acfe
push str.Cannot_add_a_UNIQUE_column
push edi
call fcn.10008be0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 0x60
jne 0x1004ae75
test esi, esi
je 0x1004ad15
mov eax, dword [esi + 0xc]
xor edx, edx
cmp byte [eax], 0x78
cmove esi, edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x1004ad48
cmp dword [ecx + 0x30], 0
je 0x1004ad48
test esi, esi
je 0x1004ad48
push dword [ebp - 8]
push dword [ebp - 4]
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push edi
call fcn.10052380
add esp, 0x14
mov eax, dword [ebp - 0x14]
test byte [eax - 0xc], 0xf
je 0x1004ad65
test esi, esi
jne 0x1004ad6d
push dword [ebp - 8]
push dword [ebp - 4]
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x1004ae84
test esi, esi
je 0x1004ae92
push ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
push 0x41
push 1
mov edx, esi
mov dword [ebp - 0x18], 0
call fcn.10028aa0
add esp, 0x10
test eax, eax
jne 0x1004afdc
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x1004ada9
push dword [ebp - 8]
push dword [ebp - 4]
push str.Cannot_add_a_column_with_non_constant_default
jmp 0x1004ae84
mov eax, 0x2400
test word [esi + 8], ax
jne 0x1004adba
cmp dword [esi + 0x18], 0
je 0x1004adc1
mov ecx, esi
call fcn.10027d40
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1004ae18
cmp dword [ecx + 0x210], 0
je 0x1004addd
mov edx, esi
call fcn.10004c70
jmp 0x1004ae92
cmp esi, dword [ecx + 0x164]
jae 0x1004ae18
cmp esi, dword [ecx + 0x15c]
jb 0x1004ae00
mov eax, dword [ecx + 0x158]
mov dword [esi], eax
mov dword [ecx + 0x158], esi
jmp 0x1004ae92
cmp esi, dword [ecx + 0x160]
jb 0x1004ae18
mov eax, dword [ecx + 0x150]
mov dword [esi], eax
mov dword [ecx + 0x150], esi
jmp 0x1004ae92
cmp dword [0x1011d0f8], 0
je 0x1004ae69
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x1004ae34
push eax
call dword [0x1011d148]
add esp, 4
push esi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push esi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x1004ae92
push eax
call dword [0x1011d150]
add esp, 4
jmp 0x1004ae92
push esi
call dword [0x1011d11c]
add esp, 4
jmp 0x1004ae92
test al, 0x40
je 0x1004ae92
push dword [ebp - 8]
push dword [ebp - 4]
push str.cannot_add_a_STORED_column
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push edi
call fcn.10052380
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x1004af28
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.10005060
mov esi, eax
add esp, 8
test esi, esi
je 0x1004af28
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov byte [eax + esi], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
dec ecx
add ecx, esi
cmp ecx, esi
jbe 0x1004af01
mov al, byte [ecx]
cmp al, 0x3b
je 0x1004aef9
movzx eax, al
test byte [eax + 0x10113ba0], 1
je 0x1004af01
mov byte [ecx], 0
dec ecx
cmp ecx, esi
ja 0x1004aee7
push dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x2c]
push eax
push esi
push eax
push dword [ebp - 4]
push str.UPDATE___w_.sqlite_master_SET_sql__printf___._ds___sql____Q__substr_sql_1length_printf___._ds_sql____WHERE_type__table_AND_name___Q
push edi
call fcn.10052380
mov ecx, dword [ebp - 0xc]
add esp, 0x1c
mov edx, esi
call fcn.10004cc0
mov ecx, edi
call fcn.10075ea0
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1004afdc
mov ecx, edi
call fcn.1004a4a0
mov ecx, dword [ebp - 0xc]
mov esi, eax
push 2
push esi
push ebx
mov edx, 0x61
call fcn.10029290
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edx, ebx
call fcn.1002a870
mov ecx, dword [ebp - 0xc]
mov edx, 0x54
push 0xfffffffffffffffe
push esi
call fcn.100293c0
mov ecx, dword [ebp - 0xc]
mov edx, 0x31
mov eax, dword [ecx + 0x74]
add eax, 2
push eax
push esi
call fcn.100293c0
mov ecx, dword [ebp - 0xc]
mov edx, 0x62
push 3
push 2
push ebx
call fcn.10029290
add esp, 0x1c
mov edx, esi
mov ecx, edi
call fcn.1004a4c0
push 3
mov edx, ebx
call fcn.1004a6b0
mov eax, dword [ebp - 0x10]
add esp, 4
cmp dword [eax + 0x10], 0
jne 0x1004afc8
mov eax, dword [ebp - 0x14]
test byte [eax - 0xc], 0xf
je 0x1004afdc
test byte [eax - 2], 0x60
je 0x1004afdc
push dword [ebp - 4]
push dword [ebp - 8]
push str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check___w____w___WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL
push edi
call fcn.10052380
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret