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

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140119010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [rcx]
mov rdi, rcx
mov r14, r8
movsxd r8, dword [rcx + 0x10]
mov rcx, r8
shl rcx, 5
mov rax, qword [rsi + 0x20]
mov rdx, qword [rcx + rax + 0x18]
mov eax, 0xfffb
and word [rdx + 0x72], ax
cmp byte [rsi + 0x46], 0
je 0x1400bd44f
mov rbx, qword [rdi]
mov rax, qword [r14]
cmp byte [rbx + 0x46], 0
jne 0x1400bd414
test dword [rbx + 0x2c], 0x800000
jne 0x1400bd40e
mov rcx, qword [rdi + 8]
lea r9, [0x1400fc334]
test rax, rax
lea r8, str.malformed_database_schema___s_
mov rdx, rbx
cmovne r9, rax
call fcn.140061780
cmp byte [rbx + 0x46], 0
je 0x1400bd424
mov ebx, 7
mov dword [rdi + 0x14], ebx
lea eax, [rbx - 6]
jmp 0x1400bd7e3
mov ebx, 0xb
lea r9, [0x140101bd4]
mov ecx, ebx
lea rdx, str.database_corruption_at_line__d_of___.10s_
mov r8d, 0x1722a
call fcn.1400635e0
lea eax, [rbx - 0xa]
mov dword [rdi + 0x14], ebx
jmp 0x1400bd7e3
test r14, r14
je 0x1400bd7e1
mov rbx, qword [r14 + 8]
test rbx, rbx
jne 0x1400bd4af
mov rbx, qword [rdi]
mov rax, qword [r14]
cmp byte [rbx + 0x46], 0
jne 0x1400bd7b7
test dword [rbx + 0x2c], 0x800000
jne 0x1400bd49b
test rax, rax
lea r9, [0x1400fc334]
cmovne r9, rax
mov rcx, qword [rdi + 8]
lea r8, str.malformed_database_schema___s_
mov rdx, rbx
call fcn.140061780
cmp byte [rbx + 0x46], 0
je 0x1400bd7be
mov ebx, 7
jmp 0x1400bd7de
mov rax, qword [r14 + 0x10]
test rax, rax
je 0x1400bd6f5
cmp byte [rax], 0
je 0x1400bd6f5
mov byte [rsi + 0x8c], r8b
mov rcx, qword [r14 + 8]
call fcn.140064950
xor ecx, ecx
mov dword [rsi + 0x88], eax
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov byte [rsi + 0x8e], 0
mov rdx, qword [r14 + 0x10]
lea r8d, [rcx - 1]
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call fcn.1400be760
mov eax, dword [rsi + 0x3c]
mov byte [rsi + 0x8c], 0
test eax, eax
je 0x1400bd6e6
cmp byte [rsi + 0x8e], 0
jne 0x1400bd6e6
mov dword [rdi + 0x14], eax
cmp eax, 7
jne 0x1400bd545
mov rcx, qword [rsp + 0x40]
mov byte [rsi + 0x46], 1
call fcn.140087030
jmp 0x1400bd7e1
cmp eax, 9
je 0x1400bd6e6
cmp al, 6
je 0x1400bd6e6
mov eax, dword [rsi + 0x50]
cmp eax, 0x4b771290
je 0x1400bd5be
cmp eax, 0xa029a697
je 0x1400bd5be
cmp eax, 0xf03b7906
je 0x1400bd5be
lea r8, str.invalid
mov ecx, 0x15
lea rdx, str.API_call_with__s_database_connection_pointer
call fcn.1400635e0
lea r9, [0x140101bd4]
mov r8d, 0x1c214
lea rdx, str.misuse_at_line__d_of___.10s_
mov ecx, 0x15
call fcn.1400635e0
mov rax, qword [str.library_routine_called_out_of_sequence]
lea rbx, str.unknown_error
test rax, rax
cmovne rbx, rax
jmp 0x1400bd646
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400bd5cd
call qword [0x1401194b0]
cmp byte [rsi + 0x46], 0
je 0x1400bd5ea
mov rax, qword [str.out_of_memory]
lea rbx, str.unknown_error
test rax, rax
cmovne rbx, rax
jmp 0x1400bd637
mov rcx, qword [rsi + 0x120]
mov dl, 1
call fcn.140081db0
mov rbx, rax
test rax, rax
jne 0x1400bd637
mov eax, dword [rsi + 0x3c]
lea rbx, str.unknown_error
cmp eax, 0x204
je 0x1400bd630
movzx ecx, al
cmp ecx, 0x1b
jae 0x1400bd637
mov eax, ecx
lea rcx, str.not_an_error
mov rcx, qword [rcx + rax*8]
test rcx, rcx
je 0x1400bd637
mov rbx, rcx
jmp 0x1400bd637
lea rbx, str.abort_due_to_ROLLBACK
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400bd646
call qword [0x1401194c0]
mov rsi, qword [rdi]
mov rax, qword [r14]
cmp byte [rsi + 0x46], 0
jne 0x1400bd6ac
test dword [rsi + 0x2c], 0x800000
jne 0x1400bd6a6
mov rcx, qword [rdi + 8]
lea r9, [0x1400fc334]
test rax, rax
lea r8, str.malformed_database_schema___s_
mov rdx, rsi
cmovne r9, rax
call fcn.140061780
test rbx, rbx
je 0x1400bd6a6
mov rax, qword [rdi + 8]
lea r8, str._s____s
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov rdx, qword [rax]
mov r9, rdx
call fcn.140062fa0
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
cmp byte [rsi + 0x46], 0
je 0x1400bd6c3
mov rcx, qword [rsp + 0x40]
mov ebx, 7
mov dword [rdi + 0x14], ebx
call fcn.140087030
jmp 0x1400bd7e1
mov ebx, 0xb
lea r9, [0x140101bd4]
mov ecx, ebx
lea rdx, str.database_corruption_at_line__d_of___.10s_
mov r8d, 0x1722a
call fcn.1400635e0
mov dword [rdi + 0x14], ebx
mov rcx, qword [rsp + 0x40]
call fcn.140087030
jmp 0x1400bd7e1
mov rdx, qword [r14]
test rdx, rdx
jne 0x1400bd722
mov rbx, qword [rdi]
cmp byte [rbx + 0x46], dl
jne 0x1400bd7b7
test dword [rbx + 0x2c], 0x800000
jne 0x1400bd49b
lea r9, [0x1400fc334]
jmp 0x1400bd488
mov r8, qword [rsi + 0x20]
mov r8, qword [rcx + r8]
mov rcx, rsi
call fcn.1400a2c60
test rax, rax
je 0x1400bd7e1
lea rdx, [rax + 0x4c]
mov rcx, rbx
call fcn.1400648b0
test eax, eax
jne 0x1400bd7e1
mov rbx, qword [rdi]
mov rax, qword [r14]
cmp byte [rbx + 0x46], 0
jne 0x1400bd7b7
test dword [rbx + 0x2c], 0x800000
jne 0x1400bd7b1
mov rcx, qword [rdi + 8]
lea r9, [0x1400fc334]
test rax, rax
lea r8, str.malformed_database_schema___s_
mov rdx, rbx
cmovne r9, rax
call fcn.140061780
mov rax, qword [rdi + 8]
lea r8, str._s____s
mov rcx, rbx
mov rdx, qword [rax]
lea rax, str.invalid_rootpage
mov r9, rdx
mov qword [rsp + 0x20], rax
call fcn.140062fa0
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
cmp byte [rbx + 0x46], 0
je 0x1400bd7be
mov ebx, 7
jmp 0x1400bd7de
mov ebx, 0xb
lea r9, [0x140101bd4]
mov ecx, ebx
lea rdx, str.database_corruption_at_line__d_of___.10s_
mov r8d, 0x1722a
call fcn.1400635e0
mov dword [rdi + 0x14], ebx
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ea4a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret