Function at 0x180251650
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, WSACleanup
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e8]
mov rax, qword [0x1805c0c48]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.1801af47e
mov rax, qword [rbp + 0x2a0]
mov rax, qword [rax]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x2a0]
cmp dword [rax + 0x30], 0
je 0x1802516c1
jmp 0x180251ba6
mov rax, qword [rbp + 0x2a0]
mov rax, qword [rax + 0x158]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rdx, qword [rax + 0x60]
mov rcx, qword [rbp + 0x108]
call fcn.1802a13b0
mov dword [rbp + 0x44], eax
movsxd rax, dword [rbp + 0x44]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x108]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax]
mov qword [rbp + 0x68], rax
mov eax, 1
imul rax, rax, 0x10
mov rcx, qword [rbp + 8]
add rax, qword [rcx]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 8]
movsx eax, word [rax + 0x36]
dec eax
cdqe
imul rax, rax, 0x18
mov rcx, qword [rbp + 8]
add rax, qword [rcx + 8]
mov qword [rbp + 0xc8], rax
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 8]
call fcn.180261530
mov qword [rbp + 0xe8], rax
mov r8, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x108]
call fcn.180277aa0
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x20], 0
mov rax, qword [rbp + 0x28]
mov r9, qword [rax]
mov r8, qword [rbp + 0x68]
mov edx, reloc.WLDAP32.dll_Ordinal_26
mov rcx, qword [rbp + 0x2a0]
call fcn.180254730
test eax, eax
je 0x18025179b
jmp 0x180251ba6
mov rax, qword [rbp + 0xc8]
movzx eax, word [rax + 0x12]
and eax, 1
test eax, eax
je 0x1802517c5
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, qword [rbp + 0x2a0]
call fcn.18026b630
jmp 0x180251ba6
mov rax, qword [rbp + 8]
cmp qword [rax + 0x10], 0
je 0x1802517e8
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, qword [rbp + 0x2a0]
call fcn.18026b630
jmp 0x180251ba6
mov rax, qword [rbp + 0xc8]
movzx eax, word [rax + 0x12]
and eax, 0x60
test eax, eax
jne 0x18025192c
cmp qword [rbp + 0xe8], 0
je 0x180251826
mov rax, qword [rbp + 0xe8]
mov rax, qword [rax + 0x10]
movzx eax, byte [rax]
cmp eax, 0x79
jne 0x180251826
mov qword [rbp + 0xe8], 0
mov rax, qword [rbp + 0x108]
mov rax, qword [rax + 0x30]
and rax, 0x4000
test rax, rax
je 0x18025186f
mov rax, qword [rbp + 8]
cmp qword [rax + 0x48], 0
je 0x18025186f
cmp qword [rbp + 0xe8], 0
je 0x18025186f
lea r9, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov r8, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x2a0]
call fcn.18026b5b0
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 8]
and eax, 0xf
test eax, eax
je 0x1802518a8
cmp qword [rbp + 0xe8], 0
jne 0x1802518a8
lea r9, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
mov r8, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x2a0]
call fcn.18026b5b0
cmp qword [rbp + 0xe8], 0
je 0x18025192a
mov qword [rbp + 0x168], 0
lea rax, [rbp + 0x168]
mov qword [rsp + 0x20], rax
mov r9b, 0x41
mov r8b, 1
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0x108]
call fcn.1802b0590
mov dword [rbp + 0x184], eax
cmp dword [rbp + 0x184], 0
je 0x1802518f6
jmp 0x180251ba6
cmp qword [rbp + 0x168], 0
jne 0x18025191e
lea r9, str.Cannot_add_a_column_with_non_constant_default
mov r8, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x2a0]
call fcn.18026b5b0
mov rcx, qword [rbp + 0x168]
call fcn.1802b0520
jmp 0x18025195c
mov rax, qword [rbp + 0xc8]
movzx eax, word [rax + 0x12]
and eax, 0x40
test eax, eax
je 0x18025195c
lea r9, str.cannot_add_a_STORED_column
mov r8, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x2a0]
call fcn.18026b5b0
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp + 0x2a8]
mov rdx, qword [rax]
mov rcx, qword [rbp + 0x108]
call fcn.180267210
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
je 0x180251a63
mov rax, qword [rbp + 0x2a8]
mov eax, dword [rax + 8]
dec eax
mov eax, eax
mov rcx, qword [rbp + 0xa8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0xa8]
cmp qword [rbp + 0x1a8], rax
jbe 0x180251a0e
mov rax, qword [rbp + 0x1a8]
movsx eax, byte [rax]
cmp eax, 0x3b
je 0x1802519f1
mov rax, qword [rbp + 0x1a8]
movzx eax, byte [rax]
lea rcx, [0x1805178a0]
movzx eax, byte [rcx + rax]
and eax, 1
test eax, eax
je 0x180251a0e
mov rax, qword [rbp + 0x1a8]
mov byte [rax], 0
mov rax, qword [rbp + 0x1a8]
dec rax
mov qword [rbp + 0x1a8], rax
jmp 0x1802519b6
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x40]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0xa8]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 8]
mov r9d, dword [rax + 0x40]
mov r8, qword [rbp + 0x68]
lea rdx, str.UPDATE___w_.sqlite_master_SET_sql__printf___._ds___sql____Q__substr_sql_1length_printf___._ds_sql____WHERE_type__table_AND_name___Q
mov rcx, qword [rbp + 0x2a0]
call fcn.18028a5a0
mov rdx, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x108]
call fcn.1802664b0
mov rcx, qword [rbp + 0x2a0]
call fcn.180281250
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
je 0x180251ba6
mov rcx, qword [rbp + 0x2a0]
call fcn.18027f770
mov dword [rbp + 0x144], eax
mov dword [rsp + 0x20], 2
mov r9d, dword [rbp + 0x144]
mov r8d, dword [rbp + 0x44]
mov edx, 0x63
mov rcx, qword [rbp + 0x128]
call fcn.1802b0cb0
mov edx, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x128]
call fcn.1802cae50
mov r9d, 0xfffffffe
mov r8d, dword [rbp + 0x144]
mov edx, 0x56
mov rcx, qword [rbp + 0x128]
call fcn.1802b0c30
mov rcx, qword [rbp + 0x128]
call fcn.1802b2150
add eax, 2
mov r9d, eax
mov r8d, dword [rbp + 0x144]
mov edx, Ordinal_60
mov rcx, qword [rbp + 0x128]
call fcn.1802b0c30
mov dword [rsp + 0x20], 3
mov r9d, 2
mov r8d, dword [rbp + 0x44]
mov edx, 0x64
mov rcx, qword [rbp + 0x128]
call fcn.1802b0cb0
mov edx, dword [rbp + 0x144]
mov rcx, qword [rbp + 0x2a0]
call fcn.18029d760
mov r8w, 3
mov edx, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x2a0]
call fcn.180243610
mov rax, qword [rbp + 8]
cmp qword [rax + 0x20], 0
jne 0x180251b88
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 8]
and eax, 0xf
test eax, eax
je 0x180251ba6
mov rax, qword [rbp + 0xc8]
movzx eax, word [rax + 0x12]
and eax, 0x60
test eax, eax
je 0x180251ba6
mov r9, qword [rbp + 0x68]
mov r8, qword [rbp + 0x88]
lea rdx, 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
mov rcx, qword [rbp + 0x2a0]
call fcn.18028a5a0
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1801ae55b
mov rcx, qword [rbp + 0x278]
xor rcx, rbp
call fcn.1801ac93b
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret