Function at 0x463770
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x511080]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x24], edx
push edi
cmp dword [esi + 0x24], 0
mov edi, dword [esi]
mov dword [esp + 0x10], edi
jne 0x463c91
mov edx, dword [esi + 0xf0]
mov ebx, 0xffff8000
mov dword [esp + 0x1c], edx
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x4637c8
mov eax, dword [edi + 0x10]
xor ebx, ebx
add eax, 0xc
cmp dword [eax], ecx
je 0x4637c8
nop
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x4637c0
mov eax, dword [edi + 0x10]
mov ecx, ebx
shl ecx, 4
mov dword [esp + 0x24], ecx
mov eax, dword [ecx + eax]
movsx ecx, word [edx + 0x22]
mov dword [esp + 0x14], eax
mov eax, dword [edx]
add eax, 0x10
shl ecx, 4
mov dword [esp + 0x18], eax
mov eax, dword [edx + 4]
add eax, ecx
mov dword [esp + 0x20], eax
movzx eax, word [eax - 4]
test ax, ax
jne 0x463801
xor edi, edi
jmp 0x463821
cmp byte [edx + 0x2b], 0
je 0x46380b
xor edi, edi
jmp 0x463821
mov edi, dword [edx + 0x34]
test edi, edi
je 0x463821
cmp dword [edi], eax
jge 0x46381a
xor edi, edi
jmp 0x463821
lea eax, [eax + eax*4]
mov edi, dword [edi + eax*4 - 0xc]
push dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
call fcn.0046ba80
add esp, 4
mov edx, 0x1a
mov ecx, esi
push 0
push dword [eax]
push dword [esp + 0x1c]
call fcn.0046aec0
add esp, 0xc
test eax, eax
jne 0x463c91
mov eax, dword [esp + 0x20]
movzx eax, word [eax - 2]
test al, 1
je 0x463880
push str.Cannot_add_a_PRIMARY_KEY_column
push esi
call fcn.0041c910
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 8], 0
je 0x4638aa
push str.Cannot_add_a_UNIQUE_column
push esi
call fcn.0041c910
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret
test al, 0x60
jne 0x463996
test edi, edi
je 0x4638c1
mov eax, dword [edi + 0xc]
xor edx, edx
cmp byte [eax], 0x79
cmove edi, edx
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x4638f7
cmp dword [ecx + 0x30], 0
je 0x4638f7
test edi, edi
je 0x4638f7
push dword [esp + 0x18]
push dword [esp + 0x18]
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push esi
call fcn.0046b970
add esp, 0x14
mov eax, dword [esp + 0x20]
test byte [eax - 0xc], 0xf
je 0x463917
test edi, edi
jne 0x46391f
push dword [esp + 0x18]
push dword [esp + 0x18]
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x4639a7
test edi, edi
je 0x4639b5
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push 0x41
push 1
mov edx, edi
mov dword [esp + 0x40], 0
call fcn.0043ffa0
add esp, 0x10
test eax, eax
jne 0x463c91
mov edi, dword [esp + 0x30]
test edi, edi
jne 0x463972
push dword [esp + 0x18]
push dword [esp + 0x18]
push str.Cannot_add_a_column_with_non_constant_default
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push esi
call fcn.0046b970
mov edi, dword [esp + 0x44]
add esp, 0x14
test edi, edi
je 0x4639b5
mov eax, 0x9000
test word [edi + 0x10], ax
jne 0x463983
cmp dword [edi + 0x18], 0
je 0x46398a
mov ecx, edi
call fcn.0043f120
mov ecx, dword [edi + 0x14]
mov edx, edi
call fcn.00418b80
jmp 0x4639b5
test al, 0x40
je 0x4639b5
push dword [esp + 0x18]
push dword [esp + 0x18]
push str.cannot_add_a_STORED_column
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
push esi
call fcn.0046b970
add esp, 0x14
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x463a57
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00419010
mov edi, eax
add esp, 8
test edi, edi
je 0x463a57
push dword [esp + 0x30]
push dword [esp + 0x30]
push edi
call fcn.004d4640
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov byte [eax + edi], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
dec ecx
add ecx, edi
cmp ecx, edi
jbe 0x463a2c
mov al, byte [ecx]
cmp al, 0x3b
je 0x463a24
movzx eax, al
test byte [eax + 0x500618], 1
je 0x463a2c
mov byte [ecx], 0
dec ecx
cmp ecx, edi
ja 0x463a12
push dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x2c]
push eax
push edi
push eax
push dword [esp + 0x24]
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 esi
call fcn.0046b970
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov edx, edi
call fcn.00418b80
mov edi, dword [esi + 8]
test edi, edi
jne 0x463a80
cmp dword [esi + 0x78], edi
jne 0x463a6f
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x463a6f
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.00440600
mov edi, eax
test edi, edi
je 0x463c91
mov al, byte [esi + 0x13]
test al, al
jne 0x463a8f
inc dword [esi + 0x2c]
mov edx, dword [esi + 0x2c]
jmp 0x463a9e
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov edx, dword [esi + eax*4 + 0x9c]
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x10], edx
cmp dword [edi + 0x70], ecx
jg 0x463aca
push 2
push edx
push ebx
mov edx, 0x63
mov ecx, edi
call fcn.00440850
mov edx, dword [esp + 0x1c]
lea eax, [edi + 0x68]
add esp, 0xc
mov dword [esp + 0x30], eax
jmp 0x463aff
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
lea eax, [edi + 0x68]
mov dword [esp + 0x30], eax
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x63
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 2
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x9c]
bts eax, ebx
mov dword [edi + 0x9c], eax
cmp ebx, 1
je 0x463b35
mov eax, dword [edi]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx + 4]
cmp byte [eax + 9], 0
je 0x463b35
mov eax, dword [edi + 0xa0]
bts eax, ebx
mov dword [edi + 0xa0], eax
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x463b57
push 0
push 0xfffffffffffffffe
push edx
mov edx, 0x56
mov ecx, edi
call fcn.00440850
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x463b8d
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x56
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0xfffffffe
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
lea eax, [ecx + 2]
mov dword [esp + 0x24], eax
cmp dword [edi + 0x70], ecx
jg 0x463bb1
push 0
push eax
push edx
mov edx, 0x3b
mov ecx, edi
call fcn.00440850
add esp, 0xc
jmp 0x463be7
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x3b
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x463c05
push 3
push 2
push ebx
mov edx, 0x64
mov ecx, edi
call fcn.00440850
add esp, 0xc
jmp 0x463c37
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 2
mov dword [eax + ecx*4 + 0xc], 3
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x463c53
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x463c53
movzx eax, al
mov dword [esi + eax*4 + 0x9c], ecx
inc byte [esi + 0x13]
push 3
mov edx, ebx
mov ecx, esi
call fcn.00463220
mov eax, dword [esp + 0x20]
add esp, 4
cmp dword [eax + 0x10], 0
jne 0x463c7b
mov eax, dword [esp + 0x20]
test byte [eax - 0xc], 0xf
je 0x463c91
test byte [eax - 2], 0x60
je 0x463c91
push dword [esp + 0x14]
push dword [esp + 0x1c]
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__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL
push esi
call fcn.0046b970
add esp, 0x10
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret