Function at 0x4c0c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov rax, rsp
sub rsp, 0xa8
mov qword [rax + 0x20], rbx
mov qword [rax - 8], rbp
mov qword [rax - 0x18], rdi
movsxd rbx, edx
xor edx, edx
mov qword [rax - 0x28], r13
cmp ebx, 1
mov qword [rax - 0x30], r14
mov r14d, edx
mov rdi, r8
mov r13, rcx
jne 0x4c0cc2
lea rbp, str.sqlite_temp_master
lea rax, str.CREATE_TEMP_TABLE_sqlite_temp_master__n__type_text__n__name_text__n__tbl_name_text__n__rootpage_integer__n__sql_text_n_
mov qword [rsp + 0xb0], rbp
jmp 0x4c0cd8
lea rbp, str.sqlite_master
lea rax, str.CREATE_TABLE_sqlite_master__n__type_text__n__name_text__n__tbl_name_text__n__rootpage_integer__n__sql_text_n_
mov qword [rsp + 0xb0], rbp
lea rcx, [0x006a09a0]
xor r9d, r9d
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x64], edx
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x98], rsi
lea rcx, [rsp + 0x50]
lea r8, [rsp + 0x30]
lea edx, [r9 + 3]
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x60], ebx
call fcn.004b9030
mov esi, dword [rsp + 0x64]
test esi, esi
jne 0x4c1284
mov r8, qword [r13 + 0x20]
mov r12, rbx
mov rdx, rbp
shl r12, 5
mov rcx, r13
mov r8, qword [r12 + r8]
call fcn.00432480
test rax, rax
je 0x4c0d5f
or byte [rax + 0x48], 1
mov r15, qword [r13 + 0x20]
mov rcx, qword [r15 + r12 + 8]
test rcx, rcx
jne 0x4c0d81
cmp ebx, 1
jne 0x4c0d7a
mov rax, qword [r15 + 0x38]
or word [rax + 0x72], bx
xor eax, eax
jmp 0x4c1298
cmp byte [rcx + 0x11], r14b
je 0x4c0d95
inc dword [rcx + 0x14]
cmp byte [rcx + 0x12], r14b
jne 0x4c0d95
call fcn.0042d140
mov rbp, qword [r15 + r12 + 8]
cmp byte [rbp + 0x10], r14b
jne 0x4c0f8d
mov rbx, qword [rbp + 8]
xor esi, esi
cmp byte [rbp + 0x11], sil
je 0x4c0dc1
inc dword [rbp + 0x14]
cmp byte [rbp + 0x12], sil
jne 0x4c0dc1
mov rcx, rbp
call fcn.0042d140
movzx eax, byte [rbp + 0x10]
cmp al, 2
je 0x4c0f25
cmp al, 1
je 0x4c0f25
movzx ecx, word [rbx + 0x26]
test cl, 0x40
je 0x4c0df1
mov rax, qword [rbx + 0x78]
cmp qword [rax], rsi
je 0x4c0df1
mov esi, 0x106
jmp 0x4c0f25
cmp byte [rbp + 0x11], sil
mov rax, qword [rbp + 8]
je 0x4c0e3a
cmp qword [rax + 0x78], rbp
je 0x4c0e11
test byte [rax + 0x26], 0x20
je 0x4c0e11
mov esi, 0x106
jmp 0x4c0f25
mov rax, qword [rax + 0x70]
test rax, rax
je 0x4c0e3a
nop
nop
cmp qword [rax], rbp
je 0x4c0e31
cmp dword [rax + 8], 1
jne 0x4c0e31
cmp byte [rax + 0xc], 1
jne 0x4c0e67
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x4c0e20
and cx, 0xfff7
cmp dword [rbx + 0x3c], r14d
mov word [rbx + 0x26], cx
jne 0x4c0e51
or cx, 8
mov word [rbx + 0x26], cx
cmp qword [rbx + 0x18], r14
jne 0x4c0e71
mov rcx, rbx
call fcn.004a2c00
test eax, eax
mov esi, eax
je 0x4c0e51
jmp 0x4c0e75
mov esi, 0x106
jmp 0x4c0f25
test esi, esi
je 0x4c0e96
cmp byte [rbx + 0x24], r14b
jne 0x4c0e96
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x4c0e96
test rcx, rcx
mov qword [rbx + 0x18], r14
je 0x4c0e96
mov rcx, qword [rcx + 0x68]
call fcn.004a1e30
cmp sil, 5
jne 0x4c0ed4
cmp byte [rbx + 0x24], r14b
jne 0x4c0ed4
mov rdi, qword [rbx + 8]
add rdi, 0x2a0
je 0x4c0ed4
mov rax, qword [rdi]
test rax, rax
je 0x4c0ed4
mov edx, dword [rdi + 0x10]
test edx, edx
js 0x4c0ed4
mov rcx, qword [rdi + 8]
call rax
test eax, eax
je 0x4c0ecd
inc dword [rdi + 0x10]
jmp 0x4c0e51
mov dword [rdi + 0x10], 0xffffffff
test esi, esi
jne 0x4c0f1d
cmp byte [rbp + 0x10], r14b
jne 0x4c0efb
inc dword [rbx + 0x38]
cmp byte [rbp + 0x11], r14b
je 0x4c0efb
mov byte [rbp + 0x3c], 1
mov rax, qword [rbx + 0x70]
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0x30]
mov qword [rbx + 0x70], rax
mov byte [rbp + 0x10], 1
cmp byte [rbx + 0x24], 1
jae 0x4c0f13
mov rdi, qword [rsp + 0xc0]
mov byte [rbx + 0x24], 1
jmp 0x4c0f25
mov rdi, qword [rsp + 0xc0]
jmp 0x4c0f25
mov rdi, qword [rsp + 0xc0]
cmp byte [rbp + 0x11], r14b
je 0x4c0f38
dec dword [rbp + 0x14]
jne 0x4c0f38
mov rcx, rbp
call fcn.0042d110
test esi, esi
je 0x4c0f87
cmp esi, 0x204
lea r9, str.unknown_error
je 0x4c0f69
movzx eax, sil
cmp eax, 0x1a
ja 0x4c0f70
lea rcx, str.not_an_error
mov rcx, qword [rcx + rax*8]
test rcx, rcx
je 0x4c0f70
mov r9, rcx
jmp 0x4c0f70
lea r9, str.abort_due_to_ROLLBACK
lea r8, [0x006a0bd4]
mov rdx, r13
mov rcx, rdi
call fcn.004779f0
jmp 0x4c126f
mov r14d, 1
lea rax, [rsp + 0x30]
mov ebp, Ordinal_41
xor edi, edi
sub rbp, rax
nop
mov rbx, qword [r15 + r12 + 8]
cmp byte [rbx + 0x11], 0
mov rsi, qword [rbx + 8]
je 0x4c0fc0
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x4c0fc0
mov rcx, rbx
call fcn.0042d140
mov rax, qword [rsi + 0x18]
lea r9, [rdi*4]
mov r8, qword [rax + 0x50]
add r8, r9
add r8, rbp
movzx eax, byte [rsp + r8 + 0x32]
movzx edx, byte [rsp + r8 + 0x31]
shl edx, 8
or edx, eax
movzx eax, byte [rsp + r8 + 0x30]
shl eax, 0x18
shl edx, 8
or edx, eax
movzx eax, byte [rsp + r8 + 0x33]
or edx, eax
cmp byte [rbx + 0x11], 0
mov dword [rsp + r9 + 0x30], edx
je 0x4c1015
dec dword [rbx + 0x14]
jne 0x4c1015
mov rcx, rbx
call fcn.0042d110
inc rdi
cmp rdi, 5
jl 0x4c0fa0
mov rcx, qword [r15 + r12 + 0x18]
mov edx, dword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
test edx, edx
mov dword [rcx], eax
je 0x4c1088
mov ebp, dword [rsp + 0xb8]
test ebp, ebp
jne 0x4c1057
and dl, 3
mov eax, 1
movzx edx, dl
cmove edx, eax
mov rax, qword [r13 + 0x20]
mov rcx, qword [rax + 0x18]
mov byte [rcx + 0x71], dl
jmp 0x4c109d
mov rax, qword [r13 + 0x20]
mov rcx, qword [rax + 0x18]
movzx eax, byte [rcx + 0x71]
cmp edx, eax
je 0x4c109d
mov rcx, qword [rsp + 0xc0]
lea r8, str.attached_databases_must_use_the_same_text_encoding_as_main_database
mov rdx, r13
call fcn.004779f0
mov esi, 1
jmp 0x4c1260
mov rax, qword [r13 + 0x20]
mov ebp, dword [rsp + 0xb8]
mov rcx, qword [r12 + rax + 0x18]
or word [rcx + 0x72], 4
mov rax, qword [r13 + 0x20]
mov rdx, qword [r15 + r12 + 0x18]
mov rcx, qword [rax + 0x18]
movzx eax, byte [rcx + 0x71]
mov byte [rdx + 0x71], al
mov rax, qword [r15 + r12 + 0x18]
cmp dword [rax + 0x74], 0
jne 0x4c115f
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jns 0x4c10d9
cmp ecx, 0x80000000
jne 0x4c10d7
mov ecx, 0x7fffffff
jmp 0x4c10e3
neg ecx
mov eax, 0x7d0
test ecx, ecx
cmove ecx, eax
mov rax, qword [r15 + r12 + 0x18]
mov dword [rax + 0x74], ecx
mov rbx, qword [r15 + r12 + 8]
mov rax, qword [r15 + r12 + 0x18]
cmp byte [rbx + 0x11], 0
movsxd rdi, dword [rax + 0x74]
mov rsi, qword [rbx + 8]
je 0x4c1114
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x4c1114
mov rcx, rbx
call fcn.0042d140
test edi, edi
mov rax, qword [rsi]
mov rcx, qword [rax + 0x110]
mov dword [rcx + 0x1c], edi
jns 0x4c1140
mov eax, dword [rcx + 0x24]
add eax, dword [rcx + 0x20]
movsxd r8, eax
mov rax, rdi
neg rax
shl rax, 0xa
cqo
idiv r8
mov rdi, rax
mov rcx, qword [rcx + 0x40]
mov edx, edi
call qword [0x0072d148]
cmp byte [rbx + 0x11], 0
je 0x4c115f
dec dword [rbx + 0x14]
jne 0x4c115f
mov rcx, rbx
call fcn.0042d110
mov rax, qword [r15 + r12 + 0x18]
mov ecx, dword [rsp + 0x34]
mov byte [rax + 0x70], cl
mov rax, qword [r15 + r12 + 0x18]
cmp byte [rax + 0x70], 0
jne 0x4c117a
mov byte [rax + 0x70], 1
mov rax, qword [r15 + r12 + 0x18]
cmp byte [rax + 0x70], 4
jbe 0x4c11a6
mov rcx, qword [rsp + 0xc0]
lea r8, str.unsupported_file_format
mov rdx, r13
call fcn.004779f0
mov esi, 1
jmp 0x4c1260
test ebp, ebp
jne 0x4c11b7
cmp ecx, 4
jl 0x4c11b7
and dword [r13 + 0x2c], 0xffff7fff
mov r8, qword [r13 + 0x20]
mov r9, qword [rsp + 0xb0]
lea rdx, str.SELECT_name__rootpage__sql_FROM__q._s_ORDER_BY_rowid
mov r8, qword [r12 + r8]
mov rcx, r13
call fcn.00461c80
mov rbx, qword [r13 + 0x178]
lea r9, [rsp + 0x50]
mov rdi, rax
xor eax, eax
lea r8, [fcn.004b9030]
mov rdx, rdi
mov rcx, r13
mov qword [r13 + 0x178], rax
mov qword [rsp + 0x20], rax
call fcn.004c0510
mov rdx, rdi
mov esi, eax
test eax, eax
mov rcx, r13
cmove esi, dword [rsp + 0x64]
mov qword [r13 + 0x178], rbx
call fcn.00425ea0
test esi, esi
jne 0x4c122e
mov edx, ebp
mov rcx, r13
call fcn.00467a20
cmp byte [r13 + 0x50], 0
je 0x4c1244
mov rcx, r13
mov esi, 7
call fcn.0045b0b0
jmp 0x4c1248
test esi, esi
je 0x4c1250
bt dword [r13 + 0x2c], 0x10
jae 0x4c1260
mov rax, qword [r13 + 0x20]
mov rcx, qword [r12 + rax + 0x18]
or word [rcx + 0x72], 1
xor esi, esi
test r14d, r14d
je 0x4c126f
mov rcx, qword [r15 + r12 + 8]
call fcn.004af7b0
mov rcx, qword [r15 + r12 + 8]
cmp byte [rcx + 0x11], 0
je 0x4c1284
dec dword [rcx + 0x14]
jne 0x4c1284
call fcn.0042d110
cmp esi, 7
je 0x4c1291
cmp esi, 0xc0a
jne 0x4c1296
mov byte [r13 + 0x50], 1
mov eax, esi
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa8
ret