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

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [rcx]
call fcn.1401557d0
test eax, eax
jne 0x140129708
mov rcx, qword [rbx]
lea r8, [rsp + 0x60]
xor r9d, r9d
lea edx, [rax + 1]
call fcn.140153e20
test eax, eax
jne 0x140129708
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov rdi, qword [rax + 8]
mov r14, qword [rax + 0x10]
mov qword [r14 + 0x50], rdi
mov qword [r14 + 0x70], rax
mov qword [r14 + 0x48], rbx
mov dword [r14 + 0x88], 1
mov byte [r14 + 6], 0x64
mov rcx, qword [rbx]
mov r15d, dword [rdi + 0x1c]
bswap r15d
mov edx, dword [rcx + 0x1c]
mov dword [rsp + 0x68], edx
test r15d, r15d
je 0x1401294da
mov eax, dword [rdi + 0x18]
cmp eax, dword [rdi + 0x5c]
je 0x1401294dd
mov r15d, edx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
test r15d, r15d
jle 0x140129674
mov rax, qword [rdi]
mov ebp, 0x1a
cmp rax, qword [str.SQLite_format_3]
jne 0x14012962d
mov rax, qword [rdi + 8]
cmp rax, qword [0x1402bad28]
jne 0x14012962d
cmp byte [rdi + 0x12], 2
jbe 0x14012952b
or word [rbx + 0x26], 1
movzx eax, byte [rdi + 0x13]
cmp al, 2
ja 0x14012962d
jne 0x140129573
test byte [rbx + 0x26], 0x10
jne 0x140129573
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0
call fcn.1401551d0
mov ebp, eax
test eax, eax
jne 0x14012962d
cmp dword [rsp + 0x60], eax
jne 0x14012956f
mov rcx, qword [r14 + 0x70]
call fcn.140155c40
jmp 0x1401296e3
mov edx, dword [rsp + 0x68]
movzx eax, word [rdi + 0x15]
mov ebp, 0x1a
cmp ax, word [0x1402bf14c]
jne 0x14012962d
movzx eax, byte [rdi + 0x17]
cmp al, byte [0x1402bf14e]
jne 0x14012962d
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 0x14012962d
cmp esi, 0x10000
ja 0x14012962d
cmp esi, 0x100
jbe 0x14012962d
movzx ebp, byte [rdi + 0x14]
mov r12d, esi
sub r12d, ebp
cmp esi, dword [rbx + 0x30]
je 0x1401295fb
mov rcx, qword [r14 + 0x70]
call fcn.140155c40
mov rcx, rbx
mov dword [rbx + 0x34], r12d
mov dword [rbx + 0x30], esi
call fcn.140125de0
mov rcx, qword [rbx]
lea rdx, [rbx + 0x30]
mov r8d, ebp
call fcn.140155680
jmp 0x1401296e5
mov rax, qword [rbx + 8]
test dword [rax + 0x2c], 0x10000
jne 0x140129645
cmp r15d, edx
jle 0x140129645
mov ebp, VariantTimeToDosDateTime
lea r9, [0x1402b951c]
mov ecx, ebp
lea rdx, str.database_corruption_at_line__d_of___.10s_
mov r8d, 0xdd6a
call fcn.14010fcd0
mov rcx, qword [r14 + 0x70]
call fcn.140155c40
mov eax, ebp
mov qword [rbx + 0x18], 0
jmp 0x1401296e5
mov ebp, 0x1a
cmp r12d, 0x1e0
jb 0x14012962d
mov dword [rbx + 0x30], esi
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 rsi, qword [rsp + 0x48]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
add rsp, 0x50
pop rbx
ret