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

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [rcx]
call fcn.140043070
test eax, eax
jne 0x14004a7fa
mov rcx, qword [rbx]
lea r8, [rsp + 0x60]
xor r9d, r9d
lea edx, [rax + 1]
call fcn.140043590
test eax, eax
jne 0x14004a7fa
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x38], r14
mov r14, qword [rax + 0x10]
mov qword [rsp + 0x30], r15
cmp dword [r14 + 0x88], 1
je 0x14004a54d
mov rdi, qword [rax + 8]
mov qword [r14 + 0x50], rdi
mov qword [r14 + 0x70], rax
mov qword [r14 + 0x48], rbx
mov dword [r14 + 0x88], 1
mov byte [r14 + 5], 0x64
jmp 0x14004a551
mov rdi, qword [r14 + 0x50]
mov rbp, qword [rbx]
mov r15d, dword [rdi + 0x1c]
bswap r15d
mov ecx, dword [rbp + 0x20]
mov dword [rsp + 0x60], ecx
test r15d, r15d
je 0x14004a56f
mov eax, dword [rdi + 0x18]
cmp eax, dword [rdi + 0x5c]
je 0x14004a572
mov r15d, ecx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r13
test r15d, r15d
jle 0x14004a766
mov rax, qword [rdi]
mov esi, 0x1a
cmp rax, qword [str.SQLite_format_3]
jne 0x14004a63b
mov rax, qword [rdi + 8]
cmp rax, qword [0x140138768]
jne 0x14004a63b
cmp byte [rdi + 0x12], 2
jbe 0x14004a5bb
or word [rbx + 0x26], 1
movzx eax, byte [rdi + 0x13]
cmp al, 2
ja 0x14004a63b
jne 0x14004a670
test byte [rbx + 0x26], 0x10
jne 0x14004a670
xor r12d, r12d
xor esi, esi
cmp byte [rbp + 0x11], sil
jne 0x14004a653
cmp qword [rbp + 0x118], rsi
jne 0x14004a653
cmp byte [rbp + 0x12], sil
jne 0x14004a636
cmp byte [rbp + 8], sil
jne 0x14004a605
mov rax, qword [rbp + 0x48]
mov rcx, qword [rax]
cmp dword [rcx], 2
jl 0x14004a636
cmp qword [rcx + 0x68], rsi
je 0x14004a636
mov rsi, qword [rbp + 0x50]
mov rax, qword [rsi]
test rax, rax
je 0x14004a61a
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsi], r12
mov rcx, rbp
call fcn.140044e80
mov ecx, dword [rsp + 0x60]
mov esi, eax
test eax, eax
jne 0x14004a659
mov byte [rbp + 9], 5
mov byte [rbp + 0x15], r12b
jmp 0x14004a659
mov esi, 0xe
mov rcx, qword [r14 + 0x70]
call fcn.140043af0
mov eax, esi
mov qword [rbx + 0x18], 0
jmp 0x14004a7d7
mov r12d, 1
test esi, esi
jne 0x14004a63b
test r12d, r12d
jne 0x14004a670
mov rcx, qword [r14 + 0x70]
call fcn.140043af0
jmp 0x14004a7d5
movzx eax, word [rdi + 0x15]
mov esi, 0x1a
cmp ax, word [0x1401432d8]
jne 0x14004a63b
movzx eax, byte [rdi + 0x17]
cmp al, byte [0x1401432da]
jne 0x14004a63b
movzx eax, byte [rdi + 0x10]
movzx ebp, byte [rdi + 0x11]
shl ebp, 8
or ebp, eax
shl ebp, 8
lea eax, [rbp - 1]
test ebp, eax
jne 0x14004a63b
cmp ebp, 0x10000
ja 0x14004a63b
cmp ebp, 0x100
jbe 0x14004a63b
movzx esi, byte [rdi + 0x14]
mov r12d, ebp
sub r12d, esi
cmp ebp, dword [rbx + 0x30]
je 0x14004a6f0
mov rcx, qword [r14 + 0x70]
call fcn.140043af0
mov rcx, rbx
mov dword [rbx + 0x34], r12d
mov dword [rbx + 0x30], ebp
call fcn.140049d50
mov rcx, qword [rbx]
lea rdx, [rbx + 0x30]
mov r8d, esi
call fcn.140041f80
jmp 0x14004a7d7
mov rax, qword [rbx + 8]
test dword [rax + 0x2c], 0x10000
jne 0x14004a733
cmp r15d, ecx
jle 0x14004a733
lea rax, [0x140147114]
mov esi, VariantTimeToDosDateTime
mov ecx, esi
mov qword [rsp + 0x20], rax
mov r9d, 0xef07
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140037580
jmp 0x14004a63b
mov esi, 0x1a
cmp r12d, 0x1e0
jb 0x14004a63b
mov dword [rbx + 0x30], ebp
mov dword [rbx + 0x34], r12d
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], r14
mov dword [rbx + 0x3c], r15d
xor eax, eax
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov r14, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret