Function at 0x59ddc0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x24], 0
mov edx, dword [edi]
mov dword [esp + 8], edx
jne 0x59e1b3
push ebx
push ebp
mov ebp, dword [edi + 0xf8]
mov ebx, 0xffff8000
mov dword [esp + 0x20], ebp
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x59de08
mov eax, dword [edx + 0x10]
xor ebx, ebx
add eax, 0xc
cmp dword [eax], ecx
je 0x59de08
nop dword [eax]
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x59de00
mov eax, dword [edx + 0x10]
mov ecx, ebx
mov edx, dword [ebp]
add ecx, ecx
add edx, 0x10
push esi
mov dword [esp + 0x10], edx
mov eax, dword [eax + ecx*8]
movsx ecx, word [ebp + 0x22]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 4]
shl ecx, 4
add eax, ecx
mov dword [esp + 0x1c], eax
movzx eax, word [eax - 4]
test ax, ax
jne 0x59de3e
xor esi, esi
jmp 0x59de5e
cmp byte [ebp + 0x2b], 0
je 0x59de48
xor esi, esi
jmp 0x59de5e
mov esi, dword [ebp + 0x34]
test esi, esi
je 0x59de5e
cmp dword [esi], eax
jge 0x59de57
xor esi, esi
jmp 0x59de5e
lea eax, [eax + eax*4]
mov esi, dword [esi + eax*4 - 0xc]
push dword [esp + 0x30]
push edx
push dword [esp + 0x1c]
call fcn.005b1da0
push 0
mov dword [esp + 0x38], eax
push dword [eax]
push dword [esp + 0x44]
push 0x1a
push edi
call fcn.0059fd10
add esp, 0x20
test eax, eax
jne 0x59e1b0
mov eax, dword [esp + 0x1c]
movzx eax, word [eax - 2]
test al, 1
je 0x59dead
push str.Cannot_add_a_PRIMARY_KEY_column
push edi
call fcn.005ab4e0
add esp, 8
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x1c
ret
cmp dword [ebp + 8], 0
je 0x59dec9
push str.Cannot_add_a_UNIQUE_column
push edi
call fcn.005ab4e0
add esp, 8
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x1c
ret
test al, 0x60
jne 0x59e052
test esi, esi
je 0x59dee0
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp byte [eax], 0x79
cmove esi, ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
and eax, 0x4000
or eax, 0
je 0x59df15
cmp dword [ebp + 0x30], 0
je 0x59df15
test esi, esi
je 0x59df15
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
push dword [esp + 0x14]
push dword [esp + 0x38]
push edi
call fcn.005ab4c0
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov eax, dword [esp + 0x1c]
test byte [eax - 0xc], 0xf
je 0x59df2d
test esi, esi
jne 0x59df35
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x59e05b
test esi, esi
je 0x59e06c
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0x41
push 1
push esi
push ecx
call fcn.005ed3d0
add esp, 0x18
test eax, eax
jne 0x59e1b0
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x59df84
push str.Cannot_add_a_column_with_non_constant_default
push dword [esp + 0x14]
push dword [esp + 0x38]
push edi
call fcn.005ab4c0
mov esi, dword [esp + 0x28]
add esp, 0x10
test esi, esi
je 0x59e06c
mov eax, 0x9000
test word [esi + 0x10], ax
jne 0x59df95
cmp dword [esi + 0x18], 0
je 0x59df9e
push esi
call fcn.005eec20
add esp, 4
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x59dff8
cmp esi, dword [ecx + 0x164]
jae 0x59dfe3
cmp esi, dword [ecx + 0x15c]
jb 0x59dfc8
mov eax, dword [ecx + 0x158]
mov dword [esi], eax
mov dword [ecx + 0x158], esi
jmp 0x59e06c
cmp esi, dword [ecx + 0x160]
jb 0x59dfe3
mov eax, dword [ecx + 0x150]
mov dword [esi], eax
mov dword [ecx + 0x150], esi
jmp 0x59e06c
cmp dword [ecx + 0x210], 0
je 0x59dff8
push esi
push ecx
call fcn.0058b300
add esp, 8
jmp 0x59e06c
cmp dword [0x6d3c38], 0
je 0x59e046
mov eax, dword [0x6ebdc0]
test eax, eax
je 0x59e014
push eax
call dword [0x6d3c88]
add esp, 4
push esi
call dword [0x6d3c64]
sub dword [0x6ebd58], eax
dec dword [0x6ebd7c]
push esi
call dword [0x6d3c5c]
mov eax, dword [0x6ebdc0]
add esp, 8
test eax, eax
je 0x59e06c
push eax
call dword [0x6d3c90]
add esp, 4
jmp 0x59e06c
push esi
call dword [0x6d3c5c]
add esp, 4
jmp 0x59e06c
test al, 0x40
je 0x59e06c
push str.cannot_add_a_STORED_column
push dword [esp + 0x14]
push dword [esp + 0x38]
push edi
call fcn.005ab4c0
add esp, 0x10
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
test eax, eax
je 0x59e107
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
push dword [esp + 0x1c]
call fcn.005a9460
mov esi, eax
add esp, 0xc
test esi, esi
je 0x59e107
push dword [esp + 0x18]
push dword [esp + 0x24]
push esi
call fcn.00620e40
mov eax, dword [esp + 0x24]
add esp, 0xc
mov byte [eax + esi], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
dec ecx
add ecx, esi
cmp ecx, esi
jbe 0x59e0e1
mov al, byte [ecx]
cmp al, 0x3b
je 0x59e0d9
movzx eax, al
test byte [eax + 0x68a4f8], 1
je 0x59e0e1
mov byte [ecx], 0
dec ecx
cmp ecx, esi
ja 0x59e0c7
push dword [esp + 0x10]
mov eax, dword [ebp + 0x2c]
push eax
push esi
push eax
push dword [esp + 0x40]
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.005bcef0
push esi
push dword [esp + 0x34]
call fcn.005a9350
add esp, 0x24
push edi
call fcn.005b83f0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x59e1b0
push edi
call fcn.005b79f0
push 2
mov esi, eax
push esi
push ebx
push 0x63
push ebp
call fcn.005d2380
push ebx
push ebp
call fcn.005df480
push 0xfffffffffffffffe
push esi
push 0x56
push ebp
call fcn.005d2320
mov eax, dword [ebp + 0x6c]
add eax, 2
push eax
push esi
push 0x3b
push ebp
call fcn.005d2320
add esp, 0x40
push 3
push 2
push ebx
push 0x64
push ebp
call fcn.005d2380
push esi
push edi
call fcn.005c65e0
push 3
push ebx
push edi
call fcn.00596680
mov eax, dword [esp + 0x4c]
add esp, 0x28
cmp dword [eax + 0x10], 0
jne 0x59e19a
mov eax, dword [esp + 0x1c]
test byte [eax - 0xc], 0xf
je 0x59e18d
test byte [eax - 2], 0x60
jne 0x59e19a
mov eax, dword [esp + 0x28]
test dword [eax + 0x1c], 0x10000
je 0x59e1b0
push dword [esp + 0x30]
push dword [esp + 0x14]
push str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__WHEN_quick_check_GLOB_non__value_in_THEN_raise_ABORT_type_mismatch_on_DEFAULT__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL_OR_quick_check_GLOB_non__value_in
push edi
call fcn.005bcef0
add esp, 0x10
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x1c
ret