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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r8, qword [rdx + 0x28]
xor r13d, r13d
mov rbx, qword [rcx]
mov r15, rdx
mov r14, rcx
mov esi, 0xfff0bdc0
test r8, r8
je 0x18006eee3
movsxd rax, dword [rbx + 0x28]
mov esi, r13d
test eax, eax
jle 0x18006eee3
mov rdx, rax
mov ecx, r13d
mov rax, qword [rbx + 0x20]
add rax, 0x18
nop word [rax + rax]
cmp qword [rax], r8
je 0x18006eee3
inc esi
inc rcx
add rax, 0x20
cmp rcx, rdx
jl 0x18006eed0
mov rcx, qword [r15 + 0x30]
lea r8, [rsp + 0x60]
mov rdx, qword [r15 + 8]
add rcx, 8
call fcn.180009060
test rax, rax
je 0x18006ef04
mov r9, qword [rax + 0x10]
jmp 0x18006ef07
mov r9, r13
mov rax, qword [rbx + 0x20]
mov edx, 0xe
mov r9, qword [r9]
mov rcx, r14
mov r8, qword [r15]
movsxd rbp, esi
mov r12, rbp
shl r12, 5
cmp esi, 1
mov rbx, qword [r12 + rax]
mov eax, 0x10
cmovne edx, eax
mov qword [rsp + 0x20], rbx
call fcn.180044de0
test eax, eax
jne 0x18006f370
lea rax, str.sqlite_master
mov qword [rsp + 0x20], rbx
cmp esi, 1
lea r8, str.sqlite_temp_master
mov rcx, r14
cmovne r8, rax
xor r9d, r9d
lea edx, [r9 + 9]
call fcn.180044de0
test eax, eax
jne 0x18006f370
mov qword [rsp + 0x68], rdi
mov rdi, qword [r14 + 0x10]
test rdi, rdi
jne 0x18006efcf
mov rcx, r14
call fcn.180025760
mov qword [r14 + 0x10], rax
mov rdi, rax
test rax, rax
je 0x18006efaf
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.1800258c0
cmp qword [r14 + 0x1c0], r13
jne 0x18006efc6
mov rax, qword [r14]
test byte [rax + 0x4c], 8
jne 0x18006efc6
mov byte [r14 + 0x23], 1
test rdi, rdi
je 0x18006f36b
mov rax, qword [r14 + 0x1c0]
mov rbx, r14
test rax, rax
cmovne rbx, rax
mov eax, dword [rbx + 0x16c]
bt eax, esi
jb 0x18006f016
bts eax, esi
mov dword [rbx + 0x16c], eax
mov rax, qword [rbx]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx + r12 + 0x18]
mov ecx, dword [rax]
mov dword [rbx + rbp*4 + 0x170], ecx
cmp esi, 1
jne 0x18006f016
mov rcx, rbx
call fcn.18004c720
mov eax, dword [rbx + 0x168]
mov edx, esi
bts eax, esi
mov rcx, r14
mov dword [rbx + 0x168], eax
call fcn.180046520
mov rcx, qword [rdi + 0x30]
mov eax, dword [rdi + 0x3c]
add eax, 9
cmp eax, dword [rcx + 0x60]
jle 0x18006f057
mov rcx, rdi
call fcn.180025810
test eax, eax
je 0x18006f057
mov r9d, r13d
mov dword [rsp + 0x60], r13d
jmp 0x18006f205
movsxd r9, dword [rdi + 0x3c]
mov rax, qword [rdi + 8]
mov dword [rsp + 0x60], r9d
lea rcx, [r9 + r9*2]
mov word [rax + rcx*8], 0x6c
lea rdx, [rax + rcx*8]
mov dword [rdx + 4], r13d
lea rcx, [r9 + r9*2]
mov dword [rdx + 0xc], r13d
lea eax, [r9 + 9]
mov dword [rdx + 8], eax
mov qword [rdx + 0x10], r13
mov byte [rdx + 3], r13b
lea edx, [r9 + 8]
mov rax, qword [rdi + 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, [r9 + r9*2]
mov rax, qword [rdi + 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, [r9 + r9*2]
mov rax, qword [rdi + 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, [r9 + r9*2]
mov rax, qword [rdi + 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, [r9 + r9*2]
mov rax, qword [rdi + 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, [r9 + r9*2]
mov rax, qword [rdi + 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, [r9 + r9*2]
mov rax, qword [rdi + 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, [r9 + 8]
mov rax, qword [rdi + 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, [r9 + 1]
mov dword [rdx + 8], eax
mov dword [rdx + 0xc], r13d
mov qword [rdx + 0x10], r13
mov byte [rdx + 3], r13b
add dword [rdi + 0x3c], 9
mov r8, qword [rdi + 8]
lea eax, [r9 + 1]
mov rbx, qword [r15]
mov rcx, qword [rdi]
test r8, r8
je 0x18006f2a6
cmp byte [rcx + 0x50], r13b
jne 0x18006f2a6
test eax, eax
jns 0x18006f22f
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbp, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbp + 0x10]
call fcn.180025c40
mov qword [rbp + 0x10], r13
test rbx, rbx
jne 0x18006f257
mov byte [rbp + 1], r13b
jmp 0x18006f2b0
mov rax, rbx
cmp byte [rbx], r13b
je 0x18006f268
nop
inc rax
cmp byte [rax], r13b
jne 0x18006f260
mov rcx, qword [rdi]
sub eax, ebx
and eax, 0x3fffffff
mov r13d, eax
lea rdx, [rax + 1]
call fcn.180005180
mov r12, rax
test rax, rax
je 0x18006f299
mov r8d, r13d
mov rdx, rbx
mov rcx, rax
call fcn.1800b2f60
mov byte [r12 + r13], 0
mov qword [rbp + 0x10], r12
xor r13d, r13d
mov byte [rbp + 1], 0xff
jmp 0x18006f2b0
mov r8, rbx
xor edx, edx
call fcn.180025c40
mov eax, dword [rsp + 0x60]
mov r8, qword [rdi + 8]
add eax, 4
mov rcx, qword [rdi]
test r8, r8
je 0x18006f300
cmp byte [rcx + 0x50], 0
jne 0x18006f300
test eax, eax
jns 0x18006f2d2
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.180025c40
lea r8, str.trigger
mov byte [rbx + 1], 0xfe
mov qword [rbx + 0x10], r8
jmp 0x18006f311
lea r8, str.trigger
mov edx, 0xfffffffe
call fcn.180025c40
mov edx, esi
mov rcx, r14
call fcn.180047b50
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x3d]
call fcn.1800258c0
mov rbx, qword [r15]
xor r9d, r9d
mov r8d, esi
mov dword [rsp + 0x20], r13d
mov rcx, rdi
lea edx, [r9 + 0x7e]
call fcn.1800258c0
xor r9d, r9d
mov r8, rbx
mov edx, eax
mov rcx, rdi
call fcn.180025f00
cmp dword [r14 + 0x54], 3
jge 0x18006f36b
mov dword [r14 + 0x54], 3
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rsi
ret