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

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [rcx]
call fcn.1802ad390
test eax, eax
jne 0x1802b59e3
mov rax, qword [rbx]
lea r8, [rsp + 0x80]
xor r9d, r9d
mov rcx, rax
lea edx, [r9 + 1]
call qword [rax + 0x108]
test eax, eax
jne 0x1802b59e3
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], r13
mov rbp, qword [rax + 0x10]
cmp dword [rbp + 4], 1
je 0x1802b56fd
mov rdi, qword [rax + 8]
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x48], rbx
mov dword [rbp + 4], 1
mov byte [rbp + 9], 0x64
jmp 0x1802b5701
mov rdi, qword [rbp + 0x50]
mov r8, qword [rbx]
mov edx, dword [rdi + 0x1c]
bswap edx
mov r9d, dword [r8 + 0x1c]
mov dword [rsp + 0x78], r9d
test edx, edx
je 0x1802b571e
mov eax, dword [rdi + 0x18]
cmp eax, dword [rdi + 0x5c]
je 0x1802b5721
mov edx, r9d
mov rax, qword [rbx + 8]
mov r13d, 0
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x38], r14
mov ecx, dword [rax + 0x30]
bt rcx, 0x19
mov qword [rsp + 0x30], r15
cmovae r13d, edx
test r13d, r13d
je 0x1802b594c
mov rax, qword [rdi]
mov r14d, 0x1a
cmp rax, qword [str.SQLite_format_3]
jne 0x1802b58ea
mov rax, qword [rdi + 8]
cmp rax, qword [0x1803c6090]
jne 0x1802b58ea
cmp byte [rdi + 0x12], 2
jbe 0x1802b5786
or word [rbx + 0x26], 1
movzx eax, byte [rdi + 0x13]
cmp al, 2
ja 0x1802b58ea
jne 0x1802b57f0
test byte [rbx + 0x26], 0x20
jne 0x1802b57f0
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0
mov rcx, r8
call fcn.1802af240
mov r14d, eax
test eax, eax
jne 0x1802b58ea
cmp dword [rsp + 0x70], eax
jne 0x1802b57eb
mov rcx, qword [rbp + 0x70]
mov rbx, qword [rcx + 0x28]
call fcn.1802a7da0
mov rax, qword [rbx + 0x118]
cmp dword [rax + 0x18], r14d
jne 0x1802b59bb
mov rcx, rbx
call fcn.1802aad90
jmp 0x1802b59bb
mov r9d, dword [rsp + 0x78]
movzx eax, word [rdi + 0x15]
mov r14d, 0x1a
cmp ax, word [0x1803ed944]
jne 0x1802b58ea
movzx eax, byte [rdi + 0x17]
cmp al, byte [0x1803ed946]
jne 0x1802b58ea
movzx eax, byte [rdi + 0x10]
movzx esi, byte [rdi + 0x11]
shl esi, 8
or esi, eax
shl esi, 8
lea eax, [rsi - 1]
test esi, eax
jne 0x1802b58ea
cmp esi, 0x10000
ja 0x1802b58ea
cmp esi, 0x100
jbe 0x1802b58ea
or word [rbx + 0x26], 2
mov r15d, esi
movzx r14d, byte [rdi + 0x14]
sub r15d, r14d
cmp esi, dword [rbx + 0x30]
je 0x1802b58a4
mov rcx, qword [rbp + 0x70]
mov rdi, qword [rcx + 0x28]
call fcn.1802a7da0
mov rax, qword [rdi + 0x118]
cmp dword [rax + 0x18], 0
jne 0x1802b5881
mov rcx, rdi
call fcn.1802aad90
mov rcx, rbx
mov dword [rbx + 0x34], r15d
mov dword [rbx + 0x30], esi
call fcn.1802b4f10
mov rcx, qword [rbx]
lea rdx, [rbx + 0x30]
mov r8d, r14d
call fcn.1802ac1a0
jmp 0x1802b59bd
mov rax, qword [rbx + 8]
mov ecx, dword [rax + 0x30]
and ecx, 0x10000001
cmp rcx, 1
je 0x1802b591c
cmp r13d, r9d
jbe 0x1802b591c
lea rax, [0x1803f4af4]
mov r14d, 0xb
mov ecx, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x106d6
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.1802a0990
mov rcx, qword [rbp + 0x70]
mov rdi, qword [rcx + 0x28]
call fcn.1802a7da0
mov rax, qword [rdi + 0x118]
cmp dword [rax + 0x18], 0
jne 0x1802b590c
mov rcx, rdi
call fcn.1802aad90
mov qword [rbx + 0x18], 0
mov eax, r14d
jmp 0x1802b59bd
mov r14d, 0x1a
cmp r15d, 0x1e0
jb 0x1802b58ea
mov dword [rbx + 0x30], esi
mov dword [rbx + 0x34], r15d
mov eax, dword [rdi + 0x34]
bswap eax
test eax, eax
setne al
mov byte [rbx + 0x21], al
mov eax, dword [rdi + 0x40]
bswap eax
test eax, eax
setne al
mov byte [rbx + 0x22], al
mov r9d, dword [rbx + 0x34]
mov eax, 0x80808081
mov ecx, r9d
shl ecx, 6
sub ecx, 0x300
mul ecx
mov ecx, r9d
mov eax, 0x80808081
mov r8d, edx
shl ecx, 5
sub ecx, 0x180
shr r8d, 7
mul ecx
sub r8w, 0x17
sub r9w, 0x23
shr edx, 7
mov ecx, 0x7f
sub dx, 0x17
movzx eax, r8b
cmp r8w, cx
mov word [rbx + 0x28], r8w
mov word [rbx + 0x2a], dx
cmova eax, ecx
mov word [rbx + 0x2c], r9w
mov word [rbx + 0x2e], dx
mov byte [rbx + 0x25], al
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x3c], r13d
xor eax, eax
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x88]
mov r13, qword [rsp + 0x40]
add rsp, 0x60
pop rbx
ret