Function at 0x18011b090
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 0x18011b0f8
call fcn.18010eaf0
mov qword [r14 + 0x88], rax
cmp dword [r14 + 0x3c], ebx
jne 0x18011b0f8
mov rcx, r14
call fcn.18010ea30
mov qword [r14 + 0x90], rax
mov qword [rsp + 0xa8], r13
cmp dword [r14 + 0x3c], ebx
jne 0x18011b6e2
mov rax, qword [r14 + 0x90]
inc dword [rax]
mov r13, qword [r14 + 0x90]
mov qword [rbp - 1], r13
test r13, r13
je 0x18011b6e2
mov qword [rsp + 0xb8], rsi
xor esi, esi
mov qword [rsp + 0xb0], rdi
cmp dword [r13 + 0x1c], ebx
jle 0x18011b179
lea rdi, [r13 + 0x24]
xor ebx, ebx
cmp dword [rdi], ebx
jle 0x18011b169
nop dword [rax]
movsxd rdx, ebx
mov rcx, r14
imul rdx, rdx, 0x38
add rdx, qword [rdi + 4]
call fcn.18011abc0
inc ebx
cmp ebx, dword [rdi]
jl 0x18011b150
inc esi
add rdi, 0x10
cmp esi, dword [r13 + 0x1c]
jl 0x18011b143
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.180113790
mov rsi, qword [rbp - 0x21]
mov rdx, rsi
mov rcx, r14
mov r8, r12
mov qword [rbp + 7], r12
call fcn.180113c00
test eax, eax
jne 0x18011b629
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 0x18011b621
movsxd r15, dword [rcx + rsi + 0xd0]
cmp r8, 1
jne 0x18011b260
mov rdx, rsi
mov rcx, r14
call fcn.180110850
test eax, eax
jne 0x18011b5f5
imul r10, r10, 0x51
xor edx, edx
test r15, r15
jle 0x18011b254
nop word [rax + rax]
movsx rcx, byte [rdx + r9]
lea r10, [r10 + r10*8]
inc rdx
add r10, rcx
cmp rdx, r15
jl 0x18011b240
xor rbx, r10
mov qword [rbp + 0x7f], rbx
jmp 0x18011b5f5
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 0x18011b2e0
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x18011b2a9
add rbx, rbx
cmp rbx, rax
jb 0x18011b2a1
mov rsi, qword [rbp - 0x39]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x18011b2d6
mov rdx, rbx
mov rcx, rsi
call fcn.18000c190
mov r11, rax
test rax, rax
je 0x18011b2d6
mov r8d, dword [rbp - 0x31]
mov dword [rbp - 0x2d], ebx
mov qword [rbp - 0x39], rax
jmp 0x18011b2e4
mov dword [r14 + 0x3c], 7
jmp 0x18011b30e
mov r11, qword [rbp - 0x39]
mov eax, dword [r12 + 0x80]
lea r9, [0x180112c40]
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.180112fb0
mov r8d, dword [rbp - 0x31]
mov ecx, dword [rbp - 0x2d]
lea edx, [r8 + 4]
cmp ecx, edx
jae 0x18011b370
mov eax, 0x40
test ecx, ecx
cmovne eax, ecx
movsxd rbx, eax
mov eax, edx
cmp rbx, rax
jae 0x18011b339
add rbx, rbx
cmp rbx, rax
jb 0x18011b331
mov rsi, qword [rbp - 0x39]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x18011b363
mov rdx, rbx
mov rcx, rsi
call fcn.18000c190
test rax, rax
je 0x18011b363
mov r8d, dword [rbp - 0x31]
mov dword [rbp - 0x2d], ebx
mov qword [rbp - 0x39], rax
jmp 0x18011b374
mov esi, dword [rbp - 0x31]
mov dword [r14 + 0x3c], 7
jmp 0x18011b38b
mov rax, qword [rbp - 0x39]
movsxd rcx, r8d
add rcx, rax
mov eax, dword [0x1801586c8]
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 0x18011b5ed
movsxd rax, edi
inc edi
movzx ecx, byte [rax + rbx]
test cl, cl
jns 0x18011b432
dec edi
movsxd r9, edi
add r9, rbx
movzx ecx, byte [r9]
test cl, cl
js 0x18011b3c7
mov eax, 1
jmp 0x18011b430
movzx edx, byte [r9 + 1]
test dl, dl
js 0x18011b3df
and ecx, 0x7f
mov eax, 2
shl ecx, 7
or ecx, edx
jmp 0x18011b430
movzx eax, byte [r9 + 2]
shl ecx, 0xe
or ecx, eax
mov eax, ecx
test cl, cl
js 0x18011b405
and eax, 0x1fc07f
mov ecx, edx
and ecx, 0x7f
shl ecx, 7
or ecx, eax
mov eax, 3
jmp 0x18011b430
movzx r8d, byte [r9]
test r8b, r8b
js 0x18011b419
mov ecx, r8d
mov al, 1
mov qword [rbp - 0x11], rcx
jmp 0x18011b429
lea rdx, [rbp - 0x11]
mov rcx, r9
call fcn.180126a70
mov rcx, qword [rbp - 0x11]
btr ecx, 0x1f
movzx eax, al
add edi, eax
cmp ecx, 1
ja 0x18011b583
test ecx, ecx
je 0x18011b59d
movsxd rax, edi
inc edi
movzx ecx, byte [rax + rbx]
test cl, cl
jns 0x18011b4d6
dec edi
movsxd r9, edi
add r9, rbx
movzx ecx, byte [r9]
test cl, cl
js 0x18011b46b
mov eax, 1
jmp 0x18011b4d4
movzx edx, byte [r9 + 1]
test dl, dl
js 0x18011b483
and ecx, 0x7f
mov eax, 2
shl ecx, 7
or ecx, edx
jmp 0x18011b4d4
movzx eax, byte [r9 + 2]
shl ecx, 0xe
or ecx, eax
mov eax, ecx
test cl, cl
js 0x18011b4a9
and eax, 0x1fc07f
mov ecx, edx
and ecx, 0x7f
shl ecx, 7
or ecx, eax
mov eax, 3
jmp 0x18011b4d4
movzx r8d, byte [r9]
test r8b, r8b
js 0x18011b4bd
mov ecx, r8d
mov al, 1
mov qword [rbp - 0x19], rcx
jmp 0x18011b4cd
lea rdx, [rbp - 0x19]
mov rcx, r9
call fcn.180126a70
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 0x18011b570
dec edi
movsxd r9, edi
add r9, rbx
movzx ecx, byte [r9]
test cl, cl
js 0x18011b505
mov eax, 1
jmp 0x18011b56e
movzx edx, byte [r9 + 1]
test dl, dl
js 0x18011b51d
and ecx, 0x7f
mov eax, 2
shl ecx, 7
or ecx, edx
jmp 0x18011b56e
movzx eax, byte [r9 + 2]
shl ecx, 0xe
or ecx, eax
mov eax, ecx
test cl, cl
js 0x18011b543
and eax, 0x1fc07f
mov ecx, edx
and ecx, 0x7f
shl ecx, 7
or ecx, eax
mov eax, 3
jmp 0x18011b56e
movzx r8d, byte [r9]
test r8b, r8b
js 0x18011b557
mov ecx, r8d
mov al, 1
mov qword [rbp - 0x29], rcx
jmp 0x18011b567
lea rdx, [rbp - 0x29]
mov rcx, r9
call fcn.180126a70
mov rcx, qword [rbp - 0x29]
btr ecx, 0x1f
movzx eax, al
add edi, eax
cmp ecx, 2
jb 0x18011b5ed
lea r13d, [rcx - 2]
btr r13d, 0x1f
add r13, r11
jmp 0x18011b59d
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 0x18011b5e4
nop word [rax + rax]
movsx rcx, byte [rdx + r12]
lea r8, [r8 + r8*8]
inc rdx
add r8, rcx
cmp rdx, r15
jl 0x18011b5d0
xor qword [rbp + 0x7f], r8
jmp 0x18011b397
mov r14, qword [rbp + 0x67]
mov rsi, qword [rbp - 0x21]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.180112940
mov rdx, rsi
mov rcx, r14
call fcn.180113c00
mov rbx, qword [rbp + 0x7f]
mov r8, qword [rbp + 7]
test eax, eax
je 0x18011b1d3
mov r13, qword [rbp - 1]
mov r15, qword [rbp + 0x6f]
mov rcx, rsi
call fcn.1801120d0
cmp dword [r14 + 0x3c], 0
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xb8]
jne 0x18011b65c
cmp dword [rbp + 0x77], 0
je 0x18011b65c
cmp r15, qword [rbp + 0x7f]
je 0x18011b65c
mov dword [r14 + 0x3c], 0x10b
mov rcx, r13
call fcn.18010e040
mov rbx, qword [rbp - 0x39]
test rbx, rbx
je 0x18011b6d4
cmp dword [0x180172920], 0
je 0x18011b6cb
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x18011b688
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 0x18011b6d4
call qword [0x1801729b0]
mov eax, dword [r14 + 0x3c]
mov dword [r14 + 0x3c], 0
jmp 0x18011b6ea
mov rcx, rbx
call qword [0x180172948]
mov eax, dword [r14 + 0x3c]
mov dword [r14 + 0x3c], 0
jmp 0x18011b6ea
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