Function at 0x180114af0
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 0x180114b3f
mov eax, dword [r9]
mov dword [rsp + 0x58], eax
jmp 0x180114b43
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.18012da30
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 0x180114bca
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.180114440
mov r11d, dword [rbx + 8]
mov rdx, qword [rsp + 0x78]
inc r11d
mov dword [rbp], r12d
mov dword [rbp - 0x68], r11d
jmp 0x180114cad
mov rdx, r15
mov rcx, r14
call fcn.1801135e0
mov ecx, dword [r15 + 0x1c]
dec ecx
mov r12d, eax
cmp edi, ecx
jne 0x180114bf5
lea rcx, [r14 + 0x3c]
mov rdx, rbx
call fcn.18010e1d0
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.18010e260
cmp dword [r14 + 0x3c], 0
jne 0x1801152a3
movsxd rbx, esi
lea rdx, [rbp - 0x70]
mov r8d, r12d
add rbx, 2
mov rcx, r14
add rbx, rbx
call fcn.180114440
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 0x180114cab
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 0x180114cad
mov esi, eax
cmp dword [rdx], 1
jne 0x180114cc2
lea eax, [rdi + 2]
cmp dword [r15 + 0x1c], eax
jne 0x180114cc2
mov ebx, 1
jmp 0x180114cc4
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.1801130b0
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.180113520
test eax, eax
jne 0x180115147
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 0x180114d85
test edi, edi
jle 0x180114e18
movsxd r8, edi
mov rdx, r12
mov rcx, rsi
call fcn.180134af0
test eax, eax
je 0x180114e14
mov r8d, dword [rbp + 0x88]
cmp qword [rbp + 0x98], 0
je 0x180114d9c
mov eax, dword [rsp + 0x58]
cmp dword [rbp - 0x24], eax
jg 0x18011513d
xor eax, eax
mov dword [rbp + 0x80], eax
test edi, edi
je 0x180114e0c
cmp edi, r8d
jbe 0x180114df8
test r8d, r8d
mov eax, 0x40
cmovne eax, r8d
movsxd rbx, eax
cmp rbx, rdi
jae 0x180114dc9
add rbx, rbx
cmp rbx, rdi
jb 0x180114dc1
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180114edd
mov rdx, rbx
mov rcx, r12
call fcn.18000b480
test rax, rax
je 0x180114edd
mov dword [rbp + 0x88], ebx
mov r12, rax
mov qword [rsp + 0x60], rax
mov r8, rdi
mov rdx, rsi
mov rcx, r12
call fcn.180127c70
mov dword [rbp + 0x80], edi
mov rbx, qword [rsp + 0x50]
xor r15d, r15d
mov r9, qword [rbp - 0x78]
cmp dword [r13 + 0x80], 0
jne 0x180114e38
test r9, r9
jne 0x180115103
cmp byte [r13 + 0x84], r9b
je 0x180115103
cmp dword [r14 + 0x3c], 0
jne 0x180114e5c
test r15d, r15d
jne 0x180114e5c
lea rdx, [rbp - 0x70]
mov r9, rsi
mov r8d, edi
mov rcx, r14
call fcn.180113f00
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 0x180114f04
mov edx, dword [rbp - 0x48]
mov rax, qword [r14]
add edx, dword [rbp - 0x58]
cmp edx, dword [rax + 0x88]
jl 0x180114e9b
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.180113db0
movzx eax, byte [rbp - 0x27]
test al, al
je 0x180114eca
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.180113b90
movzx eax, byte [rbp - 0x27]
cmp byte [rbp - 0x28], 0
jne 0x180114eea
test al, al
jne 0x180114eea
mov r8, rbx
sub r8, qword [rbp - 0x30]
jmp 0x180114eed
mov dword [r14 + 0x3c], 7
jmp 0x180114e0c
mov r8, rbx
lea rdx, [rbp - 0x60]
lea rcx, [r14 + 0x3c]
call fcn.1801051c0
mov qword [rbp - 0x30], rbx
mov word [rbp - 0x28], 0
cmp qword [rbp + 0x18], 1
jne 0x180115021
cmp byte [r13 + 0x84], 0
je 0x1801150fe
mov eax, dword [rbp - 0x58]
mov ecx, dword [rbp - 0x54]
lea edx, [rax + 9]
cmp ecx, edx
jae 0x180114f81
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x180114f48
nop
add rbx, rbx
cmp rbx, rax
jb 0x180114f40
mov rdi, qword [rbp - 0x60]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180114f74
mov rdx, rbx
mov rcx, rdi
call fcn.18000b480
mov r11, rax
test rax, rax
je 0x180114f74
mov qword [rbp - 0x60], rax
mov eax, dword [rbp - 0x58]
mov dword [rbp - 0x54], ebx
jmp 0x180114f85
mov eax, dword [rbp - 0x58]
mov dword [r14 + 0x3c], 7
jmp 0x180114f94
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 0x1801150fe
mov ecx, dword [rbp - 0x54]
lea edx, [rax + 9]
cmp ecx, edx
jae 0x18011500e
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x180114fc8
add rbx, rbx
cmp rbx, rax
jb 0x180114fc0
mov rdi, qword [rbp - 0x60]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180115001
mov rdx, rbx
mov rcx, rdi
call fcn.18000b480
mov r11, rax
test rax, rax
je 0x180115001
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 0x1801150fe
mov dword [r14 + 0x3c], 7
jmp 0x1801150fe
mov r11, qword [rbp - 0x60]
cdqe
mov byte [rax + r11], 0
inc dword [rbp - 0x58]
jmp 0x1801150fe
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 0x18011509c
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x180115068
nop dword [rax]
add rbx, rbx
cmp rbx, rax
jb 0x180115060
mov rsi, qword [rbp - 0x60]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180115092
mov rdx, rbx
mov rcx, rsi
call fcn.18000b480
test rax, rax
je 0x180115092
mov r8d, dword [rbp - 0x58]
mov dword [rbp - 0x54], ebx
mov qword [rbp - 0x60], rax
jmp 0x1801150a0
mov dword [r14 + 0x3c], 7
jmp 0x1801150e8
mov rax, qword [rbp - 0x60]
movsxd rcx, r8d
add rcx, rax
cmp rdi, 0x7f
ja 0x1801150ba
and dil, 0x7f
mov eax, 1
mov byte [rcx], dil
jmp 0x1801150e5
cmp rdi, 0x3fff
ja 0x1801150dd
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 0x1801150e5
mov rdx, rdi
call fcn.180010980
add dword [rbp - 0x58], eax
lea r9, [0x180114ae0]
lea r8, [rbp - 0x70]
mov rdx, r13
mov rcx, r14
call fcn.1801128d0
mov rbx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call fcn.180112260
mov rdx, rbx
mov rcx, r14
call fcn.180113520
mov r12, qword [rsp + 0x60]
mov edx, dword [rbp + 0x80]
mov r8d, dword [rbp + 0x88]
mov r9, qword [rbp - 0x78]
test eax, eax
je 0x180114d40
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.180114280
cmp dword [r14 + 0x3c], 0
jne 0x18011518d
cmp byte [rbx + 0x14], 0
jne 0x18011518d
mov rdx, rbx
mov rcx, r14
call fcn.180114530
mov r13, qword [rsp + 0x68]
mov dword [r13 + r15], esi
jmp 0x180115225
mov r13, qword [rsp + 0x68]
movsxd rsi, esi
test rsi, rsi
jle 0x1801151d3
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.18010d880
add rbx, 0x38
dec rdi
jne 0x1801151a4
mov r12, qword [rbp + 0x80]
mov eax, dword [r13 + r15 + 4]
mov ebx, dword [rbp + 0x90]
cmp eax, ebx
je 0x1801151fc
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.180127c70
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 0x180115225
mov rax, qword [rsp + 0x78]
dec dword [rax]
dec dword [r15 + 0x18]
mov rcx, rbx
call fcn.1801119f0
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x180115292
cmp dword [0x180171920], 0
je 0x180115289
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180115252
call qword [0x1801719a0]
mov rcx, rbx
call qword [0x180171958]
dec qword [0x180181138]
mov rcx, rbx
movsxd rdx, eax
sub qword [0x1801810f0], rdx
call qword [0x180171948]
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180115292
call qword [0x1801719b0]
jmp 0x180115292
mov rcx, rbx
call qword [0x180171948]
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x1801152a3
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