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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
xor r15d, r15d
mov r12, rdx
mov rsi, rcx
test rdx, rdx
jne 0x1800e987b
mov r13d, r15d
jmp 0x1800e98b5
movzx ecx, word [rdx + 0x14]
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1800e989e
cmp byte [r12 + 0x16], 1
jne 0x1800e989e
mov r13, qword [r12 + 8]
jmp 0x1800e98b5
test cl, 1
je 0x1800e98a8
mov r13, r15
jmp 0x1800e98b5
mov dl, 1
mov rcx, r12
call fcn.180034790
mov r13, rax
movzx ecx, word [r12 + 0x14]
mov qword [rsp + 0x30], rbp
test cl, 2
je 0x1800e98d4
cmp byte [r12 + 0x16], 1
jne 0x1800e98d4
mov ebp, dword [r12 + 0x10]
jmp 0x1800e9904
test cl, 0x10
je 0x1800e98ee
mov ebp, dword [r12 + 0x10]
mov eax, 0x400
test ax, cx
je 0x1800e9904
add ebp, dword [r12]
jmp 0x1800e9904
test cl, 1
je 0x1800e98f8
mov ebp, r15d
jmp 0x1800e9904
mov dl, 1
mov rcx, r12
call fcn.180034f00
mov ebp, eax
or r10d, 0xffffffff
mov rdi, r15
mov dword [rsp + 0x24], r15d
mov r9d, r15d
mov dword [rsp + 0x78], r15d
mov dword [rsp + 0x20], r10d
test r13, r13
jne 0x1800e9929
xor eax, eax
jmp 0x1800e9be2
mov r14d, r15d
mov qword [rsp + 0x70], rbx
mov rax, qword [rsi + 0x18]
lea edx, [r14 - 0x68f72]
mov rcx, qword [rax + 0x128]
test rcx, rcx
je 0x1800e9a39
nop dword [rax]
cmp dword [rcx + 4], edx
jne 0x1800e9960
mov eax, dword [rsi + 0x20]
cmp dword [rcx], eax
je 0x1800e996e
test edx, edx
js 0x1800e996e
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x1800e9950
jmp 0x1800e9a39
mov rbx, qword [rcx + 8]
test rbx, rbx
je 0x1800e9a39
test rdi, rdi
jne 0x1800e99ff
cmp dword [rbx + 0x3c], ebp
jne 0x1800e99c5
cmp byte [rbx + 0x37], r15b
je 0x1800e9996
mov eax, dword [rsp + 0x88]
test eax, eax
jne 0x1800e99cc
mov rcx, qword [rbx + 0x10]
cmp rcx, r13
je 0x1800e99b8
movsxd r8, ebp
mov rdx, r13
call fcn.180137900
mov r10d, dword [rsp + 0x20]
test eax, eax
jne 0x1800e99c5
mov r9d, dword [rsp + 0x78]
mov byte [rbx + 0x32], r15b
mov byte [rbx + 0x36], r15b
mov rdi, rbx
jmp 0x1800e9a18
mov eax, dword [rsp + 0x88]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800e99ff
test eax, eax
jne 0x1800e99ff
cmp dword [rbx + 0x40], ebp
jne 0x1800e99ff
movsxd r8, ebp
mov rdx, r13
call fcn.180137900
mov r10d, dword [rsp + 0x20]
test eax, eax
jne 0x1800e99ff
mov byte [rbx + 0x32], r15b
mov byte [rbx + 0x36], 1
mov rdi, rbx
jmp 0x1800e9a13
mov eax, dword [rbx + 0x4c]
cmp eax, r10d
jae 0x1800e9a13
mov r10d, eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], r14d
mov r9d, dword [rsp + 0x78]
mov eax, dword [rbx + 0x4c]
cmp eax, r9d
cmova r9d, eax
inc r14d
mov dword [rsp + 0x78], r9d
cmp r14d, 4
jl 0x1800e9931
mov r14d, dword [rsp + 0x24]
test rdi, rdi
je 0x1800e9a51
lea ecx, [r9 + 1]
mov byte [rdi + 0x32], r15b
mov rax, rdi
mov dword [rdi + 0x4c], ecx
jmp 0x1800e9bdd
movzx eax, word [r12 + 0x14]
mov edx, 1
test al, 0x12
je 0x1800e9a7f
mov ecx, 0x1000
test cx, ax
je 0x1800e9a7f
lea rax, [0x18000ec80]
cmp qword [r12 + 0x30], rax
jne 0x1800e9a7f
mov edi, edx
mov eax, r15d
jmp 0x1800e9a85
mov edi, r15d
lea eax, [rbp + 1]
movsxd rbx, eax
add rbx, 0x50
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x1800e9ba7
test rbx, rbx
je 0x1800e9ba7
mov rcx, rbx
call fcn.18000be40
mov rbx, rax
test rax, rax
je 0x1800e9ba7
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x50]
call fcn.18012e4b0
test edi, edi
je 0x1800e9ad6
inc qword [r13 - 8]
mov qword [rbx + 0x10], r13
mov byte [rbx + 0x34], 1
jmp 0x1800e9aec
lea eax, [rbp + 1]
lea rcx, [rbx + 0x50]
mov rdx, r13
movsxd r8, eax
mov qword [rbx + 0x10], rcx
call fcn.180128740
mov rdi, qword [rsp + 0x80]
mov ecx, 1
mov dword [rbx + 0x38], ecx
mov rdx, rdi
mov rcx, rbx
call fcn.1800e9670
test eax, eax
je 0x1800e9b43
test rdi, rdi
jne 0x1800e9b1c
mov byte [rbx + 0x32], 1
mov rax, rbx
jmp 0x1800e9bdd
mov eax, dword [rbx + 0x38]
cmp eax, 1
jbe 0x1800e9b2e
dec eax
mov dword [rbx + 0x38], eax
jmp 0x1800e9bdb
mov rcx, rbx
call fcn.1800e73c0
mov rcx, rbx
call sym.sqlite.dll_sqlite3_free
jmp 0x1800e9bdb
mov eax, dword [rsp + 0x78]
lea edi, [r14 - 0x68f72]
lea r9, [0x1800e74f0]
inc eax
mov r8, rbx
mov edx, edi
mov rcx, rsi
mov dword [rbx + 0x3c], ebp
mov dword [rbx + 0x4c], eax
call sym.sqlite.dll_sqlite3_set_auxdata
mov r11, qword [rsi + 0x18]
mov rcx, qword [r11 + 0x128]
test rcx, rcx
je 0x1800e9ba2
nop word [rax + rax]
cmp dword [rcx + 4], edi
jne 0x1800e9b90
mov eax, dword [rsi + 0x20]
cmp dword [rcx], eax
je 0x1800e9b9e
test edi, edi
js 0x1800e9b9e
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x1800e9b80
mov rax, r15
jmp 0x1800e9bdd
mov r15, qword [rcx + 8]
mov rax, r15
jmp 0x1800e9bdd
mov rax, qword [rsi]
mov ecx, 0x9000
test word [rax + 0x14], cx
je 0x1800e9bbf
mov rcx, rax
call fcn.180033a00
jmp 0x1800e9bc8
mov ecx, 1
mov word [rax + 0x14], cx
mov rcx, qword [rsi]
mov dword [rsi + 0x24], 7
mov rcx, qword [rcx + 0x18]
call fcn.18000c8e0
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret