Function at 0x180115800
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 0x18011584f
mov eax, dword [r9]
mov dword [rsp + 0x58], eax
jmp 0x180115853
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.18012e4c0
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 0x1801158da
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.180115150
mov r11d, dword [rbx + 8]
mov rdx, qword [rsp + 0x78]
inc r11d
mov dword [rbp], r12d
mov dword [rbp - 0x68], r11d
jmp 0x1801159bd
mov rdx, r15
mov rcx, r14
call fcn.1801142f0
mov ecx, dword [r15 + 0x1c]
dec ecx
mov r12d, eax
cmp edi, ecx
jne 0x180115905
lea rcx, [r14 + 0x3c]
mov rdx, rbx
call fcn.18010eee0
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.18010ef70
cmp dword [r14 + 0x3c], 0
jne 0x180115fb3
movsxd rbx, esi
lea rdx, [rbp - 0x70]
mov r8d, r12d
add rbx, 2
mov rcx, r14
add rbx, rbx
call fcn.180115150
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 0x1801159bb
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 0x1801159bd
mov esi, eax
cmp dword [rdx], 1
jne 0x1801159d2
lea eax, [rdi + 2]
cmp dword [r15 + 0x1c], eax
jne 0x1801159d2
mov ebx, 1
jmp 0x1801159d4
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.180113dc0
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.180114230
test eax, eax
jne 0x180115e57
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 0x180115a95
test edi, edi
jle 0x180115b28
movsxd r8, edi
mov rdx, r12
mov rcx, rsi
call fcn.180137910
test eax, eax
je 0x180115b24
mov r8d, dword [rbp + 0x88]
cmp qword [rbp + 0x98], 0
je 0x180115aac
mov eax, dword [rsp + 0x58]
cmp dword [rbp - 0x24], eax
jg 0x180115e4d
xor eax, eax
mov dword [rbp + 0x80], eax
test edi, edi
je 0x180115b1c
cmp edi, r8d
jbe 0x180115b08
test r8d, r8d
mov eax, 0x40
cmovne eax, r8d
movsxd rbx, eax
cmp rbx, rdi
jae 0x180115ad9
add rbx, rbx
cmp rbx, rdi
jb 0x180115ad1
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180115bed
mov rdx, rbx
mov rcx, r12
call fcn.18000c190
test rax, rax
je 0x180115bed
mov dword [rbp + 0x88], ebx
mov r12, rax
mov qword [rsp + 0x60], rax
mov r8, rdi
mov rdx, rsi
mov rcx, r12
call fcn.180128750
mov dword [rbp + 0x80], edi
mov rbx, qword [rsp + 0x50]
xor r15d, r15d
mov r9, qword [rbp - 0x78]
cmp dword [r13 + 0x80], 0
jne 0x180115b48
test r9, r9
jne 0x180115e13
cmp byte [r13 + 0x84], r9b
je 0x180115e13
cmp dword [r14 + 0x3c], 0
jne 0x180115b6c
test r15d, r15d
jne 0x180115b6c
lea rdx, [rbp - 0x70]
mov r9, rsi
mov r8d, edi
mov rcx, r14
call fcn.180114c10
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 0x180115c14
mov edx, dword [rbp - 0x48]
mov rax, qword [r14]
add edx, dword [rbp - 0x58]
cmp edx, dword [rax + 0x88]
jl 0x180115bab
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.180114ac0
movzx eax, byte [rbp - 0x27]
test al, al
je 0x180115bda
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.1801148a0
movzx eax, byte [rbp - 0x27]
cmp byte [rbp - 0x28], 0
jne 0x180115bfa
test al, al
jne 0x180115bfa
mov r8, rbx
sub r8, qword [rbp - 0x30]
jmp 0x180115bfd
mov dword [r14 + 0x3c], 7
jmp 0x180115b1c
mov r8, rbx
lea rdx, [rbp - 0x60]
lea rcx, [r14 + 0x3c]
call fcn.180105ed0
mov qword [rbp - 0x30], rbx
mov word [rbp - 0x28], 0
cmp qword [rbp + 0x18], 1
jne 0x180115d31
cmp byte [r13 + 0x84], 0
je 0x180115e0e
mov eax, dword [rbp - 0x58]
mov ecx, dword [rbp - 0x54]
lea edx, [rax + 9]
cmp ecx, edx
jae 0x180115c91
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x180115c58
nop
add rbx, rbx
cmp rbx, rax
jb 0x180115c50
mov rdi, qword [rbp - 0x60]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180115c84
mov rdx, rbx
mov rcx, rdi
call fcn.18000c190
mov r11, rax
test rax, rax
je 0x180115c84
mov qword [rbp - 0x60], rax
mov eax, dword [rbp - 0x58]
mov dword [rbp - 0x54], ebx
jmp 0x180115c95
mov eax, dword [rbp - 0x58]
mov dword [r14 + 0x3c], 7
jmp 0x180115ca4
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 0x180115e0e
mov ecx, dword [rbp - 0x54]
lea edx, [rax + 9]
cmp ecx, edx
jae 0x180115d1e
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x180115cd8
add rbx, rbx
cmp rbx, rax
jb 0x180115cd0
mov rdi, qword [rbp - 0x60]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180115d11
mov rdx, rbx
mov rcx, rdi
call fcn.18000c190
mov r11, rax
test rax, rax
je 0x180115d11
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 0x180115e0e
mov dword [r14 + 0x3c], 7
jmp 0x180115e0e
mov r11, qword [rbp - 0x60]
cdqe
mov byte [rax + r11], 0
inc dword [rbp - 0x58]
jmp 0x180115e0e
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 0x180115dac
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x180115d78
nop dword [rax]
add rbx, rbx
cmp rbx, rax
jb 0x180115d70
mov rsi, qword [rbp - 0x60]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180115da2
mov rdx, rbx
mov rcx, rsi
call fcn.18000c190
test rax, rax
je 0x180115da2
mov r8d, dword [rbp - 0x58]
mov dword [rbp - 0x54], ebx
mov qword [rbp - 0x60], rax
jmp 0x180115db0
mov dword [r14 + 0x3c], 7
jmp 0x180115df8
mov rax, qword [rbp - 0x60]
movsxd rcx, r8d
add rcx, rax
cmp rdi, 0x7f
ja 0x180115dca
and dil, 0x7f
mov eax, 1
mov byte [rcx], dil
jmp 0x180115df5
cmp rdi, 0x3fff
ja 0x180115ded
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 0x180115df5
mov rdx, rdi
call fcn.180011690
add dword [rbp - 0x58], eax
lea r9, [0x1801157f0]
lea r8, [rbp - 0x70]
mov rdx, r13
mov rcx, r14
call fcn.1801135e0
mov rbx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call fcn.180112f70
mov rdx, rbx
mov rcx, r14
call fcn.180114230
mov r12, qword [rsp + 0x60]
mov edx, dword [rbp + 0x80]
mov r8d, dword [rbp + 0x88]
mov r9, qword [rbp - 0x78]
test eax, eax
je 0x180115a50
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.180114f90
cmp dword [r14 + 0x3c], 0
jne 0x180115e9d
cmp byte [rbx + 0x14], 0
jne 0x180115e9d
mov rdx, rbx
mov rcx, r14
call fcn.180115240
mov r13, qword [rsp + 0x68]
mov dword [r13 + r15], esi
jmp 0x180115f35
mov r13, qword [rsp + 0x68]
movsxd rsi, esi
test rsi, rsi
jle 0x180115ee3
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.18010e590
add rbx, 0x38
dec rdi
jne 0x180115eb4
mov r12, qword [rbp + 0x80]
mov eax, dword [r13 + r15 + 4]
mov ebx, dword [rbp + 0x90]
cmp eax, ebx
je 0x180115f0c
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.180128750
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 0x180115f35
mov rax, qword [rsp + 0x78]
dec dword [rax]
dec dword [r15 + 0x18]
mov rcx, rbx
call fcn.180112700
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x180115fa2
cmp dword [0x180172920], 0
je 0x180115f99
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x180115f62
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 0x180115fa2
call qword [0x1801729b0]
jmp 0x180115fa2
mov rcx, rbx
call qword [0x180172948]
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x180115fb3
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