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

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov r15, qword [rdx]
movsxd rdi, r8d
mov r14, rcx
xor ecx, ecx
lea rsi, [rdi + 2]
mov rbx, rdx
shl rsi, 4
mov qword [rbp + 0x10], r15
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x68], rsi
test r9, r9
je 0x18011521f
mov eax, dword [r9]
mov dword [rsp + 0x58], eax
jmp 0x180115223
mov dword [rsp + 0x58], ecx
mov rax, qword [r14]
xor edx, edx
mov dword [rbp - 0x80], ecx
movsxd r13, dword [rax + 0x5c]
lea r8d, [rdx + 0x78]
lea rcx, [rbp - 0x70]
call fcn.18012e4b0
mov esi, dword [rsi + r15]
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rbp + 0x28], r12
mov dword [rbp + 0x90], esi
test esi, esi
je 0x1801152aa
lea eax, [rdi + 1]
lea rdx, [rbp - 0x70]
movsxd rcx, eax
add rcx, 2
add rcx, rcx
lea rax, [r15 + rcx*8 + 4]
mov qword [rsp + 0x78], rax
mov eax, dword [rax]
dec eax
movsxd rbx, eax
imul rbx, rbx, 0x38
add rbx, qword [r15 + rcx*8 + 8]
mov rcx, r14
mov r8d, dword [rbx]
mov qword [rsp + 0x70], rbx
call fcn.180114b20
mov r11d, dword [rbx + 8]
mov rdx, qword [rsp + 0x78]
inc r11d
mov dword [rbp], r12d
mov dword [rbp - 0x68], r11d
jmp 0x18011538d
mov rdx, r15
mov rcx, r14
call fcn.180113cc0
mov ecx, dword [r15 + 0x1c]
dec ecx
mov r12d, eax
cmp edi, ecx
jne 0x1801152d5
lea rcx, [r14 + 0x3c]
mov rdx, rbx
call fcn.18010e8b0
mov r15, qword [rbx]
mov qword [rbp + 0x10], r15
lea esi, [rdi + 1]
lea rcx, [r14 + 0x3c]
xor r9d, r9d
mov r8d, esi
mov rdx, r15
call fcn.18010e940
cmp dword [r14 + 0x3c], 0
jne 0x180115983
movsxd rbx, esi
lea rdx, [rbp - 0x70]
mov r8d, r12d
add rbx, 2
mov rcx, r14
add rbx, rbx
call fcn.180114b20
movsxd rax, dword [r15 + rbx*8 + 4]
mov rsi, qword [rsp + 0x68]
lea rdx, [r15 + rbx*8 + 4]
mov rcx, rax
imul rcx, rcx, 0x38
add rcx, qword [r15 + rbx*8 + 8]
inc eax
mov dword [rdx], eax
mov dword [rcx], r12d
mov r12, qword [rsp + 0x60]
mov dword [rcx + 4], 1
inc dword [r15 + 0x18]
cmp qword [r15 + 0x10], 0
mov eax, dword [rsi + r15 + 4]
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], rcx
mov dword [rbp + 0x90], eax
mov rbx, rcx
jbe 0x18011538b
mov rax, qword [rsi + r15 + 8]
mov rcx, qword [rax + 0x10]
mov qword [rbx + 0x10], rcx
movsxd rcx, dword [rsi + r15 + 4]
mov rax, qword [rsi + r15 + 8]
mov esi, dword [rbp + 0x90]
imul rcx, rcx, 0x38
mov rcx, qword [rcx + rax - 0x20]
mov qword [rbx + 0x18], rcx
jmp 0x18011538d
mov esi, eax
cmp dword [rdx], 1
jne 0x1801153a2
lea eax, [rdi + 2]
cmp dword [r15 + 0x1c], eax
jne 0x1801153a2
mov ebx, 1
jmp 0x1801153a4
xor ebx, ebx
lea rax, [rsp + 0x50]
xor r9d, r9d
mov rdx, r15
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], edi
lea r8d, [r9 + 0x20]
mov rcx, r14
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.180113790
movsxd r9, ebx
mov rbx, qword [rsp + 0x50]
mov rcx, r14
mov qword [rbp - 0x78], r9
mov rdx, rbx
mov qword [rbp + 0x18], r13
call fcn.180113c00
test eax, eax
jne 0x180115827
mov r8d, dword [rbp + 0x2c]
mov edx, dword [rbp + 0x28]
mov r15d, dword [rbp - 0x80]
mov dword [rbp + 0x88], r8d
mov dword [rbp + 0x80], edx
nop word [rax + rax]
mov rax, qword [rbx + 0x58]
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
lea r13, [rcx + rbx + 0x60]
mov edi, dword [r13 + 0x70]
mov rsi, qword [r13 + 0x68]
cmp edi, edx
jne 0x180115465
test edi, edi
jle 0x1801154f8
movsxd r8, edi
mov rdx, r12
mov rcx, rsi
call fcn.180137900
test eax, eax
je 0x1801154f4
mov r8d, dword [rbp + 0x88]
cmp qword [rbp + 0x98], 0
je 0x18011547c
mov eax, dword [rsp + 0x58]
cmp dword [rbp - 0x24], eax
jg 0x18011581d
xor eax, eax
mov dword [rbp + 0x80], eax
test edi, edi
je 0x1801154ec
cmp edi, r8d
jbe 0x1801154d8
test r8d, r8d
mov eax, 0x40
cmovne eax, r8d
movsxd rbx, eax
cmp rbx, rdi
jae 0x1801154a9
add rbx, rbx
cmp rbx, rdi
jb 0x1801154a1
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x1801155bd
mov rdx, rbx
mov rcx, r12
call fcn.18000c190
test rax, rax
je 0x1801155bd
mov dword [rbp + 0x88], ebx
mov r12, rax
mov qword [rsp + 0x60], rax
mov r8, rdi
mov rdx, rsi
mov rcx, r12
call fcn.180128740
mov dword [rbp + 0x80], edi
mov rbx, qword [rsp + 0x50]
xor r15d, r15d
mov r9, qword [rbp - 0x78]
cmp dword [r13 + 0x80], 0
jne 0x180115518
test r9, r9
jne 0x1801157e3
cmp byte [r13 + 0x84], r9b
je 0x1801157e3
cmp dword [r14 + 0x3c], 0
jne 0x18011553c
test r15d, r15d
jne 0x18011553c
lea rdx, [rbp - 0x70]
mov r9, rsi
mov r8d, edi
mov rcx, r14
call fcn.1801145e0
mov r15d, 1
mov rax, qword [rbx + 0x58]
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
cmp dword [r14 + 0x3c], 0
mov rbx, qword [rcx + rbx + 0xd8]
jne 0x1801155e4
mov edx, dword [rbp - 0x48]
mov rax, qword [r14]
add edx, dword [rbp - 0x58]
cmp edx, dword [rax + 0x88]
jl 0x18011557b
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.180114490
movzx eax, byte [rbp - 0x27]
test al, al
je 0x1801155aa
movzx edx, word [rbp - 0x58]
mov rcx, qword [rbp - 0x60]
mov r8, rbx
movzx eax, dx
mov byte [rcx + 1], dl
lea rdx, [rbp - 0x70]
shr ax, 8
mov byte [rcx], al
mov rcx, r14
call fcn.180114270
movzx eax, byte [rbp - 0x27]
cmp byte [rbp - 0x28], 0
jne 0x1801155ca
test al, al
jne 0x1801155ca
mov r8, rbx
sub r8, qword [rbp - 0x30]
jmp 0x1801155cd
mov dword [r14 + 0x3c], 7
jmp 0x1801154ec
mov r8, rbx
lea rdx, [rbp - 0x60]
lea rcx, [r14 + 0x3c]
call fcn.1801058a0
mov qword [rbp - 0x30], rbx
mov word [rbp - 0x28], 0
cmp qword [rbp + 0x18], 1
jne 0x180115701
cmp byte [r13 + 0x84], 0
je 0x1801157de
mov eax, dword [rbp - 0x58]
mov ecx, dword [rbp - 0x54]
lea edx, [rax + 9]
cmp ecx, edx
jae 0x180115661
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x180115628
nop
add rbx, rbx
cmp rbx, rax
jb 0x180115620
mov rdi, qword [rbp - 0x60]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180115654
mov rdx, rbx
mov rcx, rdi
call fcn.18000c190
mov r11, rax
test rax, rax
je 0x180115654
mov qword [rbp - 0x60], rax
mov eax, dword [rbp - 0x58]
mov dword [rbp - 0x54], ebx
jmp 0x180115665
mov eax, dword [rbp - 0x58]
mov dword [r14 + 0x3c], 7
jmp 0x180115674
mov r11, qword [rbp - 0x60]
cdqe
mov byte [rax + r11], 0
mov eax, dword [rbp - 0x58]
inc eax
mov dword [rbp - 0x58], eax
cmp dword [r13 + 0x80], 0
jle 0x1801157de
mov ecx, dword [rbp - 0x54]
lea edx, [rax + 9]
cmp ecx, edx
jae 0x1801156ee
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x1801156a8
add rbx, rbx
cmp rbx, rax
jb 0x1801156a0
mov rdi, qword [rbp - 0x60]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x1801156e1
mov rdx, rbx
mov rcx, rdi
call fcn.18000c190
mov r11, rax
test rax, rax
je 0x1801156e1
mov qword [rbp - 0x60], rax
mov eax, dword [rbp - 0x58]
mov dword [rbp - 0x54], ebx
cdqe
mov byte [rax + r11], 0
inc dword [rbp - 0x58]
jmp 0x1801157de
mov dword [r14 + 0x3c], 7
jmp 0x1801157de
mov r11, qword [rbp - 0x60]
cdqe
mov byte [rax + r11], 0
inc dword [rbp - 0x58]
jmp 0x1801157de
movzx ecx, byte [r13 + 0x84]
mov eax, dword [r13 + 0x80]
mov r8d, dword [rbp - 0x58]
lea ecx, [rcx + rax*2]
lea edx, [r8 + 9]
movsxd rdi, ecx
mov ecx, dword [rbp - 0x54]
cmp ecx, edx
jae 0x18011577c
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x180115748
nop dword [rax]
add rbx, rbx
cmp rbx, rax
jb 0x180115740
mov rsi, qword [rbp - 0x60]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180115772
mov rdx, rbx
mov rcx, rsi
call fcn.18000c190
test rax, rax
je 0x180115772
mov r8d, dword [rbp - 0x58]
mov dword [rbp - 0x54], ebx
mov qword [rbp - 0x60], rax
jmp 0x180115780
mov dword [r14 + 0x3c], 7
jmp 0x1801157c8
mov rax, qword [rbp - 0x60]
movsxd rcx, r8d
add rcx, rax
cmp rdi, 0x7f
ja 0x18011579a
and dil, 0x7f
mov eax, 1
mov byte [rcx], dil
jmp 0x1801157c5
cmp rdi, 0x3fff
ja 0x1801157bd
mov rax, rdi
shr rax, 7
or al, 0x80
and dil, 0x7f
mov byte [rcx], al
mov byte [rcx + 1], dil
mov eax, 2
jmp 0x1801157c5
mov rdx, rdi
call fcn.180011690
add dword [rbp - 0x58], eax
lea r9, [0x1801151c0]
lea r8, [rbp - 0x70]
mov rdx, r13
mov rcx, r14
call fcn.180112fb0
mov rbx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call fcn.180112940
mov rdx, rbx
mov rcx, r14
call fcn.180113c00
mov r12, qword [rsp + 0x60]
mov edx, dword [rbp + 0x80]
mov r8d, dword [rbp + 0x88]
mov r9, qword [rbp - 0x78]
test eax, eax
je 0x180115420
mov r15, qword [rbp + 0x10]
mov esi, dword [rbp + 0x90]
mov r12, qword [rsp + 0x70]
lea rdx, [rbp - 0x70]
mov rcx, r14
add r12, 8
mov r8, r12
mov qword [rbp + 0x80], r12
call fcn.180114960
cmp dword [r14 + 0x3c], 0
jne 0x18011586d
cmp byte [rbx + 0x14], 0
jne 0x18011586d
mov rdx, rbx
mov rcx, r14
call fcn.180114c10
mov r13, qword [rsp + 0x68]
mov dword [r13 + r15], esi
jmp 0x180115905
mov r13, qword [rsp + 0x68]
movsxd rsi, esi
test rsi, rsi
jle 0x1801158b3
mov r12, qword [rsp + 0x70]
xor ebx, ebx
mov rdi, rsi
mov rax, qword [r13 + r15 + 8]
mov rcx, r14
lea rdx, [rbx + rax]
mov rax, qword [rbx + rax + 0x30]
sub rax, qword [rdx + 0x28]
add qword [r12 + 0x30], rax
call fcn.18010df60
add rbx, 0x38
dec rdi
jne 0x180115884
mov r12, qword [rbp + 0x80]
mov eax, dword [r13 + r15 + 4]
mov ebx, dword [rbp + 0x90]
cmp eax, ebx
je 0x1801158dc
mov rcx, qword [r13 + r15 + 8]
imul rsi, rsi, 0x38
sub eax, ebx
lea rdx, [rcx + rsi]
imul eax, eax, 0x38
movsxd r8, eax
call fcn.180128740
sub dword [r15 + 0x18], ebx
sub dword [r13 + r15 + 4], ebx
mov rbx, qword [rsp + 0x50]
mov dword [r13 + r15], 0
cmp dword [r12], 0
jne 0x180115905
mov rax, qword [rsp + 0x78]
dec dword [rax]
dec dword [r15 + 0x18]
mov rcx, rbx
call fcn.1801120d0
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x180115972
cmp dword [0x180172920], 0
je 0x180115969
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180115932
call qword [0x1801729a0]
mov rcx, rbx
call qword [0x180172958]
dec qword [0x180182138]
mov rcx, rbx
movsxd rdx, eax
sub qword [0x1801820f0], rdx
call qword [0x180172948]
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180115972
call qword [0x1801729b0]
jmp 0x180115972
mov rcx, rbx
call qword [0x180172948]
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x180115983
mov eax, dword [rbp - 0x24]
sub dword [rcx], eax
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret