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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, qword [rcx]
mov r15d, r9d
lea r9, [rax + 8]
mov rdi, r8
mov rbx, rcx
call fcn.18004a53c
mov ebp, eax
test eax, eax
js 0x18004a7f8
mov r13d, 1
test r15d, r15d
je 0x18004a6c0
cmp dword [rdi + 8], 0
jbe 0x18004a6bd
cmp eax, r13d
je 0x18004a6bd
lea rdx, str.temporary_table_name_must_be_unqualified
mov rcx, rbx
call fcn.18001cef0
jmp 0x18004a7f8
mov ebp, r13d
mov r12, qword [rsp + 0x60]
mov rcx, rsi
mov rdx, r12
movups xmm0, xmmword [r12]
movdqu xmmword [rbx + 0x238], xmm0
call fcn.18004a3ec
mov rdi, rax
test rax, rax
je 0x18004a7f8
mov rdx, rax
mov rcx, rbx
call fcn.18004a5ec
test eax, eax
jne 0x18004a7ed
cmp byte [rsi + 0xa0], r13b
lea rcx, str.sqlite_master
mov rax, qword [rsi + 0x20]
lea r8, str.sqlite_temp_master
mov r14d, r13d
cmovne r14d, r15d
mov r15d, ebp
shl r15, 5
cmp r14d, r13d
cmovne r8, rcx
xor r9d, r9d
mov rax, qword [r15 + rax]
mov rcx, rbx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x12]
call fcn.180049700
test eax, eax
jne 0x18004a7ed
cmp dword [rsp + 0x80], eax
je 0x18004a765
neg r14d
sbb edx, edx
and edx, 0xfffffffe
add edx, 8
jmp 0x18004a770
neg r14d
sbb edx, edx
and edx, 2
add edx, 2
mov r13d, dword [rsp + 0x88]
test r13d, r13d
jne 0x18004a799
mov rax, qword [rsp + 0x60]
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rcx, rbx
call fcn.180049700
test eax, eax
jne 0x18004a7ed
cmp byte [rbx + 0x1f3], 0
jne 0x18004a83c
mov rax, qword [rsi + 0x20]
mov rcx, rbx
mov r14, qword [r15 + rax]
call fcn.18005be40
test eax, eax
jne 0x18004a7ed
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.180049c50
test rax, rax
je 0x18004a815
cmp dword [rsp + 0x90], 0
mov rcx, rbx
jne 0x18004a7e6
mov r8, r12
lea rdx, str.table__T_already_exists
jmp 0x18004a835
mov edx, ebp
call fcn.18004e864
mov rdx, rdi
mov rcx, rsi
call fcn.18001acf0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.180049dfc
test rax, rax
je 0x18004a83c
mov r8, rdi
lea rdx, str.there_is_already_an_index_named__s
mov rcx, rbx
call fcn.18001cef0
jmp 0x18004a7ed
mov edx, 0x80
mov rcx, rsi
call fcn.18001af28
mov r14, rax
test rax, rax
jne 0x18004a864
lea eax, [r14 + 1]
mov byte [rsi + 0x51], al
add dword [rbx + 0x4c], eax
mov dword [rbx + 0x18], 7
jmp 0x18004a7ed
mov qword [rax], rdi
or eax, 0xffffffff
mov word [r14 + 0x40], ax
mov rax, qword [rsi + 0x20]
mov rcx, qword [r15 + rax + 0x18]
mov eax, 1
mov word [r14 + 0x44], ax
mov eax, 0xc8
mov word [r14 + 0x38], ax
mov qword [r14 + 0x70], rcx
cmp byte [rbx + 0x1e], 0
mov qword [rbx + 0x220], r14
jne 0x18004a8b8
lea rdx, str.sqlite_sequence
mov rcx, rdi
call fcn.1800c1e00
test eax, eax
jne 0x18004a8b8
mov rax, qword [r14 + 0x70]
mov qword [rax + 0x68], r14
cmp byte [rsi + 0xa1], 0
jne 0x18004a7f8
mov rcx, rbx
call fcn.18005eabc
mov rdi, rax
test rax, rax
je 0x18004a7f8
mov r8d, ebp
xor edx, edx
mov rcx, rbx
call fcn.18004e938
test r13d, r13d
je 0x18004a903
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90
mov rcx, rdi
call fcn.180033d78
mov r12d, dword [rbx + 0x54]
mov r8d, ebp
inc r12d
mov dword [rsp + 0x20], 2
mov edx, 0x33
mov dword [rbx + 0x1a0], r12d
mov rcx, rdi
lea r14d, [r12 + 1]
lea r15d, [r14 + 1]
mov dword [rbx + 0x1a4], r14d
mov r9d, r15d
mov dword [rbx + 0x54], r15d
call fcn.180033d78
mov edx, ebp
mov rcx, rdi
call fcn.180034770
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, r15d
lea edx, [r9 + 0x2d]
call fcn.180033d78
mov ecx, dword [rsi + 0x2c]
mov r9d, r15d
and ecx, 0x8000
mov dword [rsp + 0x60], eax
neg ecx
mov edx, 0x19
mov rcx, rdi
sbb r8d, r8d
and dword [rsp + 0x20], 0
and r8d, 0xfffffffd
add r8d, 4
call fcn.180033d78
mov r9d, 2
mov dword [rsp + 0x20], r15d
mov r8d, ebp
mov rcx, rdi
lea edx, [r9 + 0x32]
call fcn.180033d78
movzx r8d, byte [rsi + 0x4e]
mov r9d, r15d
xor esi, esi
mov rcx, rdi
mov dword [rsp + 0x20], esi
lea edx, [rsi + 0x19]
call fcn.180033d78
lea r9d, [rsi + 5]
mov dword [rsp + 0x20], r15d
mov r8d, ebp
lea edx, [rsi + 0x34]
mov rcx, rdi
call fcn.180033d78
mov eax, dword [rsp + 0x60]
mov edx, dword [rdi + 0x3c]
cmp edx, eax
jbe 0x18004a9f1
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x3c]
lea ecx, [rdx - 1]
mov rax, qword [rdi + 0x30]
mov dword [rax + 0x64], ecx
cmp dword [rsp + 0x80], esi
jne 0x18004aa27
test r13d, r13d
jne 0x18004aa27
mov r9d, r14d
mov dword [rsp + 0x20], esi
mov r8d, ebp
lea edx, [r13 + 0x79]
mov rcx, rdi
call fcn.180033d78
mov dword [rbx + 0x1d0], eax
jmp 0x18004aa3d
xor r8d, r8d
mov dword [rsp + 0x20], esi
mov r9d, r14d
mov rcx, rdi
lea edx, [r8 + 0x19]
call fcn.180033d78
mov edx, ebp
mov rcx, rbx
call fcn.18004a41c
xor r8d, r8d
mov dword [rsp + 0x20], esi
mov r9d, r12d
mov rcx, rdi
lea edx, [r8 + 0x4a]
call fcn.180033d78
xor r8d, r8d
mov dword [rsp + 0x20], esi
mov r9d, r15d
mov rcx, rdi
lea edx, [r8 + 0x1c]
call fcn.180033d78
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov r9d, r15d
mov rcx, rdi
lea edx, [r8 + 0x4b]
call fcn.180033d78
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x18004aaa0
movsxd rax, dword [rdi + 0x3c]
lea rdx, [rax + rax*2]
mov byte [rcx + rdx*8 - 0x15], 8
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x3d]
call fcn.180033d78
jmp 0x18004a7f8