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

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push r12
push r13
push r15
sub rsp, 0x90
mov rsi, qword [rcx]
mov r13, r8
mov r12, qword [rsp + 0xe0]
mov r15, rdx
mov rbx, rcx
test r8, r8
jne 0x14005be8b
test r12, r12
je 0x14005c3e4
mov qword [rsp + 0x78], r14
mov r14, qword [rcx + 0x220]
test r14, r14
je 0x14005c3df
cmp byte [rsi + 0xa1], 0
je 0x14005beb3
mov eax, dword [rsi + 0x9c]
mov dword [r14 + 0x38], eax
test r9b, 0x20
je 0x14005bef6
movzx eax, byte [r14 + 0x46]
test al, 8
je 0x14005bed3
lea rdx, str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
call fcn.14001a630
jmp 0x14005c3df
test al, 4
jne 0x14005bee8
mov r8, qword [r14]
lea rdx, str.PRIMARY_KEY_missing_on_table__s
call fcn.14001a630
jmp 0x14005bef6
or al, 0x60
mov rdx, r14
mov byte [r14 + 0x46], al
call fcn.14005b910
mov rcx, qword [r14 + 0x68]
xor eax, eax
mov qword [rsp + 0x88], rbp
mov ebp, 0xfff0bdc0
mov qword [rsp + 0x80], rdi
test rcx, rcx
je 0x14005bf36
mov edx, dword [rsi + 0x28]
mov ebp, eax
test edx, edx
jle 0x14005bf36
mov rax, qword [rsi + 0x20]
add rax, 0x18
cmp qword [rax], rcx
je 0x14005bf36
inc ebp
add rax, 0x20
cmp ebp, edx
jl 0x14005bf27
mov rax, qword [r14 + 0x30]
test rax, rax
je 0x14005bf56
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rbx
lea r8d, [r9 + 4]
call fcn.14004d640
mov rcx, r14
call fcn.14005b700
mov rdi, qword [r14 + 0x10]
test rdi, rdi
je 0x14005bf78
mov rcx, rdi
call fcn.14005b820
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14005bf67
cmp byte [rsi + 0xa1], 0
jne 0x14005c380
mov rcx, rbx
call fcn.140076f80
mov r15, rax
test rax, rax
je 0x14005c3cf
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov rcx, r15
lea edx, [rax + 0x3d]
call fcn.140037d60
mov rcx, qword [r14 + 0x18]
lea rax, str.VIEW
test rcx, rcx
lea r8, str.TABLE
lea rdx, str.view
cmovne r8, rax
lea rax, str.table
cmovne rax, rdx
mov qword [rsp + 0x50], rax
test r12, r12
je 0x14005c222
inc dword [rbx + 0x54]
mov edx, 0x37
mov eax, dword [rbx + 0x54]
mov rcx, rbx
mov dword [rsp + 0xc0], eax
inc eax
mov dword [rsp + 0xd0], eax
inc eax
mov dword [rbx + 0x54], eax
lea r8d, [rdx - 0x36]
mov rax, qword [rbx + 0x1c0]
test rax, rax
mov dword [rsp + 0x20], ebp
cmovne rcx, rax
mov byte [rcx + 0x21], 1
mov rcx, r15
mov r9d, dword [rbx + 0x1a4]
call fcn.140037d60
mov rax, qword [r15]
lea r12, [0x140120b10]
mov ecx, dword [r15 + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
je 0x14005c050
mov rax, r12
jmp 0x14005c05f
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [r15 + 8]
lea rax, [rax + rcx*8]
mov r8d, dword [rsp + 0xc0]
xor r9d, r9d
mov byte [rax + 3], 4
mov rcx, r15
mov dword [rbx + 0x50], 2
mov edi, dword [r15 + 0x3c]
inc edi
lea edx, [r9 + 0x11]
mov dword [rsp + 0x20], edi
call fcn.140037d60
mov eax, dword [rsp + 0xc0]
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0xe0]
mov rcx, rbx
mov dword [rsp + 0x5c], eax
xor eax, eax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x58], 0xd
call fcn.14007bc80
mov r8d, dword [rsp + 0xc0]
xor eax, eax
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov rcx, r15
lea edx, [rax + 0x12]
call fcn.140037d60
mov ecx, dword [r15 + 0x3c]
mov rax, qword [r15 + 0x30]
dec ecx
sub edi, 1
mov dword [rax + 0x64], ecx
mov edx, dword [r15 + 0x3c]
jns 0x14005c0ee
lea edi, [rdx - 1]
mov rax, qword [r15]
cmp byte [rax + 0x51], 0
jne 0x14005c106
movsxd rax, edi
lea rcx, [rax + rax*2]
mov rax, qword [r15 + 8]
lea r12, [rax + rcx*8]
mov dword [r12 + 8], edx
cmp dword [rbx + 0x4c], 0
jne 0x14005c3cf
mov rdx, qword [rsp + 0xe0]
mov rcx, rbx
call fcn.140076e90
test rax, rax
je 0x14005c3cf
movzx ecx, word [rax + 0x3e]
xor edi, edi
mov word [r14 + 0x3e], cx
mov rdx, rax
mov rcx, qword [rax + 8]
mov qword [r14 + 8], rcx
mov rcx, rsi
mov word [rax + 0x3e], di
mov qword [rax + 8], rdi
call fcn.140059ac0
mov r8d, dword [rsp + 0x5c]
lea edx, [rdi + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov rcx, r15
call fcn.140037d60
mov r9d, dword [rsp + 0x64]
mov edx, 0x31
mov r8d, dword [rsp + 0x60]
mov rcx, r15
mov r12d, dword [rsp + 0xd0]
mov edi, eax
mov dword [rsp + 0x20], r12d
call fcn.140037d60
xor r8d, r8d
mov rdx, r14
mov rcx, r15
call fcn.140069480
xor eax, eax
lea r9d, [r12 + 1]
mov rcx, r15
mov dword [rsp + 0x20], eax
lea edx, [rax + 0x4b]
lea r8d, [rax + 1]
call fcn.140037d60
mov edx, 0x54
lea eax, [r12 + 1]
mov r9d, r12d
mov dword [rsp + 0x20], eax
mov rcx, r15
lea r8d, [rdx - 0x53]
call fcn.140037d60
xor r12d, r12d
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov rcx, r15
lea edx, [r12 + 0xe]
call fcn.140037d60
mov edx, edi
mov rcx, r15
call fcn.140038410
xor r9d, r9d
mov dword [rsp + 0x20], r12d
lea edx, [r12 + 0x3d]
mov rcx, r15
lea r8d, [r12 + 1]
call fcn.140037d60
mov rdx, r14
mov rcx, rsi
call fcn.14005b3d0
jmp 0x14005c267
cmp byte [rsp + 0xd8], 0
lea rcx, [rbx + 0x248]
jne 0x14005c236
mov rcx, r13
mov rax, qword [rcx]
mov r9d, dword [rcx]
sub r9d, dword [rbx + 0x238]
cmp byte [rax], 0x3b
je 0x14005c24c
add r9d, dword [rcx + 8]
mov rax, qword [rbx + 0x238]
lea rdx, str.CREATE__s__.s
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140019660
mov rcx, qword [r14]
lea r9, str.sqlite_temp_master
mov r8, qword [rsi + 0x20]
lea rdx, str.UPDATE__Q._s_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
mov rdi, rax
movsxd r12, ebp
lea rax, str.sqlite_master
shl r12, 5
cmp ebp, 1
cmovne r9, rax
mov eax, dword [rbx + 0x1a0]
mov r8, qword [r12 + r8]
mov dword [rsp + 0x48], eax
mov eax, dword [rbx + 0x1a4]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140058cd0
test rdi, rdi
je 0x14005c31c
cmp qword [rsi + 0x328], 0
je 0x14005c2e9
mov rdx, rdi
mov rcx, rsi
call fcn.140017620
jmp 0x14005c31c
cmp rdi, qword [rsi + 0x170]
jb 0x14005c314
cmp rdi, qword [rsi + 0x178]
jae 0x14005c314
mov rax, qword [rsi + 0x168]
mov qword [rdi], rax
dec dword [rsi + 0x154]
mov qword [rsi + 0x168], rdi
jmp 0x14005c31c
mov rcx, rdi
call fcn.1400175b0
mov edx, ebp
mov rcx, rbx
call fcn.14005b200
test byte [r14 + 0x46], 8
je 0x14005c350
mov r8, qword [rsi + 0x20]
mov rax, qword [r8 + r12 + 0x18]
cmp qword [rax + 0x68], 0
jne 0x14005c350
mov r8, qword [r8 + r12]
lea rdx, str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
mov rcx, rbx
call fcn.140058cd0
mov r8, qword [r14]
lea rdx, str.tbl_name_q_AND_type_trigger
mov rcx, rsi
call fcn.140019660
mov r8, rax
mov edx, ebp
mov rcx, r15
call fcn.140037f90
cmp byte [rsi + 0xa1], 0
mov r15, qword [rsp + 0xc8]
je 0x14005c3cf
mov rcx, qword [r14 + 0x68]
mov r8, r14
mov rdx, qword [r14]
add rcx, 8
call fcn.14001bd00
test rax, rax
je 0x14005c39e
mov byte [rsi + 0x51], 1
jmp 0x14005c3cf
mov qword [rbx + 0x220], rax
or dword [rsi + 0x2c], 2
cmp qword [r14 + 0x18], rax
jne 0x14005c3cf
cmp qword [r15], rax
mov rcx, qword [rbx + 0x238]
cmovne r13, r15
mov edx, dword [r13]
sub edx, ecx
call fcn.14001a430
add eax, 0xd
mov dword [r14 + 0x48], eax
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov r14, qword [rsp + 0x78]
add rsp, 0x90
pop r15
pop r13
pop r12
pop rsi
pop rbx
ret