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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r8, qword [rdx + 0x28]
xor r13d, r13d
mov rdi, qword [rcx]
mov r14, rdx
mov rsi, rcx
mov ebx, 0xfff0bdc0
test r8, r8
je 0x18006f3f3
movsxd rax, dword [rdi + 0x28]
mov ebx, r13d
test eax, eax
jle 0x18006f3f3
mov rdx, rax
mov ecx, r13d
mov rax, qword [rdi + 0x20]
add rax, 0x18
nop word [rax + rax]
cmp qword [rax], r8
je 0x18006f3f3
inc ebx
inc rcx
add rax, 0x20
cmp rcx, rdx
jl 0x18006f3e0
mov rcx, qword [r14 + 0x30]
lea r8, [rsp + 0x60]
mov rdx, qword [r14 + 8]
add rcx, 8
call fcn.18000a940
test rax, rax
je 0x18006f414
mov r9, qword [rax + 0x10]
jmp 0x18006f417
mov r9, r13
mov rax, qword [rdi + 0x20]
mov edx, 0xe
mov r9, qword [r9]
mov rcx, rsi
mov r8, qword [r14]
movsxd r12, ebx
mov r15, r12
shl r15, 5
cmp ebx, 1
mov rdi, qword [r15 + rax]
mov eax, 0x10
cmovne edx, eax
mov qword [rsp + 0x20], rdi
call fcn.180045de0
test eax, eax
jne 0x18006f78e
lea rax, str.sqlite_master
mov qword [rsp + 0x20], rdi
cmp ebx, 1
lea r8, str.sqlite_temp_master
mov rcx, rsi
cmovne r8, rax
xor r9d, r9d
lea edx, [r9 + 9]
call fcn.180045de0
test eax, eax
jne 0x18006f78e
mov qword [rsp + 0x68], rbp
mov rbp, qword [rsi + 0x10]
test rbp, rbp
jne 0x18006f4de
mov rcx, rsi
call fcn.180026a30
mov qword [rsi + 0x10], rax
mov rbp, rax
test rax, rax
je 0x18006f4bf
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.180026b90
cmp qword [rsi + 0x1c0], r13
jne 0x18006f4d5
mov rax, qword [rsi]
test byte [rax + 0x4c], 8
jne 0x18006f4d5
mov byte [rsi + 0x23], 1
test rbp, rbp
je 0x18006f789
mov rax, qword [rsi + 0x1c0]
mov rdi, rsi
test rax, rax
cmovne rdi, rax
mov eax, dword [rdi + 0x16c]
bt eax, ebx
jb 0x18006f526
bts eax, ebx
mov dword [rdi + 0x16c], eax
mov rax, qword [rdi]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx + r15 + 0x18]
mov ecx, dword [rax]
mov dword [rdi + r12*4 + 0x170], ecx
cmp ebx, 1
jne 0x18006f526
mov rcx, rdi
call fcn.18004d5f0
mov eax, dword [rdi + 0x168]
mov edx, ebx
bts eax, ebx
mov rcx, rsi
mov dword [rdi + 0x168], eax
call fcn.1800474f0
mov rcx, qword [rbp + 0x30]
mov eax, dword [rbp + 0x3c]
add eax, 9
cmp eax, dword [rcx + 0x60]
jle 0x18006f562
mov rcx, rbp
call fcn.180026ae0
test eax, eax
je 0x18006f562
mov edi, r13d
jmp 0x18006f708
movsxd rdi, dword [rbp + 0x3c]
mov rax, qword [rbp + 8]
lea rcx, [rdi + rdi*2]
mov word [rax + rcx*8], 0x6c
lea rdx, [rax + rcx*8]
mov dword [rdx + 4], r13d
lea rcx, [rdi + rdi*2]
mov dword [rdx + 0xc], r13d
lea eax, [rdi + 9]
mov dword [rdx + 8], eax
mov qword [rdx + 0x10], r13
mov byte [rdx + 3], r13b
lea edx, [rdi + 8]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0x18], 0x61
mov dword [rax + rcx*8 + 0x1c], r13d
mov qword [rax + rcx*8 + 0x20], 1
mov qword [rax + rcx*8 + 0x28], r13
mov byte [rax + rcx*8 + 0x1b], r13b
lea rcx, [rdi + rdi*2]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0x30], 0x2f
mov dword [rax + rcx*8 + 0x34], r13d
mov dword [rax + rcx*8 + 0x38], 1
mov dword [rax + rcx*8 + 0x3c], 2
mov qword [rax + rcx*8 + 0x40], r13
mov byte [rax + rcx*8 + 0x33], r13b
lea rcx, [rdi + rdi*2]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0x48], 0x4e
mov dword [rax + rcx*8 + 0x4c], 2
mov dword [rax + rcx*8 + 0x50], edx
mov dword [rax + rcx*8 + 0x54], 1
mov qword [rax + rcx*8 + 0x58], r13
mov byte [rax + rcx*8 + 0x4b], r13b
lea rcx, [rdi + rdi*2]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0x60], 0x61
mov dword [rax + rcx*8 + 0x64], r13d
mov qword [rax + rcx*8 + 0x68], 1
mov qword [rax + rcx*8 + 0x70], r13
mov byte [rax + rcx*8 + 0x63], r13b
lea rcx, [rdi + rdi*2]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0x78], 0x2f
mov qword [rax + rcx*8 + 0x7c], r13
mov dword [rax + rcx*8 + 0x84], 2
mov qword [rax + rcx*8 + 0x88], r13
mov byte [rax + rcx*8 + 0x7b], r13b
lea rcx, [rdi + rdi*2]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0x90], 0x4e
mov dword [rax + rcx*8 + 0x94], 2
mov dword [rax + rcx*8 + 0x98], edx
mov dword [rax + rcx*8 + 0x9c], 1
mov qword [rax + rcx*8 + 0xa0], r13
mov byte [rax + rcx*8 + 0x93], r13b
lea rcx, [rdi + rdi*2]
mov rax, qword [rbp + 8]
mov word [rax + rcx*8 + 0xa8], 0x5f
mov qword [rax + rcx*8 + 0xac], r13
mov dword [rax + rcx*8 + 0xb4], r13d
mov qword [rax + rcx*8 + 0xb8], r13
mov byte [rax + rcx*8 + 0xab], r13b
lea rcx, [rdi + 8]
mov rax, qword [rbp + 8]
lea rcx, [rcx + rcx*2]
mov word [rax + rcx*8], 9
mov dword [rax + rcx*8 + 4], r13d
lea rdx, [rax + rcx*8]
lea eax, [rdi + 1]
mov dword [rdx + 8], eax
mov dword [rdx + 0xc], r13d
mov qword [rdx + 0x10], r13
mov byte [rdx + 3], r13b
add dword [rbp + 0x3c], 9
mov r8, qword [r14]
lea edx, [rdi + 1]
xor r9d, r9d
mov rcx, rbp
call fcn.180027170
lea edx, [rdi + 4]
mov r9d, 0xfffffffe
lea r8, str.trigger
mov rcx, rbp
call fcn.180027170
mov edx, ebx
mov rcx, rsi
call fcn.180048ae0
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x3d]
call fcn.180026b90
mov rdi, qword [r14]
xor r9d, r9d
mov r8d, ebx
mov dword [rsp + 0x20], r13d
mov rcx, rbp
lea edx, [r9 + 0x7e]
call fcn.180026b90
xor r9d, r9d
mov r8, rdi
mov edx, eax
mov rcx, rbp
call fcn.180027170
cmp dword [rsi + 0x54], 3
jge 0x18006f789
mov dword [rsi + 0x54], 3
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret