Function at 0x1400a5230
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 0x1400a5293
movsxd rax, dword [rdi + 0x28]
mov ebx, r13d
test eax, eax
jle 0x1400a5293
mov rdx, rax
mov ecx, r13d
mov rax, qword [rdi + 0x20]
add rax, 0x18
nop word [rax + rax]
cmp qword [rax], r8
je 0x1400a5293
inc ebx
inc rcx
add rax, 0x20
cmp rcx, rdx
jl 0x1400a5280
mov rcx, qword [r14 + 0x30]
lea r8, [rsp + 0x60]
mov rdx, qword [r14 + 8]
add rcx, 8
call fcn.1400324b0
test rax, rax
je 0x1400a52b4
mov r9, qword [rax + 0x10]
jmp 0x1400a52b7
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.1400732c0
test eax, eax
jne 0x1400a5634
lea rax, str.sqlite_master
mov qword [rsp + 0x20], rdi
cmp ebx, 1
lea r8, str.sqlite_temp_master
mov edx, 9
mov rcx, rsi
cmovne r8, rax
xor r9d, r9d
call fcn.1400732c0
test eax, eax
jne 0x1400a5634
mov qword [rsp + 0x68], rbp
mov rbp, qword [rsi + 0x10]
test rbp, rbp
jne 0x1400a537f
mov rcx, rsi
call fcn.140050a70
mov qword [rsi + 0x10], rax
mov rbp, rax
test rax, rax
je 0x1400a5360
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.140050c60
cmp qword [rsi + 0x1c0], r13
jne 0x1400a5376
mov rax, qword [rsi]
test byte [rax + 0x4c], 8
jne 0x1400a5376
mov byte [rsi + 0x23], 1
test rbp, rbp
je 0x1400a562f
mov rdi, qword [rsi + 0x1c0]
test rdi, rdi
je 0x1400a5390
mov rcx, rdi
jmp 0x1400a5396
mov rdi, rsi
mov rcx, rsi
mov eax, dword [rcx + 0x16c]
bt eax, ebx
jb 0x1400a53ca
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 0x1400a53ca
call fcn.14007c750
mov eax, dword [rdi + 0x168]
mov edx, ebx
bts eax, ebx
mov rcx, rsi
mov dword [rdi + 0x168], eax
call fcn.140074e90
mov rcx, qword [rbp + 0x30]
mov eax, dword [rbp + 0x3c]
add eax, 9
cmp eax, dword [rcx + 0x60]
jle 0x1400a5406
mov rcx, rbp
call fcn.140050bb0
test eax, eax
je 0x1400a5406
mov edi, r13d
jmp 0x1400a55ac
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.140051290
lea edx, [rdi + 4]
mov r9d, 0xfffffffe
lea r8, str.trigger
mov rcx, rbp
call fcn.140051290
mov edx, ebx
mov rcx, rsi
call fcn.140076430
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov edx, 0x3d
mov rcx, rbp
call fcn.140050c60
mov rdi, qword [r14]
xor r9d, r9d
mov r8d, ebx
mov dword [rsp + 0x20], r13d
mov edx, 0x7e
mov rcx, rbp
call fcn.140050c60
xor r9d, r9d
mov r8, rdi
mov edx, eax
mov rcx, rbp
call fcn.140051290
cmp dword [rsi + 0x54], 3
jge 0x1400a562f
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