Function at 0x101be7e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
xor eax, eax
push esi
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
cmp dword [ebp + 0x14], eax
je 0x101be9bc
cmp ebx, eax
je 0x101be9bc
mov edx, dword [ebp + 8]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
push str.CREATE_TABLE_IF_NOT_EXISTS_sqlcipher_master__name__value__
push edx
call sym.SQLite.Interop.dll_sqlite3_exec
mov esi, eax
add esp, 0x14
test esi, esi
je 0x101be83f
mov eax, dword [esp + 0xc]
push eax
push esi
push str.error_creating_sqlcipher_master:_got__d__s
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 0xc
jmp 0x101be9ce
mov edx, dword [ebp + 8]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 0x80
push 0xffffffffffffffff
push str.SELECT_value_FROM_sqlcipher_master_WHERE_name__salt_
push edx
call fcn.101fbc70
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x101be879
push esi
push str.error_preparing_salt_selection_query:_got__d
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 8
jmp 0x101be9ce
mov eax, dword [esp + 4]
push eax
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x101be8dd
mov ecx, dword [esp + 4]
push 0
push ecx
call sym.SQLite.Interop.dll_sqlite3_column_bytes
mov dword [ebx], eax
cdq
push edx
push eax
call fcn.101454b0
mov edx, dword [ebp + 0x14]
add esp, 0x10
mov dword [edx], eax
test eax, eax
jne 0x101be8b7
push str.error_allocating__d_bytes_of_memory_for_salt
jmp 0x101be9c6
mov eax, dword [ebx]
mov ecx, dword [esp + 4]
push eax
push 0
push ecx
call sym.SQLite.Interop.dll_sqlite3_column_blob
mov edx, dword [ebp + 0x14]
add esp, 8
push eax
mov eax, dword [edx]
push eax
call fcn.100ffb30
add esp, 0xc
jmp 0x101be9d4
mov eax, dword [ebx]
cmp eax, 1
jge 0x101be8fc
push eax
push str.invalid_requested_salt_sz__must_be_greater_than_1__got__d
mov esi, 1
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 8
jmp 0x101be9ce
cdq
push edx
push eax
call fcn.101454b0
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x101be91a
push str.error_allocating__d_bytes_of_memory_for_salt
jmp 0x101be9c6
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
mov edx, dword [ebx]
mov ecx, dword [ecx + 0x10]
push edx
push eax
mov eax, dword [ebp + 0x10]
push eax
call ecx
mov esi, eax
add esp, 0xc
test esi, esi
je 0x101be948
push esi
push str.error_occurred_during_random_operations:__d
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 8
jmp 0x101be9ce
mov eax, dword [ebp + 8]
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0x80
push 0xffffffffffffffff
push str.INSERT_INTO_sqlcipher_master__name__value__VALUES__salt_____
push eax
call fcn.101fbc70
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x101be97f
push esi
push str.error_preparing_salt_insertion_query:_got__d
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 8
jmp 0x101be9ce
mov ecx, dword [ebx]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x10]
push eax
push 1
push ecx
call sym.SQLite.Interop.dll_sqlite3_bind_blob
mov edx, dword [esp + 0x1c]
add esp, 0x14
push edx
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x65
je 0x101be9d4
push 0
push str.error_inserting_salt_into_sqlcipher_master:_got__d
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 8
jmp 0x101be9ce
mov esi, 1
push str.invalid_salt_or_salt_sz_pointers
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 4
test edi, edi
je 0x101be9d4
mov dword [edi], eax
mov eax, dword [esp + 8]
test eax, eax
je 0x101be9e5
push eax
call sym.SQLite.Interop.dll_sqlite3_finalize
add esp, 4
mov eax, dword [esp + 4]
test eax, eax
je 0x101be9f6
push eax
call sym.SQLite.Interop.dll_sqlite3_finalize
add esp, 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x101bea07
push eax
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret