Function at 0x1400a4020
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 0x1400a4083
movsxd rax, dword [rdi + 0x28]
mov ebx, r13d
test eax, eax
jle 0x1400a4083
mov rdx, rax
mov ecx, r13d
mov rax, qword [rdi + 0x20]
add rax, 0x18
nop word [rax + rax]
cmp qword [rax], r8
je 0x1400a4083
inc ebx
inc rcx
add rax, 0x20
cmp rcx, rdx
jl 0x1400a4070
mov rcx, qword [r14 + 0x30]
lea r8, [rsp + 0x60]
mov rdx, qword [r14 + 8]
add rcx, 8
call fcn.140031750
test rax, rax
je 0x1400a40a4
mov r9, qword [rax + 0x10]
jmp 0x1400a40a7
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.140072090
test eax, eax
jne 0x1400a4418
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.140072090
test eax, eax
jne 0x1400a4418
mov qword [rsp + 0x68], rbp
mov rbp, qword [rsi + 0x10]
test rbp, rbp
jne 0x1400a416e
mov rcx, rsi
call fcn.14004f940
mov qword [rsi + 0x10], rax
mov rbp, rax
test rax, rax
je 0x1400a414f
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.14004fb30
cmp qword [rsi + 0x1c0], r13
jne 0x1400a4165
mov rax, qword [rsi]
test byte [rax + 0x4c], 8
jne 0x1400a4165
mov byte [rsi + 0x23], 1
test rbp, rbp
je 0x1400a4413
mov rdi, qword [rsi + 0x1c0]
test rdi, rdi
je 0x1400a417f
mov rcx, rdi
jmp 0x1400a4185
mov rdi, rsi
mov rcx, rsi
mov eax, dword [rcx + 0x16c]
bt eax, ebx
jb 0x1400a41b9
bts eax, ebx
mov dword [rcx + 0x16c], eax
mov rax, qword [rcx]
mov rdx, qword [rax + 0x20]
mov rax, qword [rdx + r15 + 0x18]
mov edx, dword [rax]
mov dword [rcx + r12*4 + 0x170], edx
cmp ebx, 1
jne 0x1400a41b9
call fcn.14007b6d0
mov eax, dword [rdi + 0x168]
mov edx, ebx
bts eax, ebx
mov rcx, rsi
mov dword [rdi + 0x168], eax
call fcn.140073cb0
mov rcx, qword [rbp + 0x30]
mov eax, dword [rbp + 0x3c]
add eax, 9
cmp eax, dword [rcx + 0x60]
jle 0x1400a41f5
mov rcx, rbp
call fcn.14004fa80
test eax, eax
je 0x1400a41f5
mov edi, r13d
jmp 0x1400a4392
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]
lea eax, [rdi + 9]
mov dword [rdx + 8], eax
mov dword [rdx + 0xc], r13d
mov qword [rdx + 0x10], r13
mov byte [rdx + 3], r13b
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 + 3]
mov rax, qword [rbp + 8]
lea rcx, [rcx + rcx*2]
mov word [rax + rcx*8], 0x4e
mov dword [rax + rcx*8 + 4], 2
lea rdx, [rax + rcx*8]
lea rcx, [rdi + rdi*2]
lea eax, [rdi + 8]
mov dword [rdx + 8], eax
mov dword [rdx + 0xc], 1
mov qword [rdx + 0x10], r13
mov byte [rdx + 3], r13b
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 + 6]
mov rax, qword [rbp + 8]
lea rcx, [rcx + rcx*2]
mov word [rax + rcx*8], 0x4e
mov dword [rax + rcx*8 + 4], 2
lea rdx, [rax + rcx*8]
lea rcx, [rdi + rdi*2]
lea eax, [rdi + 8]
mov dword [rdx + 8], eax
mov dword [rdx + 0xc], 1
mov qword [rdx + 0x10], r13
mov byte [rdx + 3], r13b
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.140050160
lea edx, [rdi + 4]
mov r9d, 0xfffffffe
lea r8, str.trigger
mov rcx, rbp
call fcn.140050160
mov edx, ebx
mov rcx, rsi
call fcn.1400752c0
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x3d]
call fcn.14004fb30
mov rdi, qword [r14]
xor r9d, r9d
mov r8d, ebx
mov dword [rsp + 0x20], r13d
mov rcx, rbp
lea edx, [r9 + 0x7e]
call fcn.14004fb30
xor r9d, r9d
mov r8, rdi
mov edx, eax
mov rcx, rbp
call fcn.140050160
cmp dword [rsi + 0x54], 3
jge 0x1400a4413
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