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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov r14, qword [rdx]
mov rbx, rdx
mov rsi, qword [rcx + 0x10]
xor edi, edi
movsxd r12, r9d
mov r13, r8
mov r11, rcx
mov qword [rsp + 0x50], r14
movzx edx, byte [r14]
mov r15d, 0x400
lea eax, [rdx - 0x2d]
test al, 0xf7
je 0x18008827d
cmp dl, 0x32
jne 0x180087c65
mov ebp, dword [rsp + 0xe8]
lea edx, [rdi + 0x48]
mov r9d, ebp
xor r8d, r8d
mov rcx, rsi
call fcn.1800299a0
jmp 0x1800881e4
mov r10, qword [r8 + 0x50]
mov ebp, edi
mov dword [rsp + 0x3c], 5
mov r15, rdi
mov qword [rsp + 0x48], r10
test dword [r10 + 0x28], 0x400
jne 0x180087ca6
mov rax, qword [r10 + 0x20]
test rax, rax
je 0x180087ca6
mov rax, qword [rax + 0x38]
cmp byte [r12 + rax], dil
je 0x180087ca6
cmp dword [rsp + 0xe0], edi
mov eax, edi
sete al
jmp 0x180087cad
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x34], eax
test r9d, r9d
jle 0x180087cda
mov r8, qword [r10 + 0x38]
mov rax, rdi
nop dword [rax]
mov rcx, qword [r8 + rax*8]
test rcx, rcx
je 0x180087cd2
cmp qword [rcx], r14
je 0x180087d73
inc rax
cmp rax, r12
jl 0x180087cc0
movzx r8d, word [r10 + 0x2c]
cmp r12d, r8d
jge 0x180087d08
mov rax, qword [r10 + 0x38]
sub r8d, r12d
lea rdx, [rax + r12*8]
nop
mov rax, qword [rdx]
lea ecx, [rbp + 1]
lea rdx, [rdx + 8]
cmp qword [rax], r14
cmovne ecx, ebp
mov ebp, ecx
sub r8, 1
jne 0x180087cf0
test dword [r14 + 4], 0x800
mov eax, edi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
je 0x180087e17
mov rax, qword [r14 + 0x20]
mov rcx, qword [rax + 0x20]
cmp dword [rcx], 1
je 0x180087e17
mov r13, qword [r11]
mov r9, r14
mov r8, r10
mov edx, r12d
mov rcx, r11
call fcn.180087a10
mov r12, rax
cmp byte [r13 + 0x61], dil
jne 0x180087de4
mov rcx, qword [rsp + 0xc0]
movsxd r14, ebp
shl r14, 2
mov rcx, qword [rcx]
test rcx, rcx
je 0x180087d8a
mov rdx, r14
call fcn.180004880
jmp 0x180087d92
mov rdx, rbx
mov rcx, r13
call fcn.180087820
mov eax, dword [rsp + 0xe8]
jmp 0x1800882c5
mov rcx, r14
call fcn.1800041a0
mov r15, rax
test rax, rax
je 0x180087da7
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.1800af360
mov rcx, qword [rsp + 0xc0]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], r15
lea r8d, [r9 + 4]
call fcn.180044440
mov r14d, dword [rsp + 0x30]
mov dword [rsp + 0x3c], eax
mov rax, qword [rbx]
mov dword [rsp + 0x38], r14d
mov dword [rax + 0x2c], r14d
jmp 0x180087de9
mov r14d, dword [rsp + 0x38]
test r12, r12
je 0x180087df9
mov rdx, r12
mov rcx, r13
call fcn.1800426d0
mov rax, qword [rbx]
mov r12d, dword [rsp + 0xd8]
mov r13, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x3c]
jmp 0x180087e46
xor r9d, r9d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rdx, r14
mov rcx, r11
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 4]
call fcn.180044440
mov r14d, dword [rsp + 0x30]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x38], r14d
cmp eax, 4
jne 0x180087e5a
cmp dword [rsp + 0x34], edi
mov eax, edi
sete al
mov dword [rsp + 0x34], eax
jmp 0x180087e5e
mov eax, dword [rsp + 0x34]
test eax, eax
mov ecx, 0x21
mov edx, 0x25
cmovne edx, ecx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x180087e90
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, r14d
mov rcx, rsi
call fcn.1800297f0
jmp 0x180087ec0
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8], dl
mov word [rax + rcx*8 + 2], di
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov byte [rax + rcx*8 + 1], dil
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xc0]
or dword [rdx + 0x28], 0x800
cmp dword [r13 + 0x40], edi
jne 0x180087ee4
dec dword [rcx + 0x44]
mov eax, dword [rcx + 0x44]
mov dword [r13 + 0x10], eax
test r12d, r12d
jle 0x180087ef9
mov eax, dword [rdx + 0x28]
bt eax, 0x14
jb 0x180087ef9
bts eax, 0x12
mov dword [rdx + 0x28], eax
movsxd r14, dword [r13 + 0x40]
mov rdx, qword [r13 + 0x48]
lea eax, [r14 + rbp]
mov dword [r13 + 0x40], eax
mov rcx, qword [rcx]
cdqe
lea r8, [rax + rax*4]
shl r8, 2
call fcn.180004a50
mov qword [r13 + 0x48], rax
test rax, rax
je 0x1800881a9
lea rcx, [r14 + r14*4]
lea r14, [rax + rcx*4]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + 0x2c]
cmp r12d, eax
jge 0x180088140
mov edx, dword [rsp + 0xe8]
mov r8, r15
mov r13, qword [rsp + 0x50]
mov r9d, edx
mov ebx, dword [rsp + 0x38]
sub r9d, r12d
movsxd rax, r12d
mov ebp, edx
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x58], r15
lea r10, [rax*8]
mov eax, r12d
sub eax, edx
mov qword [rsp + 0x60], r10
mov dword [rsp + 0x40], eax
mov rax, qword [rcx + 0x38]
mov rdx, r8
mov rcx, qword [r10 + rax]
cmp qword [rcx], r13
jne 0x180088103
cmp dword [rsp + 0x3c], 1
jne 0x180087fed
movsxd rdx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], edx
jg 0x180087fc8
mov r9d, ebp
mov dword [rsp + 0x20], edi
mov r8d, ebx
mov edx, 0x80
mov rcx, rsi
call fcn.1800297f0
mov edx, eax
jmp 0x180088061
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x80
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], edi
jmp 0x180088058
test r15, r15
je 0x180087ff7
mov r8d, dword [r8]
jmp 0x180087ffa
mov r8d, edi
test r15, r15
lea rax, [rdx + 4]
cmove rax, rdx
movsxd rdx, dword [rsi + 0x90]
mov qword [rsp + 0x58], rax
cmp dword [rsi + 0x94], edx
jg 0x180088034
mov r9d, r8d
mov dword [rsp + 0x20], ebp
mov r8d, ebx
mov edx, 0x59
mov rcx, rsi
call fcn.1800297f0
mov edx, eax
jmp 0x180088061
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x59
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rdi
mov dword [rax + rcx*8 + 4], ebx
mov dword [r14 + 4], edx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x18008808c
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, ebp
mov rcx, rsi
lea edx, [r9 + 0x32]
call fcn.1800297f0
jmp 0x1800880b5
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x32
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], rdi
mov qword [rax + rcx*8 + 0x10], rdi
mov ecx, dword [rsp + 0x40]
add ecx, ebp
cmp ecx, r12d
jne 0x1800880eb
cmp dword [rsp + 0x34], edi
mov dword [r14], ebx
sete al
add al, 4
mov byte [r14 + 0x10], al
test r12d, r12d
jle 0x1800880e3
mov eax, dword [rsp + 0x30]
mov dword [r14 + 8], eax
mov dword [r14 + 0xc], ecx
jmp 0x1800880f0
mov ecx, edi
mov dword [r14 + 0xc], ecx
jmp 0x1800880f0
mov byte [r14 + 0x10], 0xae
mov r8, qword [rsp + 0x58]
add r14, 0x14
mov r9d, dword [rsp + 0x30]
mov r10, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
inc ebp
mov ecx, dword [rsp + 0x40]
dec r9d
add r10, 8
mov dword [rsp + 0x30], r9d
add ecx, ebp
mov qword [rsp + 0x60], r10
movzx eax, word [rdx + 0x2c]
cmp ecx, eax
mov rcx, rdx
jl 0x180087f80
mov rbx, qword [rsp + 0xc8]
mov r13, qword [rsp + 0xd0]
test r12d, r12d
jle 0x1800881ad
test dword [rcx + 0x28], 0x100400
jne 0x1800881ad
movsxd rcx, dword [rsi + 0x90]
mov edx, dword [r13 + 8]
cmp dword [rsi + 0x94], ecx
jg 0x18008817a
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8d, edx
mov rcx, rsi
lea edx, [r9 + 0x77]
call fcn.1800297f0
jmp 0x1800881ad
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x77
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], rdi
jmp 0x1800881ad
mov dword [r13 + 0x40], edi
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax]
test r15, r15
je 0x1800881d7
test rcx, rcx
je 0x180088270
cmp qword [rcx + 0x2d8], rdi
je 0x18008822c
mov rdx, r15
call fcn.180004440
mov ebp, dword [rsp + 0xe8]
mov r15d, 0x400
test byte [rbx + 0x12], 4
jne 0x1800882c3
mov edx, 0x200
cmp dword [r13], 0
je 0x180088207
mov rax, qword [rbx]
test byte [rax + 4], 1
je 0x1800882c3
mov rax, qword [rbx + 0x30]
test qword [r13 + 0x58], rax
jne 0x1800882c3
test edi, edi
je 0x180088295
movzx eax, word [rbx + 0x12]
test r15w, ax
je 0x180088295
or ax, dx
mov word [rbx + 0x12], ax
jmp 0x18008829a
cmp r15, qword [rcx + 0x1c8]
jae 0x180088270
cmp r15, qword [rcx + 0x1b8]
jb 0x180088251
mov rax, qword [rcx + 0x1b0]
mov qword [r15], rax
mov qword [rcx + 0x1b0], r15
jmp 0x1800881d7
cmp r15, qword [rcx + 0x1c0]
jb 0x180088270
mov rax, qword [rcx + 0x1a0]
mov qword [r15], rax
mov qword [rcx + 0x1a0], r15
jmp 0x1800881d7
mov rcx, r15
call sym.SQLite3.dll_sqlite3_free
jmp 0x1800881d7
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [r14 + 0x18]
call fcn.180047a90
mov ebp, eax
jmp 0x1800881e4
or word [rbx + 0x12], 4
movsxd rax, dword [rbx + 0x18]
test eax, eax
js 0x1800882c3
imul rcx, rax, 0x38
mov rax, qword [rbx + 8]
add rcx, qword [rax + 0x20]
mov rbx, rcx
add byte [rcx + 0x16], 0xff
jne 0x1800882c3
inc edi
test byte [rcx + 0x12], 4
je 0x1800881f3
mov eax, ebp
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret