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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [rcx]
xor ebx, ebx
mov r15, rdx
movsxd r12, dword [rax + 0x5c]
mov qword [rbp - 0x39], rbx
mov qword [rbp - 0x31], rbx
mov r14, rcx
mov qword [rbp + 0x7f], rbx
cmp qword [rcx + 0x90], rbx
jne 0x18011aa18
call fcn.18010e410
mov qword [r14 + 0x88], rax
cmp dword [r14 + 0x3c], ebx
jne 0x18011aa18
mov rcx, r14
call fcn.18010e350
mov qword [r14 + 0x90], rax
mov qword [rsp + 0xa8], r13
cmp dword [r14 + 0x3c], ebx
jne 0x18011b002
mov rax, qword [r14 + 0x90]
inc dword [rax]
mov r13, qword [r14 + 0x90]
mov qword [rbp - 1], r13
test r13, r13
je 0x18011b002
mov qword [rsp + 0xb8], rsi
xor esi, esi
mov qword [rsp + 0xb0], rdi
cmp dword [r13 + 0x1c], ebx
jle 0x18011aa99
lea rdi, [r13 + 0x24]
xor ebx, ebx
cmp dword [rdi], ebx
jle 0x18011aa89
nop dword [rax]
movsxd rdx, ebx
mov rcx, r14
imul rdx, rdx, 0x38
add rdx, qword [rdi + 4]
call fcn.18011a4e0
inc ebx
cmp ebx, dword [rdi]
jl 0x18011aa70
inc esi
add rdi, 0x10
cmp esi, dword [r13 + 0x1c]
jl 0x18011aa63
mov rbx, qword [rbp + 0x7f]
lea rax, [rbp - 0x21]
xor r9d, r9d
mov rdx, r13
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0xffffffff
lea r8d, [r9 + 0x20]
mov rcx, r14
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call fcn.1801130b0
mov rsi, qword [rbp - 0x21]
mov rdx, rsi
mov rcx, r14
mov r8, r12
mov qword [rbp + 7], r12
call fcn.180113520
test eax, eax
jne 0x18011af49
mov rax, qword [rsi + 0x58]
xor edi, edi
xor r13d, r13d
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
mov r10, qword [rcx + rsi + 0xd8]
mov r9, qword [rcx + rsi + 0xc8]
mov qword [rbp + 0xf], r10
mov qword [rbp - 9], r9
cmp dword [r14 + 0x3c], edi
jne 0x18011af41
movsxd r15, dword [rcx + rsi + 0xd0]
cmp r8, 1
jne 0x18011ab80
mov rdx, rsi
mov rcx, r14
call fcn.180110170
test eax, eax
jne 0x18011af15
imul r10, r10, 0x51
xor edx, edx
test r15, r15
jle 0x18011ab74
nop word [rax + rax]
movsx rcx, byte [rdx + r9]
lea r10, [r10 + r10*8]
inc rdx
add r10, rcx
cmp rdx, r15
jl 0x18011ab60
xor rbx, r10
mov qword [rbp + 0x7f], rbx
jmp 0x18011af15
xor r8d, r8d
mov dword [rbp - 0x31], r8d
mov rax, qword [rsi + 0x58]
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
lea r12, [rcx + rsi + 0x60]
mov ecx, dword [rbp - 0x2d]
mov edx, dword [r12 + 0x80]
add edx, 8
cmp ecx, edx
jae 0x18011ac00
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x18011abc9
add rbx, rbx
cmp rbx, rax
jb 0x18011abc1
mov rsi, qword [rbp - 0x39]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x18011abf6
mov rdx, rbx
mov rcx, rsi
call fcn.18000b480
mov r11, rax
test rax, rax
je 0x18011abf6
mov r8d, dword [rbp - 0x31]
mov dword [rbp - 0x2d], ebx
mov qword [rbp - 0x39], rax
jmp 0x18011ac04
mov dword [r14 + 0x3c], 7
jmp 0x18011ac2e
mov r11, qword [rbp - 0x39]
mov eax, dword [r12 + 0x80]
lea r9, [0x180112560]
mov rdx, r12
add eax, r8d
lea r8, [rbp - 0x39]
movsxd rcx, eax
xor eax, eax
mov qword [rcx + r11], rax
mov rcx, r14
call fcn.1801128d0
mov r8d, dword [rbp - 0x31]
mov ecx, dword [rbp - 0x2d]
lea edx, [r8 + 4]
cmp ecx, edx
jae 0x18011ac90
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x18011ac59
add rbx, rbx
cmp rbx, rax
jb 0x18011ac51
mov rsi, qword [rbp - 0x39]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x18011ac83
mov rdx, rbx
mov rcx, rsi
call fcn.18000b480
test rax, rax
je 0x18011ac83
mov r8d, dword [rbp - 0x31]
mov dword [rbp - 0x2d], ebx
mov qword [rbp - 0x39], rax
jmp 0x18011ac94
mov esi, dword [rbp - 0x31]
mov dword [r14 + 0x3c], 7
jmp 0x18011acab
mov rax, qword [rbp - 0x39]
movsxd rcx, r8d
add rcx, rax
mov eax, dword [0x180157428]
mov dword [rcx], eax
mov esi, dword [rbp - 0x31]
add esi, 4
mov dword [rbp - 0x31], esi
mov rbx, qword [rbp - 0x39]
mov r12, qword [rbp - 9]
mov r14, qword [rbp + 0xf]
cmp edi, esi
jge 0x18011af0d
movsxd rax, edi
inc edi
movzx ecx, byte [rax + rbx]
test cl, cl
jns 0x18011ad52
dec edi
movsxd r9, edi
add r9, rbx
movzx ecx, byte [r9]
test cl, cl
js 0x18011ace7
mov eax, 1
jmp 0x18011ad50
movzx edx, byte [r9 + 1]
test dl, dl
js 0x18011acff
and ecx, 0x7f
mov eax, 2
shl ecx, 7
or ecx, edx
jmp 0x18011ad50
movzx eax, byte [r9 + 2]
shl ecx, 0xe
or ecx, eax
mov eax, ecx
test cl, cl
js 0x18011ad25
and eax, 0x1fc07f
mov ecx, edx
and ecx, 0x7f
shl ecx, 7
or ecx, eax
mov eax, 3
jmp 0x18011ad50
movzx r8d, byte [r9]
test r8b, r8b
js 0x18011ad39
mov ecx, r8d
mov al, 1
mov qword [rbp - 0x11], rcx
jmp 0x18011ad49
lea rdx, [rbp - 0x11]
mov rcx, r9
call fcn.180125d70
mov rcx, qword [rbp - 0x11]
btr ecx, 0x1f
movzx eax, al
add edi, eax
cmp ecx, 1
ja 0x18011aea3
test ecx, ecx
je 0x18011aebd
movsxd rax, edi
inc edi
movzx ecx, byte [rax + rbx]
test cl, cl
jns 0x18011adf6
dec edi
movsxd r9, edi
add r9, rbx
movzx ecx, byte [r9]
test cl, cl
js 0x18011ad8b
mov eax, 1
jmp 0x18011adf4
movzx edx, byte [r9 + 1]
test dl, dl
js 0x18011ada3
and ecx, 0x7f
mov eax, 2
shl ecx, 7
or ecx, edx
jmp 0x18011adf4
movzx eax, byte [r9 + 2]
shl ecx, 0xe
or ecx, eax
mov eax, ecx
test cl, cl
js 0x18011adc9
and eax, 0x1fc07f
mov ecx, edx
and ecx, 0x7f
shl ecx, 7
or ecx, eax
mov eax, 3
jmp 0x18011adf4
movzx r8d, byte [r9]
test r8b, r8b
js 0x18011addd
mov ecx, r8d
mov al, 1
mov qword [rbp - 0x19], rcx
jmp 0x18011aded
lea rdx, [rbp - 0x19]
mov rcx, r9
call fcn.180125d70
mov rcx, qword [rbp - 0x19]
btr ecx, 0x1f
movzx eax, al
add edi, eax
movsxd rax, edi
mov r11d, ecx
inc edi
movzx ecx, byte [rax + rbx]
shl r11, 0x20
test cl, cl
jns 0x18011ae90
dec edi
movsxd r9, edi
add r9, rbx
movzx ecx, byte [r9]
test cl, cl
js 0x18011ae25
mov eax, 1
jmp 0x18011ae8e
movzx edx, byte [r9 + 1]
test dl, dl
js 0x18011ae3d
and ecx, 0x7f
mov eax, 2
shl ecx, 7
or ecx, edx
jmp 0x18011ae8e
movzx eax, byte [r9 + 2]
shl ecx, 0xe
or ecx, eax
mov eax, ecx
test cl, cl
js 0x18011ae63
and eax, 0x1fc07f
mov ecx, edx
and ecx, 0x7f
shl ecx, 7
or ecx, eax
mov eax, 3
jmp 0x18011ae8e
movzx r8d, byte [r9]
test r8b, r8b
js 0x18011ae77
mov ecx, r8d
mov al, 1
mov qword [rbp - 0x29], rcx
jmp 0x18011ae87
lea rdx, [rbp - 0x29]
mov rcx, r9
call fcn.180125d70
mov rcx, qword [rbp - 0x29]
btr ecx, 0x1f
movzx eax, al
add edi, eax
cmp ecx, 2
jb 0x18011af0d
lea r13d, [rcx - 2]
btr r13d, 0x1f
add r13, r11
jmp 0x18011aebd
add ecx, 0xfffffffe
movabs rdx, 0x7fffffff00000000
add rcx, r13
and r13, rdx
btr ecx, 0x1f
add r13, rcx
mov rax, r13
xor edx, edx
sar rax, 0x20
movsxd rcx, eax
lea rax, [r14 + r14*8]
add rcx, rax
mov rax, r13
btr eax, 0x1f
lea r8, [rcx + rcx*8]
add r8, rax
test r15, r15
jle 0x18011af04
nop word [rax + rax]
movsx rcx, byte [rdx + r12]
lea r8, [r8 + r8*8]
inc rdx
add r8, rcx
cmp rdx, r15
jl 0x18011aef0
xor qword [rbp + 0x7f], r8
jmp 0x18011acb7
mov r14, qword [rbp + 0x67]
mov rsi, qword [rbp - 0x21]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.180112260
mov rdx, rsi
mov rcx, r14
call fcn.180113520
mov rbx, qword [rbp + 0x7f]
mov r8, qword [rbp + 7]
test eax, eax
je 0x18011aaf3
mov r13, qword [rbp - 1]
mov r15, qword [rbp + 0x6f]
mov rcx, rsi
call fcn.1801119f0
cmp dword [r14 + 0x3c], 0
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xb8]
jne 0x18011af7c
cmp dword [rbp + 0x77], 0
je 0x18011af7c
cmp r15, qword [rbp + 0x7f]
je 0x18011af7c
mov dword [r14 + 0x3c], 0x10b
mov rcx, r13
call fcn.18010d960
mov rbx, qword [rbp - 0x39]
test rbx, rbx
je 0x18011aff4
cmp dword [0x180171920], 0
je 0x18011afeb
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x18011afa8
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 0x18011aff4
call qword [0x1801719b0]
mov eax, dword [r14 + 0x3c]
mov dword [r14 + 0x3c], 0
jmp 0x18011b00a
mov rcx, rbx
call qword [0x180171948]
mov eax, dword [r14 + 0x3c]
mov dword [r14 + 0x3c], 0
jmp 0x18011b00a
mov eax, dword [r14 + 0x3c]
mov dword [r14 + 0x3c], ebx
mov r13, qword [rsp + 0xa8]
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rbx
pop rbp
ret